emacs-diffs
[Top][All Lists]
Advanced

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

master 678453ebc6: Remove the interactive prefix from emoji-insert


From: Lars Ingebrigtsen
Subject: master 678453ebc6: Remove the interactive prefix from emoji-insert
Date: Tue, 5 Jul 2022 07:03:50 -0400 (EDT)

branch: master
commit 678453ebc65cc075fbf777a9b41557c26de544f2
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Remove the interactive prefix from emoji-insert
    
    * lisp/international/emoji.el (emoji-insert): Remove the prefix
    action from this command, since the same is already available on
    `C-x 8 e s', and we're considering using the prefix to copy to the
    kill ring.
---
 lisp/international/emoji.el | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/lisp/international/emoji.el b/lisp/international/emoji.el
index 27b725b0aa..341b44cc11 100644
--- a/lisp/international/emoji.el
+++ b/lisp/international/emoji.el
@@ -73,18 +73,13 @@ representing names.  For instance:
 (defvar emoji--insert-buffer)
 
 ;;;###autoload
-(defun emoji-insert (&optional text)
-  "Choose and insert an emoji glyph.
-If TEXT (interactively, the prefix argument), choose the emoji
-by typing its Unicode Standard name (with completion), instead
-of selecting from emoji display."
-  (interactive "*P")
+(defun emoji-insert ()
+  "Choose and insert an emoji glyph."
+  (interactive "*")
   (emoji--init)
-  (if text
-      (emoji--choose-emoji)
-    (unless (fboundp 'emoji--command-Emoji)
-      (emoji--define-transient))
-    (funcall (intern "emoji--command-Emoji"))))
+  (unless (fboundp 'emoji--command-Emoji)
+    (emoji--define-transient))
+  (funcall (intern "emoji--command-Emoji")))
 
 ;;;###autoload
 (defun emoji-recent ()



reply via email to

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