Prevent "Selecting deleted buffer" error with dabbrev-expand
authorStephen Berman <stephen.berman@gmx.net>
Sat, 30 Nov 2024 22:28:06 +0000 (23:28 +0100)
committerStephen Berman <stephen.berman@gmx.net>
Sat, 30 Nov 2024 22:28:06 +0000 (23:28 +0100)
commitbd8a6f70fb947c4ea11c4772cff6e81180e5e35a
treea0d6a27f15b32459ceaa0da4d6aa25acf3b3c7ea
parent0a753603a53622d939661d796eb203908867bb9e
Prevent "Selecting deleted buffer" error with dabbrev-expand

* lisp/dabbrev.el (dabbrev-expand): Use the buffer where the last
expansion was found only if it is still a live buffer (bug#74090).

* test/lisp/dabbrev-tests.el (dabbrev-expand-test-minibuffer-3):
Fix typo in doc string.
(dabbrev-expand-after-killing-buffer): New test.
lisp/dabbrev.el
test/lisp/dabbrev-tests.el