diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-06-07 12:20:28 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-06-07 12:20:28 -0400 |
commit | ed8bd4d70540d5756b8e173b3d8a7cf7acb5c742 (patch) | |
tree | 68c4f3f4fe1a36493769de80e222d89e1856f854 /lisp | |
parent | 8b0823d6096739c30e518e2c9a57b77fe627234c (diff) | |
download | emacs-ed8bd4d70540d5756b8e173b3d8a7cf7acb5c742.tar.gz |
* subr.el (kbd): Make it its own function.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/ChangeLog | 15 | ||||
-rw-r--r-- | lisp/subr.el | 8 |
2 files changed, 14 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e85ce83503..cbdf00d639d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,18 +1,17 @@ +2012-06-07 Stefan Monnier <monnier@iro.umontreal.ca> + + * subr.el (kbd): Make it its own function. + 2012-06-07 Stefan Merten <smerten@oekonux.de> * textmodes/rst.el: Use `eval-when-compile' for requiring `cl.el'. Silence compiler warnings. Fix versions. - - (rst-position-if, rst-position, rst-some, rst-signum): New - functions. + (rst-position-if, rst-position, rst-some, rst-signum): New functions. (rst-shift-region, rst-adornment-level, rst-compute-tabs) - (rst-indent-line, rst-shift-region, rst-forward-line): Use new - functions. - + (rst-indent-line, rst-shift-region, rst-forward-line): Use them. (rst-package-emacs-version-alist): Correct Emacs version to represent major merge with upstream. - (rst-transition, rst-adornment, rst-compile-toolsets): Fix - versions. + (rst-transition, rst-adornment, rst-compile-toolsets): Fix versions. 2012-06-06 Glenn Morris <rgm@gnu.org> diff --git a/lisp/subr.el b/lisp/subr.el index 7dc5d66b747..473cc3efddd 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -525,7 +525,13 @@ side-effects, and the argument LIST is not modified." ;;;; Keymap support. -(defalias 'kbd 'read-kbd-macro) +(defun 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 `edmacro-mode')." + ;; Don't use a defalias, since the `pure' property is only true for + ;; the calling convention of `kbd'. + (read-kbd-macro keys)) (put 'kbd 'pure t) (defun undefined () |