From: Richard M. Stallman Date: Sun, 28 Jan 1996 03:07:15 +0000 (+0000) Subject: (edit-kbd-macro): Reject empty cmd name. X-Git-Tag: emacs-19.34~1463 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ef8e50b169b670d29418b521b4623e940c3fa8a5;p=emacs.git (edit-kbd-macro): Reject empty cmd name. --- diff --git a/lisp/edmacro.el b/lisp/edmacro.el index 7f2d8d47fc0..35be9ba054d 100644 --- a/lisp/edmacro.el +++ b/lisp/edmacro.el @@ -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))