;;; rmailsum.el --- make summary buffers for the mail reader
;; Copyright (C) 1985, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2003,
-;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: mail
;; This file is part of GNU Emacs.
-;; GNU Emacs is free software; you can redistribute it and/or modify
+;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation; either version 2, or (at your option)
-;; any later version.
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
-;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-;; Boston, MA 02110-1301, USA.
+;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
(if (zerop (% rmail-new-summary-line-count 10))
(message "Computing summary lines...%d"
rmail-new-summary-line-count))
- (rmail-make-summary-line-1 msg)))))
+ (rmail-make-summary-line-1 msg))))
+ delpos)
;; Fix up the part of the summary that says "deleted" or "unseen".
- (aset line 5
- (if (rmail-message-deleted-p msg) ?\D
+ (string-match "[0-9]+" line)
+ (aset line (match-end 0)
+ (if (rmail-message-deleted-p msg) ?D
(if (= ?0 (char-after (+ 3 (rmail-msgbeg msg))))
- ?\- ?\ )))
+ ?- ?\s)))
line))
;;;###autoload
(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))))
+
\f
(if rmail-summary-mode-map
nil
'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)
)
\f
;;; Menu bar bindings.
(end-of-buffer))
(forward-line -1))
+(declare-function rmail-abort-edit "rmailedit" ())
+(declare-function rmail-cease-edit "rmailedit"())
+(declare-function rmail-set-label "rmailkwd" (l state &optional n))
+(declare-function rmail-output-read-file-name "rmailout" ())
+(declare-function rmail-output-read-rmail-file-name "rmailout" ())
+(declare-function mail-send-and-exit "sendmail" (&optional arg))
+
(defvar rmail-summary-edit-map nil)
(if rmail-summary-edit-map
nil
(provide 'rmailsum)
-;;; arch-tag: 556079ee-75c1-47f5-9884-2e0a0bc6c5a1
+;; arch-tag: 556079ee-75c1-47f5-9884-2e0a0bc6c5a1
;;; rmailsum.el ends here