summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/edmacro.el2
1 files changed, 2 insertions, 0 deletions
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))