diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-04-13 08:08:11 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-04-13 08:08:11 +0000 |
commit | 92bb235cedb4977c71793692643dad4b9ef498a0 (patch) | |
tree | 7563fd4fbd798024b0d5f6baa7527b92fe80fa29 /lisp/subr.el | |
parent | 9a7787d46d3e4160c30a2c3073cf690b9286f207 (diff) | |
download | emacs-92bb235cedb4977c71793692643dad4b9ef498a0.tar.gz |
(kbd): New macro.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 656f02a1b30..edd425d33e6 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -226,6 +226,12 @@ The order of bindings in a keymap matters when it is used as a menu." (setq inserted t))) (setq tail (cdr tail))))) +(defmacro kbd (keys) + "Convert KEYS to the internal Emacs key representation. +KEYS should be a string constant in the format used for +saving keyboard macros (see `insert-kbd-macro')." + (read-kbd-macro keys)) + (put 'keyboard-translate-table 'char-table-extra-slots 0) (defun keyboard-translate (from to) |