* 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).
(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