From: Sam Steingold Date: Wed, 29 Jan 2020 16:17:50 +0000 (-0500) Subject: fix bug#39344 X-Git-Tag: emacs-28.0.90~7908^2~32 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb3b0990d8505342ae14841144778df9e650ebdc;p=emacs.git fix bug#39344 * gnus.el (gnus-add-buffer): Use `cl-pushnew' instead of `push' to avoid duplicate entries. --- 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."