From: Jonas Bernoulli Date: Wed, 22 Dec 2021 19:02:00 +0000 (+0100) Subject: Hide transient prefix/suffix commands from execute-extended-command X-Git-Tag: emacs-29.0.90~3506 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7be73593b4b7d65342263d3bac2558aa27dfb175;p=emacs.git Hide transient prefix/suffix commands from execute-extended-command * 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. --- diff --git a/lisp/international/emoji.el b/lisp/international/emoji.el index cd6684c3f6a..cab524e24b6 100644 --- a/lisp/international/emoji.el +++ b/lisp/international/emoji.el @@ -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))))