Function: gnus-offer-save-summaries
gnus-offer-save-summaries is an autoloaded and byte-compiled function
defined in gnus-sum.el.gz.
Signature
(gnus-offer-save-summaries)
Documentation
Offer to save all active summary buffers.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-sum.el.gz
(defun gnus-offer-save-summaries ()
"Offer to save all active summary buffers."
(let (buffers)
;; Go through all buffers and find all summaries.
(dolist (buffer (buffer-list))
(when (and (setq buffer (buffer-name buffer))
(string-match "Summary" buffer)
(with-current-buffer buffer
;; We check that this is, indeed, a summary buffer.
(and (derived-mode-p 'gnus-summary-mode)
;; Also make sure this isn't bogus.
gnus-newsgroup-prepared
;; Also make sure that this isn't a
;; dead summary buffer.
(not gnus-dead-summary-mode))))
(push buffer buffers)))
;; Go through all these summary buffers and offer to save them.
(when buffers
(save-excursion
(if (eq gnus-interactive-exit 'quiet)
(dolist (buffer buffers)
(switch-to-buffer buffer)
(gnus-summary-exit))
(map-y-or-n-p
"Update summary buffer %s? "
(lambda (buf)
(switch-to-buffer buf)
(gnus-summary-exit))
buffers))))))