emacs-diffs
[Top][All Lists]
Advanced

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

master 3886c95: Make emoji-describe really describe only the glyph under


From: Lars Ingebrigtsen
Subject: master 3886c95: Make emoji-describe really describe only the glyph under point
Date: Sun, 7 Nov 2021 10:04:32 -0500 (EST)

branch: master
commit 3886c95d7ef20e40b5d3625d4650b89612f7efdd
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Make emoji-describe really describe only the glyph under point
    
    * lisp/international/emoji.el (emoji-describe): Only look at the
    compositions under point (bug#51659).
---
 lisp/international/emoji.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/international/emoji.el b/lisp/international/emoji.el
index f95a9e7..2cba707 100644
--- a/lisp/international/emoji.el
+++ b/lisp/international/emoji.el
@@ -120,7 +120,7 @@ character) under point is."
   (interactive
    (list (if (eobp)
              (error "No glyph under point")
-           (let ((comp (find-composition (point))))
+           (let ((comp (find-composition (point) (1+ (point)))))
              (if comp
                  (buffer-substring-no-properties (car comp) (cadr comp))
                (buffer-substring-no-properties (point) (1+ (point))))))



reply via email to

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