emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] emacs-26 f172894: Exit macro definition on undefined k


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]