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: Tue, 09 Jan 2024 22:02:19 +0200 Message-ID: <83mstenulw.fsf@gnu.org> References: <83a5py9iy6.fsf@gnu.org> <8334vl78sa.fsf@gnu.org> <83il4h588c.fsf@gnu.org> <83h6k157zk.fsf@gnu.org> <83il4g3v2c.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5258"; mail-complaints-to="usenet@ciao.gmane.io" Cc: awrhygty@outlook.com, 67204-done@debbugs.gnu.org, mardani29@yahoo.es To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 09 21:03:22 2024 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 1rNIJm-00019h-1b for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Jan 2024 21:03:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNIJR-0003NJ-1b; Tue, 09 Jan 2024 15:03:01 -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 1rNIJM-0003M8-NT for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 15:02:58 -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 1rNIJL-0004zb-Vc for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 15:02:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNIJS-0003rB-NR for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 15:03:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2024 20:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 67204 X-GNU-PR-Package: emacs Mail-Followup-To: 67204@debbugs.gnu.org, eliz@gnu.org, awrhygty@outlook.com Original-Received: via spool by 67204-done@debbugs.gnu.org id=D67204.170483057314804 (code D ref 67204); Tue, 09 Jan 2024 20:03:02 +0000 Original-Received: (at 67204-done) by debbugs.gnu.org; 9 Jan 2024 20:02:53 +0000 Original-Received: from localhost ([127.0.0.1]:41068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNIJJ-0003qi-Fp for submit@debbugs.gnu.org; Tue, 09 Jan 2024 15:02:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNIJI-0003qU-A4 for 67204-done@debbugs.gnu.org; Tue, 09 Jan 2024 15:02:52 -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 1rNIJ5-0004lj-V8; Tue, 09 Jan 2024 15:02:39 -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=lsXLEYwqTONSEcsy9lXRqit0NMPntY3l2CAWYijzSfA=; b=aVl/xwiILmu0 f0Juwfzbg6B6HhprRi8CpF59dj1NnL+tbKu6EmGPujVhs3n/EVNw7lE5CzaohFkIFw/IAdLiQu0sV jw4rbfVqawlD70+xwVYTQ+H7UebXU6OyqIF7TtKxH5O9jAhtiikVAPrrMIopANX0zmhONmQTlxPPt uVVik4CcVdMi2NBuDFUf5qixHOiRefWy5ULKB6Jd1PC22T5KpCBEAZbcOKUmOlNq8CwNUYVhamMm6 ocL5HCVMiJJLuRzMp51AuNvyVQhVvpW1Z17LpTtl8xUu7ww3OK+AmlmEtpXCCTX6SwKbbp5Tle9G5 BksYvfhdafI+Y+keHZlWWw==; In-Reply-To: <83il4g3v2c.fsf@gnu.org> (message from Eli Zaretskii on Sat, 30 Dec 2023 11:20:59 +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:277657 Archived-At: > Cc: 67204@debbugs.gnu.org, awrhygty@outlook.com > Date: Sat, 30 Dec 2023 11:20:59 +0200 > From: Eli Zaretskii > > 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.