From 04dbd88c34341bc4fb1712f370eefd0d3387aa9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=20=E0=A4=B8=E0=A4=BF?= =?UTF-8?q?=E0=A4=82=E0=A4=B9=20Sameer=20Singh?= Date: Wed, 8 Apr 2026 10:25:40 +0530 Subject: [PATCH] Fix emoji--insert-buffer being wiped by emoji-list-mode * lisp/international/emoji.el (emoji-list): Set insert-buffer after the emoji buffer is set up. (bug#80773) --- lisp/international/emoji.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/international/emoji.el b/lisp/international/emoji.el index 56a8134be81..237062cc328 100644 --- a/lisp/international/emoji.el +++ b/lisp/international/emoji.el @@ -167,14 +167,14 @@ 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) (emoji--list-generate nil (cons nil emoji--labels)) - (goto-char (point-min)))))) + (goto-char (point-min)))) + (setq-local emoji--insert-buffer buf))) ;;;###autoload (defun emoji-describe (glyph &optional interactive)