mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
(edit-kbd-macro): Reject empty cmd name.
This commit is contained in:
parent
000f808355
commit
ef8e50b169
1 changed files with 2 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue