]> git.eshelyaron.com Git - emacs.git/commitdiff
(edit-kbd-macro): Reject empty cmd name.
authorRichard M. Stallman <rms@gnu.org>
Sun, 28 Jan 1996 03:07:15 +0000 (03:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 28 Jan 1996 03:07:15 +0000 (03:07 +0000)
lisp/edmacro.el

index 7f2d8d47fc04849b21911c6c55fba12f4e559e0b..35be9ba054d81504fce3d203fb03996c313cb1cb 100644 (file)
@@ -112,6 +112,8 @@ With a prefix argument, format the macro in a more concise way."
             (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))