diff options
author | Robin Joy <emacs@robinjoy.net> | 2024-05-24 14:26:39 +0200 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2024-05-24 19:29:20 -0700 |
commit | 984fb346fdf0d5ec9eaea6126aad0bea8823b8a3 (patch) | |
tree | 9dfe5d68c47ae5680f4811fb20a08c38407c94be /lisp/emacs-lisp/debug.el | |
parent | f3dd0d981cbb9c0fa10a3c5b05b244ed7a0f4e6b (diff) | |
download | emacs-984fb346fdf0d5ec9eaea6126aad0bea8823b8a3.tar.gz emacs-984fb346fdf0d5ec9eaea6126aad0bea8823b8a3.tar.bz2 emacs-984fb346fdf0d5ec9eaea6126aad0bea8823b8a3.zip |
Erase existing duplicates in eshell-history-ring
Erase all existing duplicates instead of just the last duplicate entry
when 'eshell-hist-ignoredups' is set to 'erase'. Multiple duplicates
can exist in case 'eshell-hist-ignoredups' was set to something else
than 'erase' in the past or if the history file contains duplicates
(bug#71107).
* lisp/eshell/em-hist.el (eshell-add-input-to-history): Remove all
duplicates from history ring.
* test/lisp/eshell/em-hist-tests.el
(em-hist-test/add-to-history/erase-existing-dups): New test.
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
0 files changed, 0 insertions, 0 deletions