Commit 1715f2db authored by Drew Adams's avatar Drew Adams Committed by Chong Yidong
Browse files

* subr.el (add-to-history): Fix delete usage.

Fixes: debbugs:12314
parent 6dcef6ec
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment