From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67204: 29.1; request: always echo EMOJI name while emoji-list Date: Sat, 30 Dec 2023 11:20:59 +0200 Message-ID: <83il4g3v2c.fsf@gnu.org> References: <83a5py9iy6.fsf@gnu.org> <8334vl78sa.fsf@gnu.org> <83il4h588c.fsf@gnu.org> <83h6k157zk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27443"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67204@debbugs.gnu.org, awrhygty@outlook.com To: mardani29@yahoo.es Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 30 10:22:29 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rJVY4-0006zI-OG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Dec 2023 10:22:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJVXf-0006Pf-Hj; Sat, 30 Dec 2023 04:22:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJVXe-0006PX-Hx for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2023 04:22:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJVXe-0007GJ-9k for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2023 04:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJVXe-0007QM-Dc for bug-gnu-emacs@gnu.org; Sat, 30 Dec 2023 04:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Dec 2023 09:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67204 X-GNU-PR-Package: emacs Original-Received: via spool by 67204-submit@debbugs.gnu.org id=B67204.170392808028469 (code B ref 67204); Sat, 30 Dec 2023 09:22:02 +0000 Original-Received: (at 67204) by debbugs.gnu.org; 30 Dec 2023 09:21:20 +0000 Original-Received: from localhost ([127.0.0.1]:43014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJVWx-0007P5-R3 for submit@debbugs.gnu.org; Sat, 30 Dec 2023 04:21:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJVWv-0007Oq-Ce for 67204@debbugs.gnu.org; Sat, 30 Dec 2023 04:21:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJVWn-0007AZ-E0; Sat, 30 Dec 2023 04:21:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=vqT07DyX1MU1d56RFzN5EtTj7Fo2+yiqqk0SMdWIaiI=; b=A303nmGQJk2v l3zpSeVZiAbGAwqVG4MnpIEp44USteYjQN10/cmaqbP6JjUvIPpkpQpxinLYLrS9aGY0tpSn8DlO/ 3Zifv/QsZIHeMEuAdIBaIMf21NJyqtoA9lIc1q3xUBzuguDjfee40UQt8wqzUk63NcmNcartlrQ9K jKxxOrC5VctbEbT6DznIEr+H2HiPCKqNQ1DHaAXzzV7asy7jiPNjwKyXpzFSMDJHeeEmCiDLgDJS0 UyVhGjrwRZvj3Yxesy2IuVr/XLt7ZF/L5Y2WAzdte5Wd8jWLFvsG9/iPStDWwF90I1ewBUu/tSwpQ EApaopVCuqqVHoseyfjkXQ==; In-Reply-To: <83h6k157zk.fsf@gnu.org> (message from Eli Zaretskii on Fri, 29 Dec 2023 17:44:15 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277068 Archived-At: > Cc: 67204@debbugs.gnu.org, awrhygty@outlook.com > Date: Fri, 29 Dec 2023 17:44:15 +0200 > From: Eli Zaretskii > > > Cc: 67204@debbugs.gnu.org, awrhygty@outlook.com > > Date: Fri, 29 Dec 2023 17:38:59 +0200 > > From: Eli Zaretskii > > > > I cannot reproduce this. I get: > > > > person getting massage > > person getting haircut > > person walking > > person running > > people with bunny ears > > woman dancing > > Sorry, this was in Emacs 29. In Emacs 20 I indeed see what you see. > (But the OP used Emacs 29.1.) Will investigate. 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.