[gnus git] branch master updated: m0-5-65-g14b8787 =1= Restore `gnus-kill-sticky-article-buffers'

Julien Danjou <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  14b8787ecb5038a1bdfdd060a32afbabd1582918 (commit)
      from  992509a3574f9add376cc480db9bb5656285bd5b (commit)


- Log -----------------------------------------------------------------
commit 14b8787ecb5038a1bdfdd060a32afbabd1582918
Author: Julien Danjou <[email protected]>
Date:   Wed Jul 25 14:01:11 2012 +0200

    Restore `gnus-kill-sticky-article-buffers'
    
    Signed-off-by: Julien Danjou <[email protected]>

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d5c5756..5ae5c61 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2012-07-25  Julien Danjou  <[email protected]>
+
+	* gnus-art.el (gnus-kill-sticky-article-buffers): Reintroduce.
+
 2012-07-24  Julien Danjou  <[email protected]>
 
 	* mail-source.el (mail-source-movemail-and-remove): Remove, unused.
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index 4bdf835..bb374fb 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -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
 ;;;

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog   |    4 ++++
 lisp/gnus-art.el |   12 ++++++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.