emacs-devel
[Top][All Lists]
Advanced

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

Re: master 371c4f642a 1/2: Add new commands to zoom emojis


From: Juri Linkov
Subject: Re: master 371c4f642a 1/2: Add new commands to zoom emojis
Date: Thu, 30 Jun 2022 19:10:03 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>>     * lisp/international/emoji.el (emoji-zoom-map)
>>     (emoji-zoom-increase, emoji-zoom-decrease): New commands.
>
> These commands should probably be "self repeating" (i.e., repeating
> without having to switch on repeat-mode).  But do we have code somewhere
> to reuse the repeat-mode machinery in a convenient way?  I poked around,
> but didn't see anything obvious.

repeat-mode is just a convenience to make it easier to put
a repeatable keymap on a command symbol, then post-command-hook
can activate set-transient-map.  So you could simply use
set-transient-map like e.g. indent-rigidly and text-scale-adjust
are doing.



reply via email to

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