changeset 17437:d7f9b21fdfd2

(kbd): New macro.
author Richard M. Stallman <rms@gnu.org>
date Sun, 13 Apr 1997 08:08:11 +0000
parents 2a9fdbfcb993
children 368547942e03
files lisp/subr.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Sun Apr 13 07:51:54 1997 +0000
+++ b/lisp/subr.el	Sun Apr 13 08:08:11 1997 +0000
@@ -226,6 +226,12 @@
 	    (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)