diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-01-28 03:07:38 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-01-28 03:07:38 +0000 |
commit | d524a3e74769004ead447f49611596980c147959 (patch) | |
tree | 45e118a5aa2ce629620713355e99478ae9c31b9e /lisp | |
parent | e36e5371b295b85b929ef49dae74f10ee7af10bf (diff) | |
download | emacs-d524a3e74769004ead447f49611596980c147959.tar.gz |
(name-last-kbd-macro): Reject empty cmd name.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/macros.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/macros.el b/lisp/macros.el index 5bf6560e5e6..fc79959e9f9 100644 --- a/lisp/macros.el +++ b/lisp/macros.el @@ -45,6 +45,8 @@ Such a \"function\" cannot be called from Lisp, but it is a valid editor command (not (vectorp (symbol-function symbol))) (error "Function %s is already defined and not a keyboard macro." symbol)) + (if (string-equal symbol "") + (error "No command name given")) (fset symbol last-kbd-macro)) ;;;###autoload |