diff options
| author | Richard M. Stallman | 1996-01-28 03:07:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-28 03:07:15 +0000 |
| commit | ef8e50b169b670d29418b521b4623e940c3fa8a5 (patch) | |
| tree | 2f88bd1a41471e1be594ee445063451b44357c7a | |
| parent | 000f808355abd45e95839d671f1d9ea77865e74f (diff) | |
| download | emacs-ef8e50b169b670d29418b521b4623e940c3fa8a5.tar.gz emacs-ef8e50b169b670d29418b521b4623e940c3fa8a5.zip | |
(edit-kbd-macro): Reject empty cmd name.
| -rw-r--r-- | lisp/edmacro.el | 2 |
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." | |||
| 112 | (setq cmd 'last-kbd-macro)) | 112 | (setq cmd 'last-kbd-macro)) |
| 113 | ((eq cmd 'execute-extended-command) | 113 | ((eq cmd 'execute-extended-command) |
| 114 | (setq cmd (read-command "Name of keyboard macro to edit: ")) | 114 | (setq cmd (read-command "Name of keyboard macro to edit: ")) |
| 115 | (if (string-equal cmd "") | ||
| 116 | (error "No command name given")) | ||
| 115 | (setq mac (symbol-function cmd))) | 117 | (setq mac (symbol-function cmd))) |
| 116 | ((eq cmd 'view-lossage) | 118 | ((eq cmd 'view-lossage) |
| 117 | (setq mac (recent-keys)) | 119 | (setq mac (recent-keys)) |