|
From: | Stefan Monnier |
Subject: | Re: [Emacs-diffs] emacs-26 f172894: Exit macro definition on undefined keys |
Date: | Sun, 01 Oct 2017 09:20:31 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
> (if defining-kbd-macro > - (error "%s is undefined" (key-description (this-single-command-keys))) > + (user-error "%s is undefined" (key-description > (this-single-command-keys))) > (message "%s is undefined" (key-description (this-single-command-keys)))) I was thinking of using user-error regardless of defining-kbd-macro. This also means to move the `user-error` call to the end of the function. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |