GNU bug report logs - #64998
29.1; `emoji-search' (C-x 8 e s) command can not be repeated using `repeat' (C-x z)

Previous Next

Package: emacs;

Reported by: Fadi Moukayed <smfadi <at> gmail.com>

Date: Tue, 1 Aug 2023 17:56:01 UTC

Severity: normal

Found in version 29.1

Full log


Message #23 received at 64998 <at> debbugs.gnu.org (full text, mbox):

From: Jonas Bernoulli <jonas <at> bernoul.li>
To: Eli Zaretskii <eliz <at> gnu.org>, Fadi Moukayed <smfadi <at> gmail.com>
Cc: 64998 <at> debbugs.gnu.org
Subject: Re: bug#64998: 29.1; `emoji-search' (C-x 8 e s) command can not be
 repeated using `repeat' (C-x z)
Date: Sun, 03 Sep 2023 18:17:21 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Fadi Moukayed <smfadi <at> gmail.com>

>> Observed behavior:
>> 
>> No "up arrow" emoji is inserted.
>> 
>> The following messages are written on the *Messages* buffer:
>> 
>> Repeating command minibuffer-complete-and-exit
>> No match
>
> That command is implemented on top of transient.el, and I'm not sure
> transient supports "C-x z" repetition.  Jonas, can you comment on
> this, please?

Support implemented in 502e7c9a9b34c74b1b99f9e2f13a75f03dabba18 (and
a little follow up commit to fix a last minute hiccup).

There is nothing in Transient that would prevent commands from being
repeated using `repeat' or `repeat-complex-command', but of course
commands still have to follow the usual rules for making them
repeatable.

`emoji-search' even for glyphs that have no variants, because it read
from the minibuffer in the function body instead of inside `interactive'.

Same for `emoji-insert-glyph', but that additionally needed a bit of
transient specific work.  Normally such a command would use
`transient-args' to get the arguments from the transient prefix, much
like `current-prefix-args' works, but `emoji-insert-graph' is a bit
different, and we have the previously inserted graph elsewhere, when
the command is repeated (from the multisession-value `emoji--recent').




This bug report was last modified 1 year and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.