* subr.el (add-to-history): Fix delete usage.
Fixes: debbugs:12314
This commit is contained in:
parent
6dcef6eca7
commit
1715f2dbca
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2012-09-08 Drew Adams <drew.adams@oracle.com>
|
||||
|
||||
* subr.el (add-to-history): Fix delete usage (Bug#12314).
|
||||
|
||||
2012-09-08 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* subr.el (syntax-after, syntax-class): Doc fix.
|
||||
|
|
|
@ -1548,7 +1548,7 @@ if it is empty or a duplicate."
|
|||
(or keep-all
|
||||
(not (equal (car history) newelt))))
|
||||
(if history-delete-duplicates
|
||||
(delete newelt history))
|
||||
(setq history (delete newelt history)))
|
||||
(setq history (cons newelt history))
|
||||
(when (integerp maxelt)
|
||||
(if (= 0 maxelt)
|
||||
|
|
Loading…
Add table
Reference in a new issue