diff options
author | Jim Porter <jporterbugs@gmail.com> | 2023-08-23 18:27:45 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2023-08-23 18:27:45 -0700 |
commit | 7b0f24ab1f9770408a08181ab9f8ac2b43e5ab9b (patch) | |
tree | 57850039a7f5b1dd5b4a59f0aa42da856e4fb014 /lisp/emacs-lisp/syntax.el | |
parent | 1986484d4d0b77e5c9f00217cdf2da28b6b6cf11 (diff) | |
download | emacs-7b0f24ab1f9770408a08181ab9f8ac2b43e5ab9b.tar.gz emacs-7b0f24ab1f9770408a08181ab9f8ac2b43e5ab9b.tar.bz2 emacs-7b0f24ab1f9770408a08181ab9f8ac2b43e5ab9b.zip |
Fix behavior of 'eshell-hist-ignoredups' when set to 'erase'
* lisp/eshell/em-hist.el (eshell-add-input-to-history): Refactor to
use 'pcase' and correct the logic for the 'erase' case.
* test/lisp/eshell/em-hist-tests.el: Require our test helpers.
(eshell-write-readonly-history): Rename to...
(em-hist-test/write-readonly-history): ... this.
(em-hist-test/add-to-history/allow-dups)
(em-hist-test/add-to-history/no-consecutive-dups)
(em-hist-test/add-to-history/erase-dups): New tests (bug#63360).
Diffstat (limited to 'lisp/emacs-lisp/syntax.el')
0 files changed, 0 insertions, 0 deletions