[gnus git] branch master updated: m0-5-137-g37699e6 =1= gnus-art.el (gnus-article-browse-delete-temp-files): Never ask again a user about whether to delete files if once a user answered as n

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  37699e6828e24e41525ee05ffa5691e68e2a2120 (commit)
      from  0245f2d1eca709615e7aa4f82825489f7fef9079 (commit)


- Log -----------------------------------------------------------------
commit 37699e6828e24e41525ee05ffa5691e68e2a2120
Author: Katsumi Yamaoka <[email protected]>
Date:   Tue Sep 25 23:39:31 2012 +0000

    gnus-art.el (gnus-article-browse-delete-temp-files): Never ask again a user about whether to delete files if once a user answered as n

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2befabe..b2c73aa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-25  Katsumi Yamaoka  <[email protected]>
+
+	* gnus-art.el (gnus-article-browse-delete-temp-files): Never ask again
+	a user about whether to delete temp files if once a user answered as n.
+
 2012-09-25  Chong Yidong  <[email protected]>
 
 	* password-cache.el (password-read-and-add): Use a declare form to mark
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index 7dcbd61..435a103 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -2759,12 +2759,15 @@ summary buffer."
 	     (progn
 	       (or how (setq how gnus-article-browse-delete-temp))
 	       (if (eq how 'ask)
-		   (let ((files (length gnus-article-browse-html-temp-list)))
-		     (gnus-y-or-n-p
+		   (let* ((files (length gnus-article-browse-html-temp-list))
+			  (ans (gnus-y-or-n-p
 		      (if (= files 1)
 			  "Delete the temporary HTML file? "
-			(format "Delete all %s temporary HTML files? "
-				files))))
+				  (format
+				   "Delete all %s temporary HTML files? "
+				   files)))))
+		     (or ans
+			 (setq gnus-article-browse-html-temp-list nil)))
 		 how)))
     (dolist (file gnus-article-browse-html-temp-list)
       (cond ((file-directory-p file)

-----------------------------------------------------------------------
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   |    5 +++++
 lisp/gnus-art.el |   15 +++++++++------
 2 files changed, 14 insertions(+), 6 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.