From: Scott Bell Date: Fri, 20 Sep 2024 21:16:52 +0000 (-0700) Subject: ; Always set 'emoji--insert-buffer' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8df248a8124d881ab77387871fb9d285098c661;p=emacs.git ; Always set 'emoji--insert-buffer' * lisp/international/emoji.el (emoji-list): Always set insert buffer. (Bug#73390) Copyright-paperwork-exempt: yes (cherry picked from commit ecfebb5abb864d568a90ff4a1420c973781bbef9) --- diff --git a/lisp/international/emoji.el b/lisp/international/emoji.el index bd07c12778a..7992eb699f2 100644 --- a/lisp/international/emoji.el +++ b/lisp/international/emoji.el @@ -164,12 +164,12 @@ when the command was invoked." (let ((buf (current-buffer))) (emoji--init) (switch-to-buffer (get-buffer-create "*Emoji*")) + (setq-local emoji--insert-buffer buf) ;; Don't regenerate the buffer if it already exists -- this will ;; leave point where it was the last time it was used. (when (zerop (buffer-size)) (let ((inhibit-read-only t)) (emoji-list-mode) - (setq-local emoji--insert-buffer buf) (emoji--list-generate nil (cons nil emoji--labels)) (goto-char (point-min))))))