]> git.eshelyaron.com Git - emacs.git/commit
Improve delete-consecutive-dups doc precision and add test
authorMattias Engdegård <mattiase@acm.org>
Sun, 26 Feb 2023 13:34:58 +0000 (14:34 +0100)
committerMattias Engdegård <mattiase@acm.org>
Mon, 27 Feb 2023 09:03:23 +0000 (10:03 +0100)
commit434ab2e08895bdf952de78aea285da33be63c954
tree07a09150928f785f3eacd9fc3ea5ca824c338d42
parentc640dc9ef533c1fa68cf7b29f63a3fb32e4c3b06
Improve delete-consecutive-dups doc precision and add test

* lisp/subr.el (delete-consecutive-dups): Document which element of
each run is retained (the earliest in the list).  This matters because
it makes it safe to ignore the return value.
* test/lisp/subr-tests.el (subr--delete-dups)
(subr--delete-consecutive-dups): Add tests.
lisp/subr.el
test/lisp/subr-tests.el