HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(name-last-kbd-macro): Reject empty cmd name.
[bpt/emacs.git]
/
lisp
/
macros.el
diff --git
a/lisp/macros.el
b/lisp/macros.el
index
5bf6560
..
fc79959
100644
(file)
--- 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