diff options
author | Drew Adams <[email protected]> | 2012-09-08 22:30:09 +0800 |
---|---|---|
committer | Chong Yidong <[email protected]> | 2012-09-08 22:30:09 +0800 |
commit | 1715f2dbca4b516432569892b708e9c1c0e9a2dd (patch) | |
tree | 4dc4be6cbdc7bd051c815ece3acb218c0d39b27e /lisp/subr.el | |
parent | 6dcef6eca79b118976211b05552880be2ddf014a (diff) |
* subr.el (add-to-history): Fix delete usage.
Fixes: debbugs:12314
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index 4f273a92a6..21dd270cae 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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) |