gnus-art.el (gnus-kill-sticky-article-buffers): Reintroduce

This commit is contained in:
Julien Danjou 2012-07-25 22:10:37 +00:00 committed by Katsumi Yamaoka
parent 57ec30344f
commit 71f32295ce
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2012-07-25 Julien Danjou <julien@danjou.info>
* gnus-art.el (gnus-kill-sticky-article-buffers): Reintroduce.
2012-07-25 Katsumi Yamaoka <yamaoka@jpl.org>
* nnimap.el (nnimap-get-responses): Don't remove, still used.

View file

@ -4775,6 +4775,18 @@ If none is given, assume the current buffer and kill it if it has
(when (eq major-mode 'gnus-sticky-article-mode)
(gnus-kill-buffer buffer))))
(defun gnus-kill-sticky-article-buffers (arg)
"Kill all sticky article buffers.
If a prefix ARG is given, ask for confirmation."
(interactive "P")
(dolist (buf (gnus-buffers))
(with-current-buffer buf
(when (eq major-mode 'gnus-sticky-article-mode)
(if (not arg)
(gnus-kill-buffer buf)
(when (yes-or-no-p (concat "Kill buffer " (buffer-name buf) "? "))
(gnus-kill-buffer buf)))))))
;;;
;;; Gnus MIME viewing functions
;;;