From 678453ebc65cc075fbf777a9b41557c26de544f2 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 5 Jul 2022 13:03:36 +0200 Subject: [PATCH] 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 27b725b0aad..341b44cc11e 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 () -- 2.39.5