changeset 14398:ad30f677493e

(name-last-kbd-macro): Reject empty cmd name.
author Richard M. Stallman <rms@gnu.org>
date Sun, 28 Jan 1996 03:07:38 +0000
parents 49d961cdc9d6
children 3a16ff5f6594
files lisp/macros.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/macros.el	Sun Jan 28 03:07:15 1996 +0000
+++ b/lisp/macros.el	Sun Jan 28 03:07:38 1996 +0000
@@ -45,6 +45,8 @@
        (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