summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus.el
diff options
context:
space:
mode:
authorSam Steingold <sds@gnu.org>2020-01-29 11:17:50 -0500
committerSam Steingold <sds@gnu.org>2020-01-29 11:17:50 -0500
commitbb3b0990d8505342ae14841144778df9e650ebdc (patch)
tree46c36e92a6c63060f89e0961abb1ef890256a385 /lisp/gnus/gnus.el
parenta7a955eedbfeba8160cea6fec0978a3d3f323b13 (diff)
downloademacs-bb3b0990d8505342ae14841144778df9e650ebdc.tar.gz
fix bug#39344
* gnus.el (gnus-add-buffer): Use `cl-pushnew' instead of `push' to avoid duplicate entries.
Diffstat (limited to 'lisp/gnus/gnus.el')
-rw-r--r--lisp/gnus/gnus.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index 6df26b4af8c..caeab7f55af 100644
--- 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."