Commit a3fc4dee authored by Richard M. Stallman's avatar Richard M. Stallman

(name-last-kbd-macro): Reject empty cmd name.

parent ef8e50b1
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment