1
Fork 0
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:
Richard M. Stallman 1996-01-28 03:07:15 +00:00
parent 000f808355
commit ef8e50b169

View file

@ -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))