# HG changeset patch # User Richard M. Stallman # Date 822798435 0 # Node ID 49d961cdc9d6dca3c5d86457e6bbcec04c13d966 # Parent c486932b7301d7fc9917be8950c3963e251dab81 (edit-kbd-macro): Reject empty cmd name. diff -r c486932b7301 -r 49d961cdc9d6 lisp/edmacro.el --- 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))