2011-09-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el (gnus-article-mark-lists): Remove `recent'.
+ (gnus-interactive-exit): Extend to `quiet'.
+
+ * gnus-sum.el (gnus-offer-save-summaries): Use it.
* gnus-art.el (gnus-treat-hide-citation-maybe): Add more doc to the
string.
;; Go through all these summary buffers and offer to save them.
(when buffers
(save-excursion
- (map-y-or-n-p
- "Update summary buffer %s? "
- (lambda (buf)
- (switch-to-buffer buf)
- (gnus-summary-exit))
- buffers)))))
+ (if (eq gnus-interactive-exit 'quiet)
+ (dolist (buffer buffers)
+ (switch-to-buffer buf)
+ (gnus-summary-exit))
+ (map-y-or-n-p
+ "Update summary buffer %s? "
+ (lambda (buf)
+ (switch-to-buffer buf)
+ (gnus-summary-exit))
+ buffers))))))
(defun gnus-summary-setup-default-charset ()
"Setup newsgroup default charset."
:type 'boolean)
(defcustom gnus-interactive-exit t
- "*If non-nil, require your confirmation when exiting Gnus."
+ "*If non-nil, require your confirmation when exiting Gnus.
+If `quiet', update any active summary buffers automatically
+first before exiting."
:group 'gnus-exit
:type 'boolean)
2011-09-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mentions of `recent', which are now obsolete.
+ (Interactive): Document `quiet'.
2011-07-05 Lars Magne Ingebrigtsen <larsi@gnus.org>
@item gnus-interactive-exit
@vindex gnus-interactive-exit
-Require confirmation before exiting Gnus. This variable is @code{t} by
-default.
+If non-@code{nil}, require a confirmation when exiting Gnus. If
+@code{quiet}, update any active summary buffers automatically without
+querying. The default value is @code{t}.
@end table