]> git.eshelyaron.com Git - emacs.git/commit
Fix bugs in dabbrev-expand (bug#74090)
authorStephen Berman <stephen.berman@gmx.net>
Thu, 31 Oct 2024 09:46:27 +0000 (10:46 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 5 Nov 2024 11:16:24 +0000 (12:16 +0100)
commit47aedf4beb8ceaa55a7b5521a0c2487f42f7e908
tree79304f8276a8391937b80a274bb6c6475efee72b
parent06fa0d4dcfc711bae5b4eb6d6e1ec98fc698f1ba
Fix bugs in dabbrev-expand (bug#74090)

* lisp/dabbrev.el (dabbrev-expand): Use the buffer where the
expansion was found when setting the internal variables used to
determine the next expansion or a replacement expansion.

* test/lisp/dabbrev-tests.el (ert-x): Require for
'ert-with-temp-directory', 'ert-resource-directory' and
'ert-resource-file'.
(with-dabbrev-test): New macro.
(dabbrev-expand-test-same-buffer-{1,2,3,4})
(dabbrev-expand-test-other-buffer-{1,2,3,4})
(dabbrev-expand-test-minibuffer-{1,2,3,4}): New tests.

* test/lisp/dabbrev-resources/dabbrev-expand.el:
* test/lisp/dabbrev-resources/INSTALL_BEGIN: New test resources.

(cherry picked from commit f6c359cb66a0e9b851e3467b1ba9cab7efa8f744)
(cherry picked from commit 8113b5c562b88d4981231b0e332ced9fc20dc0b9)
lisp/dabbrev.el
test/lisp/dabbrev-resources/INSTALL_BEGIN [new file with mode: 0644]
test/lisp/dabbrev-resources/dabbrev-expand.el [new file with mode: 0644]
test/lisp/dabbrev-tests.el