projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a955e
)
fix bug#39344
author
Sam Steingold
<sds@gnu.org>
Wed, 29 Jan 2020 16:17:50 +0000
(11:17 -0500)
committer
Sam Steingold
<sds@gnu.org>
Wed, 29 Jan 2020 16:17:50 +0000
(11:17 -0500)
* gnus.el (gnus-add-buffer): Use `cl-pushnew' instead of `push' to
avoid duplicate entries.
lisp/gnus/gnus.el
patch
|
blob
|
history
diff --git
a/lisp/gnus/gnus.el
b/lisp/gnus/gnus.el
index 6df26b4af8c1eecba9a3af2aee4eab52826a9f21..caeab7f55af469ac2201a9c39f4b8b4d35a03250 100644
(file)
--- a/
lisp/gnus/gnus.el
+++ b/
lisp/gnus/gnus.el
@@
-660,7
+660,7
@@
be used directly.")
(defun gnus-add-buffer ()
"Add the current buffer to the list of Gnus buffers."
(gnus-prune-buffers)
- (
push
(current-buffer) gnus-buffers))
+ (
cl-pushnew
(current-buffer) gnus-buffers))
(defmacro gnus-kill-buffer (buffer)
"Kill BUFFER and remove from the list of Gnus buffers."