bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#67204: 29.1; request: always echo EMOJI name while emoji-list


From: Eli Zaretskii
Subject: bug#67204: 29.1; request: always echo EMOJI name while emoji-list
Date: Tue, 09 Jan 2024 22:02:19 +0200

> Cc: 67204@debbugs.gnu.org, awrhygty@outlook.com
> Date: Sat, 30 Dec 2023 11:20:59 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 
> OK, I see the issue now: it's because C-f/C-b still moves by one
> character in this buffer, and we basically rely on point-adjustment to
> move to the next emoji.  The cases where the echo is incorrect, point
> after C-f is still on the same emoji, not on the next one, whereas
> after point adjustment it is on the next emoji.
> 
> The solution to that is not to show the emoji name from the
> post-command-hook, but from an idle timer.  Like this:
> 
>   (add-hook #'post-command-hook
>           (lambda ()
>             (run-with-idle-timer 0.02 nil
>                                  (lambda ()
>                                    (when-let
>                                        ((glyph (get-text-property (point)
>                                                                   
> 'emoji-glyph))
>                                         (name (emoji--name glyph)))
>                                      (message "%s" name)))))
>           nil 'local)
> 
> We could have this as an optional feature, or we could leave this
> alone and rely on users who want this to customize their Emacs like
> above.

No further comments, so I'm now closing this bug.





reply via email to

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