From: Glenn Morris Date: Thu, 7 Jun 2007 06:32:42 +0000 (+0000) Subject: Alfred M. Szmidt (tiny change) X-Git-Tag: emacs-pretest-23.0.90~12445 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c8e01749b1cd0ec1f3bff68891125a5cf272c2d6;p=emacs.git Alfred M. Szmidt (tiny change) (rmail-summary-save-buffer): New command. (rmail-summary-mode-map): Add rmail-summary-save-buffer. --- diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 6383722a4be..288f3f24e66 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el @@ -854,6 +854,15 @@ Search, the `unseen' attribute is restored.") (set-buffer rmail-buffer) (rmail-show-message msg-num t)))))) (rmail-summary-update-highlight nil))))) + +(defun rmail-summary-save-buffer () + "Save the buffer associated with this RMAIL summary." + (interactive) + (save-window-excursion + (save-excursion + (switch-to-buffer rmail-buffer) + (save-buffer)))) + (if rmail-summary-mode-map nil @@ -923,6 +932,7 @@ Search, the `unseen' attribute is restored.") 'rmail-summary-sort-by-lines) (define-key rmail-summary-mode-map "\C-c\C-s\C-k" 'rmail-summary-sort-by-labels) + (define-key rmail-summary-mode-map "\C-x\C-s" 'rmail-summary-save-buffer) ) ;;; Menu bar bindings.