Mercurial > emacs
changeset 11870:993431cf1f89
(edit-kbd-macro): Better error messages for undefined keys
or keys that are not keyboard macros.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 22 May 1995 22:08:18 +0000 |
parents | ab2739454f2a |
children | c3906ad756fc |
files | lisp/edmacro.el |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/edmacro.el Mon May 22 21:42:13 1995 +0000 +++ b/lisp/edmacro.el Mon May 22 22:08:18 1995 +0000 @@ -114,13 +114,16 @@ ((eq cmd 'view-lossage) (setq mac (recent-keys)) (setq cmd 'last-kbd-macro)) + ((null cmd) + (error "Key sequence %s is not defined" (key-description keys))) ((symbolp cmd) (setq mac (symbol-function cmd))) (t (setq mac cmd) (setq cmd nil))) (unless (arrayp mac) - (error "Not a keyboard macro: %s" cmd)) + (error "Key sequence %s is not a keyboard macro" + (key-description keys))) (message "Formatting keyboard macro...") (let* ((oldbuf (current-buffer)) (mmac (edmacro-fix-menu-commands mac))