1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00

Fix dabbrev expansion after recent file-name buffer addition

* lisp/dabbrev.el (dabbrev--find-expansion): Remove the now-dead
file name buffer from dabbrev--friend-buffer-list, so that we
don't trip over the killed buffer later (bug introduced in 2d0085f756).
This commit is contained in:
Lars Ingebrigtsen 2022-05-13 14:29:48 +02:00
parent 36ae1c721a
commit d0975d7db0

View File

@ -802,7 +802,10 @@ of the start of the occurrence."
(progress-reporter-done dabbrev--progress-reporter)
expansion))
(when (buffer-live-p file-name-buffer)
(kill-buffer file-name-buffer))))))))
(kill-buffer file-name-buffer))
(setq dabbrev--friend-buffer-list
(seq-filter #'buffer-live-p
dabbrev--friend-buffer-list))))))))
;; Compute the list of buffers to scan.
;; If dabbrev-search-these-buffers-only, then the current buffer