; * lisp/international/emoji.el (emoji--narrow): move, avoid warning

This commit is contained in:
Mattias Engdegård 2023-02-15 12:21:44 +01:00
parent 16ba96ad3d
commit b9ef710dd3

View file

@ -116,6 +116,11 @@ and also consults the `emoji-alternate-names' alist."
(emoji--add-recent glyph)
(insert glyph))))
(defclass emoji--narrow (transient-suffix)
((title :initarg :title)
(done-derived :initarg :done-derived)
(children :initarg :children)))
(defun emoji--setup-prefix (command title done-derived spec)
(transient-setup
command nil nil
@ -137,11 +142,6 @@ and also consults the `emoji-alternate-names' alist."
(defun emoji--group-description ()
(car (oref transient--prefix scope)))
(defclass emoji--narrow (transient-suffix)
((title :initarg :title)
(done-derived :initarg :done-derived)
(children :initarg :children)))
(transient-define-suffix emoji-insert-glyph ()
"Insert the emoji you selected."
(interactive nil not-a-mode)