]> git.eshelyaron.com Git - emacs.git/commitdiff
Hide transient prefix/suffix commands from execute-extended-command
authorJonas Bernoulli <jonas@bernoul.li>
Wed, 22 Dec 2021 19:02:00 +0000 (20:02 +0100)
committerJonas Bernoulli <jonas@bernoul.li>
Wed, 22 Dec 2021 19:02:00 +0000 (20:02 +0100)
* lisp/international/emoji.el (emoji--define-transient): Hide
transient prefix/suffix commands from 'execute-extended-command'
by declaring that they should only be listed in the non-existent
'not-a-mode' mode.

lisp/international/emoji.el

index cd6684c3f6afeb8854ff22b75b5c61315599697d..cab524e24b6868f60c7623d2b08e28b1c9d4e10a 100644 (file)
@@ -535,7 +535,7 @@ the name is not known."
                                          t end-function))
                                     ;; Insert the emoji.
                                     (lambda ()
-                                      (interactive)
+                                      (interactive nil not-a-mode)
                                       ;; Allow switching to the correct
                                       ;; buffer.
                                       (when end-function
@@ -548,7 +548,7 @@ the name is not known."
     ;; There's probably a better way to do this...
     (setf (symbol-function name)
           (lambda ()
-            (interactive)
+            (interactive nil not-a-mode)
             (transient-setup name)))
     (pcase-let ((`(,class ,slots ,suffixes ,docstr ,_body)
                  (transient--expand-define-args (list args))))