emacs-diffs
[Top][All Lists]
Advanced

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

scratch/emoji a867085 2/2: Add comment


From: Lars Ingebrigtsen
Subject: scratch/emoji a867085 2/2: Add comment
Date: Fri, 29 Oct 2021 07:53:18 -0400 (EDT)

branch: scratch/emoji
commit a8670850935848dad33bc1c7f3a2971f8a09996b
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Add comment
---
 lisp/play/emoji.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/play/emoji.el b/lisp/play/emoji.el
index 4e80c4e..ea3dcc1 100644
--- a/lisp/play/emoji.el
+++ b/lisp/play/emoji.el
@@ -126,7 +126,10 @@ character) under point is."
                      t))
   (require 'emoji-labels)
   (if (not interactive)
+      ;; Don't return a name for non-compositions when called
+      ;; non-interactively.
       (gethash glyph emoji--names)
+    ;; Give a name for (pretty much) any glyph, including non-emojis.
     (let ((name (emoji--name glyph)))
       (if (not name)
           (message "No known name for `%s'" glyph)



reply via email to

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