changeset 14397:49d961cdc9d6

(edit-kbd-macro): Reject empty cmd name.
author Richard M. Stallman <rms@gnu.org>
date Sun, 28 Jan 1996 03:07:15 +0000
parents c486932b7301
children ad30f677493e
files lisp/edmacro.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/edmacro.el	Sun Jan 28 00:11:39 1996 +0000
+++ b/lisp/edmacro.el	Sun Jan 28 03:07:15 1996 +0000
@@ -112,6 +112,8 @@
 	     (setq cmd 'last-kbd-macro))
 	    ((eq cmd 'execute-extended-command)
 	     (setq cmd (read-command "Name of keyboard macro to edit: "))
+	     (if (string-equal cmd "")
+		 (error "No command name given"))
 	     (setq mac (symbol-function cmd)))
 	    ((eq cmd 'view-lossage)
 	     (setq mac (recent-keys))