Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1715f2db
Commit
1715f2db
authored
Sep 08, 2012
by
Drew Adams
Committed by
Chong Yidong
Sep 08, 2012
Browse files
* subr.el (add-to-history): Fix delete usage.
Fixes: debbugs:12314
parent
6dcef6ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/subr.el
lisp/subr.el
+1
-1
No files found.
lisp/ChangeLog
View file @
1715f2db
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.
...
...
lisp/subr.el
View file @
1715f2db
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment