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

Previous Next

Package: emacs;

Reported by: awrhygty <at> outlook.com

Date: Wed, 15 Nov 2023 17:29:04 UTC

Severity: normal

Found in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #37 received at 67204-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: awrhygty <at> outlook.com, 67204-done <at> debbugs.gnu.org, mardani29 <at> yahoo.es
Subject: Re: bug#67204: 29.1; request: always echo EMOJI name while emoji-list
Date: Tue, 09 Jan 2024 22:02:19 +0200
> Cc: 67204 <at> debbugs.gnu.org, awrhygty <at> outlook.com
> Date: Sat, 30 Dec 2023 11:20:59 +0200
> From: Eli Zaretskii <eliz <at> 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.




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

Previous Next


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