From ef8e50b169b670d29418b521b4623e940c3fa8a5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 28 Jan 1996 03:07:15 +0000 Subject: [PATCH] (edit-kbd-macro): Reject empty cmd name. --- lisp/edmacro.el | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.39.2