diff options
| author | Sam Steingold | 2020-01-29 11:17:50 -0500 |
|---|---|---|
| committer | Sam Steingold | 2020-01-29 11:17:50 -0500 |
| commit | bb3b0990d8505342ae14841144778df9e650ebdc (patch) | |
| tree | 46c36e92a6c63060f89e0961abb1ef890256a385 | |
| parent | a7a955eedbfeba8160cea6fec0978a3d3f323b13 (diff) | |
| download | emacs-bb3b0990d8505342ae14841144778df9e650ebdc.tar.gz emacs-bb3b0990d8505342ae14841144778df9e650ebdc.zip | |
fix bug#39344
* gnus.el (gnus-add-buffer): Use `cl-pushnew' instead of `push' to
avoid duplicate entries.
| -rw-r--r-- | lisp/gnus/gnus.el | 2 |
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.") | |||
| 660 | (defun gnus-add-buffer () | 660 | (defun gnus-add-buffer () |
| 661 | "Add the current buffer to the list of Gnus buffers." | 661 | "Add the current buffer to the list of Gnus buffers." |
| 662 | (gnus-prune-buffers) | 662 | (gnus-prune-buffers) |
| 663 | (push (current-buffer) gnus-buffers)) | 663 | (cl-pushnew (current-buffer) gnus-buffers)) |
| 664 | 664 | ||
| 665 | (defmacro gnus-kill-buffer (buffer) | 665 | (defmacro gnus-kill-buffer (buffer) |
| 666 | "Kill BUFFER and remove from the list of Gnus buffers." | 666 | "Kill BUFFER and remove from the list of Gnus buffers." |