# HG changeset patch # User Karl Heuer # Date 801180498 0 # Node ID 993431cf1f89594e0037b2c7a3a81a05bb1090cb # Parent ab2739454f2a2f59a8eb2b58dedee981ee3a026a (edit-kbd-macro): Better error messages for undefined keys or keys that are not keyboard macros. diff -r ab2739454f2a -r 993431cf1f89 lisp/edmacro.el --- 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))