mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
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)
This commit is contained in:
parent
d43aa7c6e2
commit
04dbd88c34
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue