From: Richard M. Stallman Date: Sun, 28 Jan 1996 03:07:38 +0000 (+0000) Subject: (name-last-kbd-macro): Reject empty cmd name. X-Git-Tag: emacs-19.34~1462 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a3fc4dee2cb3cc50362d98b8d062e85b974d6001;p=emacs.git (name-last-kbd-macro): Reject empty cmd name. --- 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