From d128fe857109398139e3e0fbc3cb8a9f8a45c876 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 13 Apr 1997 08:08:11 +0000 Subject: [PATCH] (kbd): New macro. --- lisp/subr.el | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.11.4.GIT