diff options
| author | Glenn Morris | 2008-09-16 02:45:51 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-09-16 02:45:51 +0000 |
| commit | 0cf1893f3416bd0ef448ac6529a9bec2073e9035 (patch) | |
| tree | 702228b60e32c5031d8c4c7f508add457a2f6863 | |
| parent | 62d93502dd0639a1364424f649060b05f4d69713 (diff) | |
| download | emacs-0cf1893f3416bd0ef448ac6529a9bec2073e9035.tar.gz emacs-0cf1893f3416bd0ef448ac6529a9bec2073e9035.zip | |
Remove file.
| -rw-r--r-- | lisp/mail/mbox-trunk-annotations/rmailsum.el.annotation | 1706 | ||||
| -rw-r--r-- | lisp/mail/subdirs.el | 8 |
2 files changed, 0 insertions, 1714 deletions
diff --git a/lisp/mail/mbox-trunk-annotations/rmailsum.el.annotation b/lisp/mail/mbox-trunk-annotations/rmailsum.el.annotation deleted file mode 100644 index afb5270c8f3..00000000000 --- a/lisp/mail/mbox-trunk-annotations/rmailsum.el.annotation +++ /dev/null | |||
| @@ -1,1706 +0,0 @@ | |||
| 1 | 1.9 (eric 17-Mar-93): ;;; rmailsum.el --- make summary buffers for the mail reader | ||
| 2 | 1.8 (eric 17-Mar-93): | ||
| 3 | 1.136 (ttn 06-Aug-05): ;; Copyright (C) 1985, 1993, 1994, 1995, 1996, 2000, 2001, 2002, 2003, | ||
| 4 | 1.149 (miles 08-Jan-08): ;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
| 5 | 1.2 (eric 30-May-92): | ||
| 6 | 1.3 (eric 16-Jul-92): ;; Maintainer: FSF | ||
| 7 | 1.4 (eric 17-Jul-92): ;; Keywords: mail | ||
| 8 | 1.1 (jimb 30-Nov-90): | ||
| 9 | 1.1 (jimb 30-Nov-90): ;; This file is part of GNU Emacs. | ||
| 10 | 1.1 (jimb 30-Nov-90): | ||
| 11 | 1.151 (gm 06-May-08): ;; GNU Emacs is free software: you can redistribute it and/or modify | ||
| 12 | 1.1 (jimb 30-Nov-90): ;; it under the terms of the GNU General Public License as published by | ||
| 13 | 1.151 (gm 06-May-08): ;; the Free Software Foundation, either version 3 of the License, or | ||
| 14 | 1.151 (gm 06-May-08): ;; (at your option) any later version. | ||
| 15 | 1.1 (jimb 30-Nov-90): | ||
| 16 | 1.1 (jimb 30-Nov-90): ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 17 | 1.1 (jimb 30-Nov-90): ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 18 | 1.1 (jimb 30-Nov-90): ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 19 | 1.1 (jimb 30-Nov-90): ;; GNU General Public License for more details. | ||
| 20 | 1.1 (jimb 30-Nov-90): | ||
| 21 | 1.1 (jimb 30-Nov-90): ;; You should have received a copy of the GNU General Public License | ||
| 22 | 1.151 (gm 06-May-08): ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 23 | 1.1 (jimb 30-Nov-90): | ||
| 24 | 1.8 (eric 17-Mar-93): ;;; Commentary: | ||
| 25 | 1.8 (eric 17-Mar-93): | ||
| 26 | 1.6 (rms 09-Mar-93): ;; Extended by Bob Weiner of Motorola | ||
| 27 | 1.6 (rms 09-Mar-93): ;; Provided all commands from rmail-mode in rmail-summary-mode and made key | ||
| 28 | 1.6 (rms 09-Mar-93): ;; bindings in both modes wholly compatible. | ||
| 29 | 1.8 (eric 17-Mar-93): | ||
| 30 | 1.8 (eric 17-Mar-93): ;;; Code: | ||
| 31 | 1.6 (rms 09-Mar-93): | ||
| 32 | 1.138 (lektu 29-Aug-05): (defvar msgnum) | ||
| 33 | 1.138 (lektu 29-Aug-05): | ||
| 34 | 1.70 (rms 21-Aug-95): ;; For rmail-select-summary | ||
| 35 | 1.70 (rms 21-Aug-95): (require 'rmail) | ||
| 36 | 1.70 (rms 21-Aug-95): | ||
| 37 | 1.82 (rms 04-Apr-96): ;;;###autoload | ||
| 38 | 1.96 (rms 03-May-97): (defcustom rmail-summary-scroll-between-messages t | ||
| 39 | 1.96 (rms 03-May-97): "*Non-nil means Rmail summary scroll commands move between messages." | ||
| 40 | 1.96 (rms 03-May-97): :type 'boolean | ||
| 41 | 1.96 (rms 03-May-97): :group 'rmail-summary) | ||
| 42 | 1.82 (rms 04-Apr-96): | ||
| 43 | 1.91 (rms 04-Oct-96): ;;;###autoload | ||
| 44 | 1.96 (rms 03-May-97): (defcustom rmail-summary-line-count-flag t | ||
| 45 | 1.127 (jpw 06-Feb-03): "*Non-nil means Rmail summary should show the number of lines in each message." | ||
| 46 | 1.96 (rms 03-May-97): :type 'boolean | ||
| 47 | 1.96 (rms 03-May-97): :group 'rmail-summary) | ||
| 48 | 1.91 (rms 04-Oct-96): | ||
| 49 | 1.55 (rms 07-Oct-94): (defvar rmail-summary-font-lock-keywords | ||
| 50 | 1.122 (eliz 21-Oct-01): '(("^.....D.*" . font-lock-string-face) ; Deleted. | ||
| 51 | 1.122 (eliz 21-Oct-01): ("^.....-.*" . font-lock-type-face) ; Unread. | ||
| 52 | 1.55 (rms 07-Oct-94): ;; Neither of the below will be highlighted if either of the above are: | ||
| 53 | 1.122 (eliz 21-Oct-01): ("^.....[^D-] \\(......\\)" 1 font-lock-keyword-face) ; Date. | ||
| 54 | 1.130 (rms 30-Sep-03): ("{ \\([^\n}]+\\) }" 1 font-lock-comment-face)) ; Labels. | ||
| 55 | 1.55 (rms 07-Oct-94): "Additional expressions to highlight in Rmail Summary mode.") | ||
| 56 | 1.55 (rms 07-Oct-94): | ||
| 57 | 1.134 (rms 03-Jul-05): (defvar rmail-summary-redo | ||
| 58 | 1.134 (rms 03-Jul-05): "(FUNCTION . ARGS) to regenerate this Rmail summary buffer.") | ||
| 59 | 1.134 (rms 03-Jul-05): | ||
| 60 | 1.134 (rms 03-Jul-05): (defvar rmail-summary-overlay nil) | ||
| 61 | 1.134 (rms 03-Jul-05): (put 'rmail-summary-overlay 'permanent-local t) | ||
| 62 | 1.134 (rms 03-Jul-05): | ||
| 63 | 1.134 (rms 03-Jul-05): (defvar rmail-summary-mode-map nil) | ||
| 64 | 1.134 (rms 03-Jul-05): | ||
| 65 | 1.6 (rms 09-Mar-93): ;; Entry points for making a summary buffer. | ||
| 66 | 1.6 (rms 09-Mar-93): | ||
| 67 | 1.6 (rms 09-Mar-93): ;; Regenerate the contents of the summary | ||
| 68 | 1.6 (rms 09-Mar-93): ;; using the same selection criterion as last time. | ||
| 69 | 1.6 (rms 09-Mar-93): ;; M-x revert-buffer in a summary buffer calls this function. | ||
| 70 | 1.6 (rms 09-Mar-93): (defun rmail-update-summary (&rest ignore) | ||
| 71 | 1.6 (rms 09-Mar-93): (apply (car rmail-summary-redo) (cdr rmail-summary-redo))) | ||
| 72 | 1.1 (jimb 30-Nov-90): | ||
| 73 | 1.90 (rms 27-Sep-96): ;;;###autoload | ||
| 74 | 1.1 (jimb 30-Nov-90): (defun rmail-summary () | ||
| 75 | 1.1 (jimb 30-Nov-90): "Display a summary of all messages, one line per message." | ||
| 76 | 1.1 (jimb 30-Nov-90): (interactive) | ||
| 77 | 1.6 (rms 09-Mar-93): (rmail-new-summary "All" '(rmail-summary) nil)) | ||
| 78 | 1.1 (jimb 30-Nov-90): | ||
| 79 | 1.90 (rms 27-Sep-96): ;;;###autoload | ||
| 80 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-by-labels (labels) | ||
| 81 | 1.1 (jimb 30-Nov-90): "Display a summary of all messages with one or more LABELS. | ||
| 82 | 1.1 (jimb 30-Nov-90): LABELS should be a string containing the desired labels, separated by commas." | ||
| 83 | 1.1 (jimb 30-Nov-90): (interactive "sLabels to summarize by: ") | ||
| 84 | 1.1 (jimb 30-Nov-90): (if (string= labels "") | ||
| 85 | 1.1 (jimb 30-Nov-90): (setq labels (or rmail-last-multi-labels | ||
| 86 | 1.1 (jimb 30-Nov-90): (error "No label specified")))) | ||
| 87 | 1.1 (jimb 30-Nov-90): (setq rmail-last-multi-labels labels) | ||
| 88 | 1.1 (jimb 30-Nov-90): (rmail-new-summary (concat "labels " labels) | ||
| 89 | 1.6 (rms 09-Mar-93): (list 'rmail-summary-by-labels labels) | ||
| 90 | 1.1 (jimb 30-Nov-90): 'rmail-message-labels-p | ||
| 91 | 1.1 (jimb 30-Nov-90): (concat ", \\(" (mail-comma-list-regexp labels) "\\),"))) | ||
| 92 | 1.1 (jimb 30-Nov-90): | ||
| 93 | 1.90 (rms 27-Sep-96): ;;;###autoload | ||
| 94 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-by-recipients (recipients &optional primary-only) | ||
| 95 | 1.1 (jimb 30-Nov-90): "Display a summary of all messages with the given RECIPIENTS. | ||
| 96 | 1.1 (jimb 30-Nov-90): Normally checks the To, From and Cc fields of headers; | ||
| 97 | 1.1 (jimb 30-Nov-90): but if PRIMARY-ONLY is non-nil (prefix arg given), | ||
| 98 | 1.1 (jimb 30-Nov-90): only look in the To and From fields. | ||
| 99 | 1.6 (rms 09-Mar-93): RECIPIENTS is a string of regexps separated by commas." | ||
| 100 | 1.1 (jimb 30-Nov-90): (interactive "sRecipients to summarize by: \nP") | ||
| 101 | 1.1 (jimb 30-Nov-90): (rmail-new-summary | ||
| 102 | 1.1 (jimb 30-Nov-90): (concat "recipients " recipients) | ||
| 103 | 1.6 (rms 09-Mar-93): (list 'rmail-summary-by-recipients recipients primary-only) | ||
| 104 | 1.1 (jimb 30-Nov-90): 'rmail-message-recipients-p | ||
| 105 | 1.1 (jimb 30-Nov-90): (mail-comma-list-regexp recipients) primary-only)) | ||
| 106 | 1.1 (jimb 30-Nov-90): | ||
| 107 | 1.90 (rms 27-Sep-96): ;;;###autoload | ||
| 108 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-by-regexp (regexp) | ||
| 109 | 1.1 (jimb 30-Nov-90): "Display a summary of all messages according to regexp REGEXP. | ||
| 110 | 1.1 (jimb 30-Nov-90): If the regular expression is found in the header of the message | ||
| 111 | 1.1 (jimb 30-Nov-90): \(including in the date and other lines, as well as the subject line), | ||
| 112 | 1.1 (jimb 30-Nov-90): Emacs will list the header line in the RMAIL-summary." | ||
| 113 | 1.1 (jimb 30-Nov-90): (interactive "sRegexp to summarize by: ") | ||
| 114 | 1.1 (jimb 30-Nov-90): (if (string= regexp "") | ||
| 115 | 1.1 (jimb 30-Nov-90): (setq regexp (or rmail-last-regexp | ||
| 116 | 1.120 (pj 15-Jul-01): (error "No regexp specified")))) | ||
| 117 | 1.1 (jimb 30-Nov-90): (setq rmail-last-regexp regexp) | ||
| 118 | 1.1 (jimb 30-Nov-90): (rmail-new-summary (concat "regexp " regexp) | ||
| 119 | 1.6 (rms 09-Mar-93): (list 'rmail-summary-by-regexp regexp) | ||
| 120 | 1.1 (jimb 30-Nov-90): 'rmail-message-regexp-p | ||
| 121 | 1.1 (jimb 30-Nov-90): regexp)) | ||
| 122 | 1.1 (jimb 30-Nov-90): | ||
| 123 | 1.6 (rms 09-Mar-93): ;; rmail-summary-by-topic | ||
| 124 | 1.6 (rms 09-Mar-93): ;; 1989 R.A. Schnitzler | ||
| 125 | 1.6 (rms 09-Mar-93): | ||
| 126 | 1.90 (rms 27-Sep-96): ;;;###autoload | ||
| 127 | 1.6 (rms 09-Mar-93): (defun rmail-summary-by-topic (subject &optional whole-message) | ||
| 128 | 1.6 (rms 09-Mar-93): "Display a summary of all messages with the given SUBJECT. | ||
| 129 | 1.6 (rms 09-Mar-93): Normally checks the Subject field of headers; | ||
| 130 | 1.126 (lektu 04-Feb-03): but if WHOLE-MESSAGE is non-nil (prefix arg given), | ||
| 131 | 1.6 (rms 09-Mar-93): look in the whole message. | ||
| 132 | 1.6 (rms 09-Mar-93): SUBJECT is a string of regexps separated by commas." | ||
| 133 | 1.140 (as 08-Jan-06): (interactive | ||
| 134 | 1.140 (as 08-Jan-06): (let* ((subject (with-current-buffer rmail-buffer | ||
| 135 | 1.140 (as 08-Jan-06): (rmail-current-subject))) | ||
| 136 | 1.140 (as 08-Jan-06): (subject-re (with-current-buffer rmail-buffer | ||
| 137 | 1.140 (as 08-Jan-06): (rmail-current-subject-regexp))) | ||
| 138 | 1.140 (as 08-Jan-06): (prompt (concat "Topics to summarize by (regexp" | ||
| 139 | 1.140 (as 08-Jan-06): (if subject ", default current subject" "") | ||
| 140 | 1.140 (as 08-Jan-06): "): "))) | ||
| 141 | 1.140 (as 08-Jan-06): (list (read-string prompt nil nil subject) current-prefix-arg))) | ||
| 142 | 1.6 (rms 09-Mar-93): (rmail-new-summary | ||
| 143 | 1.6 (rms 09-Mar-93): (concat "about " subject) | ||
| 144 | 1.6 (rms 09-Mar-93): (list 'rmail-summary-by-topic subject whole-message) | ||
| 145 | 1.6 (rms 09-Mar-93): 'rmail-message-subject-p | ||
| 146 | 1.6 (rms 09-Mar-93): (mail-comma-list-regexp subject) whole-message)) | ||
| 147 | 1.6 (rms 09-Mar-93): | ||
| 148 | 1.6 (rms 09-Mar-93): (defun rmail-message-subject-p (msg subject &optional whole-message) | ||
| 149 | 1.6 (rms 09-Mar-93): (save-restriction | ||
| 150 | 1.6 (rms 09-Mar-93): (goto-char (rmail-msgbeg msg)) | ||
| 151 | 1.105 (rms 01-Nov-98): (search-forward "\n*** EOOH ***\n" (rmail-msgend msg) 'move) | ||
| 152 | 1.6 (rms 09-Mar-93): (narrow-to-region | ||
| 153 | 1.6 (rms 09-Mar-93): (point) | ||
| 154 | 1.12 (rms 31-May-93): (progn (search-forward (if whole-message "\^_" "\n\n")) (point))) | ||
| 155 | 1.6 (rms 09-Mar-93): (goto-char (point-min)) | ||
| 156 | 1.6 (rms 09-Mar-93): (if whole-message (re-search-forward subject nil t) | ||
| 157 | 1.119 (gerd 31-May-01): (string-match subject (let ((subj (mail-fetch-field "Subject"))) | ||
| 158 | 1.119 (gerd 31-May-01): (if subj | ||
| 159 | 1.119 (gerd 31-May-01): (funcall rmail-summary-line-decoder subj) | ||
| 160 | 1.119 (gerd 31-May-01): "")))))) | ||
| 161 | 1.13 (rms 03-Jun-93): | ||
| 162 | 1.90 (rms 27-Sep-96): ;;;###autoload | ||
| 163 | 1.13 (rms 03-Jun-93): (defun rmail-summary-by-senders (senders) | ||
| 164 | 1.13 (rms 03-Jun-93): "Display a summary of all messages with the given SENDERS. | ||
| 165 | 1.13 (rms 03-Jun-93): SENDERS is a string of names separated by commas." | ||
| 166 | 1.13 (rms 03-Jun-93): (interactive "sSenders to summarize by: ") | ||
| 167 | 1.13 (rms 03-Jun-93): (rmail-new-summary | ||
| 168 | 1.13 (rms 03-Jun-93): (concat "senders " senders) | ||
| 169 | 1.24 (rms 08-Jan-94): (list 'rmail-summary-by-senders senders) | ||
| 170 | 1.13 (rms 03-Jun-93): 'rmail-message-senders-p | ||
| 171 | 1.13 (rms 03-Jun-93): (mail-comma-list-regexp senders))) | ||
| 172 | 1.13 (rms 03-Jun-93): | ||
| 173 | 1.13 (rms 03-Jun-93): (defun rmail-message-senders-p (msg senders) | ||
| 174 | 1.13 (rms 03-Jun-93): (save-restriction | ||
| 175 | 1.13 (rms 03-Jun-93): (goto-char (rmail-msgbeg msg)) | ||
| 176 | 1.13 (rms 03-Jun-93): (search-forward "\n*** EOOH ***\n") | ||
| 177 | 1.13 (rms 03-Jun-93): (narrow-to-region (point) (progn (search-forward "\n\n") (point))) | ||
| 178 | 1.13 (rms 03-Jun-93): (string-match senders (or (mail-fetch-field "From") "")))) | ||
| 179 | 1.1 (jimb 30-Nov-90): | ||
| 180 | 1.6 (rms 09-Mar-93): ;; General making of a summary buffer. | ||
| 181 | 1.6 (rms 09-Mar-93): | ||
| 182 | 1.6 (rms 09-Mar-93): (defvar rmail-summary-symbol-number 0) | ||
| 183 | 1.6 (rms 09-Mar-93): | ||
| 184 | 1.134 (rms 03-Jul-05): (defvar rmail-new-summary-line-count) | ||
| 185 | 1.134 (rms 03-Jul-05): | ||
| 186 | 1.6 (rms 09-Mar-93): (defun rmail-new-summary (description redo-form function &rest args) | ||
| 187 | 1.1 (jimb 30-Nov-90): "Create a summary of selected messages. | ||
| 188 | 1.1 (jimb 30-Nov-90): DESCRIPTION makes part of the mode line of the summary buffer. | ||
| 189 | 1.1 (jimb 30-Nov-90): For each message, FUNCTION is applied to the message number and ARGS... | ||
| 190 | 1.1 (jimb 30-Nov-90): and if the result is non-nil, that message is included. | ||
| 191 | 1.1 (jimb 30-Nov-90): nil for FUNCTION means all messages." | ||
| 192 | 1.1 (jimb 30-Nov-90): (message "Computing summary lines...") | ||
| 193 | 1.6 (rms 09-Mar-93): (let (sumbuf mesg was-in-summary) | ||
| 194 | 1.6 (rms 09-Mar-93): (save-excursion | ||
| 195 | 1.6 (rms 09-Mar-93): ;; Go to the Rmail buffer. | ||
| 196 | 1.6 (rms 09-Mar-93): (if (eq major-mode 'rmail-summary-mode) | ||
| 197 | 1.118 (gerd 08-May-01): (setq was-in-summary t)) | ||
| 198 | 1.118 (gerd 08-May-01): (set-buffer rmail-buffer) | ||
| 199 | 1.6 (rms 09-Mar-93): ;; Find its summary buffer, or make one. | ||
| 200 | 1.11 (rms 28-May-93): (setq sumbuf | ||
| 201 | 1.11 (rms 28-May-93): (if (and rmail-summary-buffer | ||
| 202 | 1.11 (rms 28-May-93): (buffer-name rmail-summary-buffer)) | ||
| 203 | 1.11 (rms 28-May-93): rmail-summary-buffer | ||
| 204 | 1.11 (rms 28-May-93): (generate-new-buffer (concat (buffer-name) "-summary")))) | ||
| 205 | 1.6 (rms 09-Mar-93): (setq mesg rmail-current-message) | ||
| 206 | 1.6 (rms 09-Mar-93): ;; Filter the messages; make or get their summary lines. | ||
| 207 | 1.6 (rms 09-Mar-93): (let ((summary-msgs ()) | ||
| 208 | 1.134 (rms 03-Jul-05): (rmail-new-summary-line-count 0)) | ||
| 209 | 1.6 (rms 09-Mar-93): (let ((msgnum 1) | ||
| 210 | 1.36 (kwzh 09-Apr-94): (buffer-read-only nil) | ||
| 211 | 1.36 (kwzh 09-Apr-94): (old-min (point-min-marker)) | ||
| 212 | 1.36 (kwzh 09-Apr-94): (old-max (point-max-marker))) | ||
| 213 | 1.36 (kwzh 09-Apr-94): ;; Can't use save-restriction here; that doesn't work if we | ||
| 214 | 1.36 (kwzh 09-Apr-94): ;; plan to modify text outside the original restriction. | ||
| 215 | 1.36 (kwzh 09-Apr-94): (save-excursion | ||
| 216 | 1.36 (kwzh 09-Apr-94): (widen) | ||
| 217 | 1.36 (kwzh 09-Apr-94): (goto-char (point-min)) | ||
| 218 | 1.36 (kwzh 09-Apr-94): (while (>= rmail-total-messages msgnum) | ||
| 219 | 1.36 (kwzh 09-Apr-94): (if (or (null function) | ||
| 220 | 1.36 (kwzh 09-Apr-94): (apply function (cons msgnum args))) | ||
| 221 | 1.36 (kwzh 09-Apr-94): (setq summary-msgs | ||
| 222 | 1.36 (kwzh 09-Apr-94): (cons (cons msgnum (rmail-make-summary-line msgnum)) | ||
| 223 | 1.36 (kwzh 09-Apr-94): summary-msgs))) | ||
| 224 | 1.36 (kwzh 09-Apr-94): (setq msgnum (1+ msgnum))) | ||
| 225 | 1.36 (kwzh 09-Apr-94): (setq summary-msgs (nreverse summary-msgs))) | ||
| 226 | 1.36 (kwzh 09-Apr-94): (narrow-to-region old-min old-max)) | ||
| 227 | 1.11 (rms 28-May-93): ;; Temporarily, while summary buffer is unfinished, | ||
| 228 | 1.11 (rms 28-May-93): ;; we "don't have" a summary. | ||
| 229 | 1.11 (rms 28-May-93): (setq rmail-summary-buffer nil) | ||
| 230 | 1.118 (gerd 08-May-01): (if rmail-enable-mime | ||
| 231 | 1.118 (gerd 08-May-01): (with-current-buffer rmail-view-buffer | ||
| 232 | 1.118 (gerd 08-May-01): (setq rmail-summary-buffer nil))) | ||
| 233 | 1.11 (rms 28-May-93): (save-excursion | ||
| 234 | 1.11 (rms 28-May-93): (let ((rbuf (current-buffer)) | ||
| 235 | 1.94 (handa 26-Feb-97): (vbuf rmail-view-buffer) | ||
| 236 | 1.11 (rms 28-May-93): (total rmail-total-messages)) | ||
| 237 | 1.11 (rms 28-May-93): (set-buffer sumbuf) | ||
| 238 | 1.11 (rms 28-May-93): ;; Set up the summary buffer's contents. | ||
| 239 | 1.11 (rms 28-May-93): (let ((buffer-read-only nil)) | ||
| 240 | 1.11 (rms 28-May-93): (erase-buffer) | ||
| 241 | 1.11 (rms 28-May-93): (while summary-msgs | ||
| 242 | 1.11 (rms 28-May-93): (princ (cdr (car summary-msgs)) sumbuf) | ||
| 243 | 1.11 (rms 28-May-93): (setq summary-msgs (cdr summary-msgs))) | ||
| 244 | 1.11 (rms 28-May-93): (goto-char (point-min))) | ||
| 245 | 1.11 (rms 28-May-93): ;; Set up the rest of its state and local variables. | ||
| 246 | 1.11 (rms 28-May-93): (setq buffer-read-only t) | ||
| 247 | 1.11 (rms 28-May-93): (rmail-summary-mode) | ||
| 248 | 1.11 (rms 28-May-93): (make-local-variable 'minor-mode-alist) | ||
| 249 | 1.83 (rms 12-Jun-96): (setq minor-mode-alist (list (list t (concat ": " description)))) | ||
| 250 | 1.11 (rms 28-May-93): (setq rmail-buffer rbuf | ||
| 251 | 1.94 (handa 26-Feb-97): rmail-view-buffer vbuf | ||
| 252 | 1.11 (rms 28-May-93): rmail-summary-redo redo-form | ||
| 253 | 1.11 (rms 28-May-93): rmail-total-messages total)))) | ||
| 254 | 1.11 (rms 28-May-93): (setq rmail-summary-buffer sumbuf)) | ||
| 255 | 1.6 (rms 09-Mar-93): ;; Now display the summary buffer and go to the right place in it. | ||
| 256 | 1.6 (rms 09-Mar-93): (or was-in-summary | ||
| 257 | 1.70 (rms 21-Aug-95): (progn | ||
| 258 | 1.70 (rms 21-Aug-95): (if (and (one-window-p) | ||
| 259 | 1.70 (rms 21-Aug-95): pop-up-windows (not pop-up-frames)) | ||
| 260 | 1.70 (rms 21-Aug-95): ;; If there is just one window, put the summary on the top. | ||
| 261 | 1.70 (rms 21-Aug-95): (progn | ||
| 262 | 1.70 (rms 21-Aug-95): (split-window (selected-window) rmail-summary-window-size) | ||
| 263 | 1.70 (rms 21-Aug-95): (select-window (next-window (frame-first-window))) | ||
| 264 | 1.70 (rms 21-Aug-95): (pop-to-buffer sumbuf) | ||
| 265 | 1.70 (rms 21-Aug-95): ;; If pop-to-buffer did not use that window, delete that | ||
| 266 | 1.70 (rms 21-Aug-95): ;; window. (This can happen if it uses another frame.) | ||
| 267 | 1.70 (rms 21-Aug-95): (if (not (eq sumbuf (window-buffer (frame-first-window)))) | ||
| 268 | 1.70 (rms 21-Aug-95): (delete-other-windows))) | ||
| 269 | 1.70 (rms 21-Aug-95): (pop-to-buffer sumbuf)) | ||
| 270 | 1.70 (rms 21-Aug-95): (set-buffer rmail-buffer) | ||
| 271 | 1.70 (rms 21-Aug-95): ;; This is how rmail makes the summary buffer reappear. | ||
| 272 | 1.70 (rms 21-Aug-95): ;; We do this here to make the window the proper size. | ||
| 273 | 1.70 (rms 21-Aug-95): (rmail-select-summary nil) | ||
| 274 | 1.70 (rms 21-Aug-95): (set-buffer rmail-summary-buffer))) | ||
| 275 | 1.6 (rms 09-Mar-93): (rmail-summary-goto-msg mesg t t) | ||
| 276 | 1.69 (rms 17-Aug-95): (rmail-summary-construct-io-menu) | ||
| 277 | 1.6 (rms 09-Mar-93): (message "Computing summary lines...done"))) | ||
| 278 | 1.6 (rms 09-Mar-93): | ||
| 279 | 1.6 (rms 09-Mar-93): ;; Low levels of generating a summary. | ||
| 280 | 1.1 (jimb 30-Nov-90): | ||
| 281 | 1.1 (jimb 30-Nov-90): (defun rmail-make-summary-line (msg) | ||
| 282 | 1.1 (jimb 30-Nov-90): (let ((line (or (aref rmail-summary-vector (1- msg)) | ||
| 283 | 1.1 (jimb 30-Nov-90): (progn | ||
| 284 | 1.134 (rms 03-Jul-05): (setq rmail-new-summary-line-count | ||
| 285 | 1.134 (rms 03-Jul-05): (1+ rmail-new-summary-line-count)) | ||
| 286 | 1.134 (rms 03-Jul-05): (if (zerop (% rmail-new-summary-line-count 10)) | ||
| 287 | 1.1 (jimb 30-Nov-90): (message "Computing summary lines...%d" | ||
| 288 | 1.134 (rms 03-Jul-05): rmail-new-summary-line-count)) | ||
| 289 | 1.147 (miles 03-Aug-07): (rmail-make-summary-line-1 msg)))) | ||
| 290 | 1.147 (miles 03-Aug-07): delpos) | ||
| 291 | 1.1 (jimb 30-Nov-90): ;; Fix up the part of the summary that says "deleted" or "unseen". | ||
| 292 | 1.147 (miles 03-Aug-07): (string-match "[0-9]+" line) | ||
| 293 | 1.147 (miles 03-Aug-07): (aset line (match-end 0) | ||
| 294 | 1.147 (miles 03-Aug-07): (if (rmail-message-deleted-p msg) ?D | ||
| 295 | 1.1 (jimb 30-Nov-90): (if (= ?0 (char-after (+ 3 (rmail-msgbeg msg)))) | ||
| 296 | 1.147 (miles 03-Aug-07): ?- ?\s))) | ||
| 297 | 1.1 (jimb 30-Nov-90): line)) | ||
| 298 | 1.1 (jimb 30-Nov-90): | ||
| 299 | 1.94 (handa 26-Feb-97): ;;;###autoload | ||
| 300 | 1.96 (rms 03-May-97): (defcustom rmail-summary-line-decoder (function identity) | ||
| 301 | 1.94 (handa 26-Feb-97): "*Function to decode summary-line. | ||
| 302 | 1.94 (handa 26-Feb-97): | ||
| 303 | 1.96 (rms 03-May-97): By default, `identity' is set." | ||
| 304 | 1.96 (rms 03-May-97): :type 'function | ||
| 305 | 1.96 (rms 03-May-97): :group 'rmail-summary) | ||
| 306 | 1.94 (handa 26-Feb-97): | ||
| 307 | 1.1 (jimb 30-Nov-90): (defun rmail-make-summary-line-1 (msg) | ||
| 308 | 1.1 (jimb 30-Nov-90): (goto-char (rmail-msgbeg msg)) | ||
| 309 | 1.1 (jimb 30-Nov-90): (let* ((lim (save-excursion (forward-line 2) (point))) | ||
| 310 | 1.1 (jimb 30-Nov-90): pos | ||
| 311 | 1.1 (jimb 30-Nov-90): (labels | ||
| 312 | 1.1 (jimb 30-Nov-90): (progn | ||
| 313 | 1.1 (jimb 30-Nov-90): (forward-char 3) | ||
| 314 | 1.1 (jimb 30-Nov-90): (concat | ||
| 315 | 1.1 (jimb 30-Nov-90): ; (if (save-excursion (re-search-forward ",answered," lim t)) | ||
| 316 | 1.1 (jimb 30-Nov-90): ; "*" "") | ||
| 317 | 1.1 (jimb 30-Nov-90): ; (if (save-excursion (re-search-forward ",filed," lim t)) | ||
| 318 | 1.1 (jimb 30-Nov-90): ; "!" "") | ||
| 319 | 1.1 (jimb 30-Nov-90): (if (progn (search-forward ",,") (eolp)) | ||
| 320 | 1.1 (jimb 30-Nov-90): "" | ||
| 321 | 1.1 (jimb 30-Nov-90): (concat "{" | ||
| 322 | 1.1 (jimb 30-Nov-90): (buffer-substring (point) | ||
| 323 | 1.130 (rms 30-Sep-03): (progn (end-of-line) | ||
| 324 | 1.130 (rms 30-Sep-03): (backward-char) | ||
| 325 | 1.130 (rms 30-Sep-03): (if (looking-at ",") | ||
| 326 | 1.130 (rms 30-Sep-03): (point) | ||
| 327 | 1.130 (rms 30-Sep-03): (1+ (point))))) | ||
| 328 | 1.130 (rms 30-Sep-03): " } "))))) | ||
| 329 | 1.1 (jimb 30-Nov-90): (line | ||
| 330 | 1.1 (jimb 30-Nov-90): (progn | ||
| 331 | 1.1 (jimb 30-Nov-90): (forward-line 1) | ||
| 332 | 1.1 (jimb 30-Nov-90): (if (looking-at "Summary-line: ") | ||
| 333 | 1.1 (jimb 30-Nov-90): (progn | ||
| 334 | 1.1 (jimb 30-Nov-90): (goto-char (match-end 0)) | ||
| 335 | 1.141 (rms 26-Jan-06): (buffer-substring (point) | ||
| 336 | 1.141 (rms 26-Jan-06): (progn (forward-line 1) (point)))))))) | ||
| 337 | 1.1 (jimb 30-Nov-90): ;; Obsolete status lines lacking a # should be flushed. | ||
| 338 | 1.1 (jimb 30-Nov-90): (and line | ||
| 339 | 1.1 (jimb 30-Nov-90): (not (string-match "#" line)) | ||
| 340 | 1.1 (jimb 30-Nov-90): (progn | ||
| 341 | 1.1 (jimb 30-Nov-90): (delete-region (point) | ||
| 342 | 1.1 (jimb 30-Nov-90): (progn (forward-line -1) (point))) | ||
| 343 | 1.1 (jimb 30-Nov-90): (setq line nil))) | ||
| 344 | 1.1 (jimb 30-Nov-90): ;; If we didn't get a valid status line from the message, | ||
| 345 | 1.1 (jimb 30-Nov-90): ;; make a new one and put it in the message. | ||
| 346 | 1.1 (jimb 30-Nov-90): (or line | ||
| 347 | 1.1 (jimb 30-Nov-90): (let* ((case-fold-search t) | ||
| 348 | 1.1 (jimb 30-Nov-90): (next (rmail-msgend msg)) | ||
| 349 | 1.1 (jimb 30-Nov-90): (beg (if (progn (goto-char (rmail-msgbeg msg)) | ||
| 350 | 1.1 (jimb 30-Nov-90): (search-forward "\n*** EOOH ***\n" next t)) | ||
| 351 | 1.1 (jimb 30-Nov-90): (point) | ||
| 352 | 1.1 (jimb 30-Nov-90): (forward-line 1) | ||
| 353 | 1.1 (jimb 30-Nov-90): (point))) | ||
| 354 | 1.1 (jimb 30-Nov-90): (end (progn (search-forward "\n\n" nil t) (point)))) | ||
| 355 | 1.1 (jimb 30-Nov-90): (save-restriction | ||
| 356 | 1.1 (jimb 30-Nov-90): (narrow-to-region beg end) | ||
| 357 | 1.1 (jimb 30-Nov-90): (goto-char beg) | ||
| 358 | 1.1 (jimb 30-Nov-90): (setq line (rmail-make-basic-summary-line))) | ||
| 359 | 1.1 (jimb 30-Nov-90): (goto-char (rmail-msgbeg msg)) | ||
| 360 | 1.1 (jimb 30-Nov-90): (forward-line 2) | ||
| 361 | 1.1 (jimb 30-Nov-90): (insert "Summary-line: " line))) | ||
| 362 | 1.1 (jimb 30-Nov-90): (setq pos (string-match "#" line)) | ||
| 363 | 1.1 (jimb 30-Nov-90): (aset rmail-summary-vector (1- msg) | ||
| 364 | 1.94 (handa 26-Feb-97): (funcall rmail-summary-line-decoder | ||
| 365 | 1.121 (gerd 05-Oct-01): (concat (format "%5d " msg) | ||
| 366 | 1.94 (handa 26-Feb-97): (substring line 0 pos) | ||
| 367 | 1.94 (handa 26-Feb-97): labels | ||
| 368 | 1.94 (handa 26-Feb-97): (substring line (1+ pos))))) | ||
| 369 | 1.94 (handa 26-Feb-97): )) | ||
| 370 | 1.1 (jimb 30-Nov-90): | ||
| 371 | 1.112 (gerd 03-Apr-00): ;;;###autoload | ||
| 372 | 1.112 (gerd 03-Apr-00): (defcustom rmail-user-mail-address-regexp nil | ||
| 373 | 1.112 (gerd 03-Apr-00): "*Regexp matching user mail addresses. | ||
| 374 | 1.112 (gerd 03-Apr-00): If non-nil, this variable is used to identify the correspondent | ||
| 375 | 1.112 (gerd 03-Apr-00): when receiving new mail. If it matches the address of the sender, | ||
| 376 | 1.112 (gerd 03-Apr-00): the recipient is taken as correspondent of a mail. | ||
| 377 | 1.112 (gerd 03-Apr-00): If nil \(default value\), your `user-login-name' and `user-mail-address' | ||
| 378 | 1.112 (gerd 03-Apr-00): are used to exclude yourself as correspondent. | ||
| 379 | 1.112 (gerd 03-Apr-00): | ||
| 380 | 1.112 (gerd 03-Apr-00): Usually you don't have to set this variable, except if you collect mails | ||
| 381 | 1.112 (gerd 03-Apr-00): sent by you under different user names. | ||
| 382 | 1.125 (lektu 02-Jul-02): Then it should be a regexp matching your mail addresses. | ||
| 383 | 1.112 (gerd 03-Apr-00): | ||
| 384 | 1.112 (gerd 03-Apr-00): Setting this variable has an effect only before reading a mail." | ||
| 385 | 1.112 (gerd 03-Apr-00): :type '(choice (const :tag "None" nil) regexp) | ||
| 386 | 1.112 (gerd 03-Apr-00): :group 'rmail-retrieve | ||
| 387 | 1.112 (gerd 03-Apr-00): :version "21.1") | ||
| 388 | 1.112 (gerd 03-Apr-00): | ||
| 389 | 1.1 (jimb 30-Nov-90): (defun rmail-make-basic-summary-line () | ||
| 390 | 1.1 (jimb 30-Nov-90): (goto-char (point-min)) | ||
| 391 | 1.1 (jimb 30-Nov-90): (concat (save-excursion | ||
| 392 | 1.1 (jimb 30-Nov-90): (if (not (re-search-forward "^Date:" nil t)) | ||
| 393 | 1.1 (jimb 30-Nov-90): " " | ||
| 394 | 1.1 (jimb 30-Nov-90): (cond ((re-search-forward "\\([^0-9:]\\)\\([0-3]?[0-9]\\)\\([- \t_]+\\)\\([adfjmnos][aceopu][bcglnprtvy]\\)" | ||
| 395 | 1.1 (jimb 30-Nov-90): (save-excursion (end-of-line) (point)) t) | ||
| 396 | 1.1 (jimb 30-Nov-90): (format "%2d-%3s" | ||
| 397 | 1.132 (lektu 16-May-05): (string-to-number (buffer-substring | ||
| 398 | 1.132 (lektu 16-May-05): (match-beginning 2) | ||
| 399 | 1.132 (lektu 16-May-05): (match-end 2))) | ||
| 400 | 1.1 (jimb 30-Nov-90): (buffer-substring | ||
| 401 | 1.1 (jimb 30-Nov-90): (match-beginning 4) (match-end 4)))) | ||
| 402 | 1.1 (jimb 30-Nov-90): ((re-search-forward "\\([^a-z]\\)\\([adfjmnos][acepou][bcglnprtvy]\\)\\([-a-z \t_]*\\)\\([0-9][0-9]?\\)" | ||
| 403 | 1.1 (jimb 30-Nov-90): (save-excursion (end-of-line) (point)) t) | ||
| 404 | 1.1 (jimb 30-Nov-90): (format "%2d-%3s" | ||
| 405 | 1.132 (lektu 16-May-05): (string-to-number (buffer-substring | ||
| 406 | 1.132 (lektu 16-May-05): (match-beginning 4) | ||
| 407 | 1.132 (lektu 16-May-05): (match-end 4))) | ||
| 408 | 1.1 (jimb 30-Nov-90): (buffer-substring | ||
| 409 | 1.1 (jimb 30-Nov-90): (match-beginning 2) (match-end 2)))) | ||
| 410 | 1.86 (miles 02-Jul-96): ((re-search-forward "\\(19\\|20\\)\\([0-9][0-9]\\)-\\([01][0-9]\\)-\\([0-3][0-9]\\)" | ||
| 411 | 1.86 (miles 02-Jul-96): (save-excursion (end-of-line) (point)) t) | ||
| 412 | 1.86 (miles 02-Jul-96): (format "%2s%2s%2s" | ||
| 413 | 1.86 (miles 02-Jul-96): (buffer-substring | ||
| 414 | 1.86 (miles 02-Jul-96): (match-beginning 2) (match-end 2)) | ||
| 415 | 1.86 (miles 02-Jul-96): (buffer-substring | ||
| 416 | 1.86 (miles 02-Jul-96): (match-beginning 3) (match-end 3)) | ||
| 417 | 1.86 (miles 02-Jul-96): (buffer-substring | ||
| 418 | 1.86 (miles 02-Jul-96): (match-beginning 4) (match-end 4)))) | ||
| 419 | 1.1 (jimb 30-Nov-90): (t "??????")))) | ||
| 420 | 1.1 (jimb 30-Nov-90): " " | ||
| 421 | 1.1 (jimb 30-Nov-90): (save-excursion | ||
| 422 | 1.128 (rms 09-Apr-03): (let* ((from (and (re-search-forward "^From:[ \t]*" nil t) | ||
| 423 | 1.128 (rms 09-Apr-03): (mail-strip-quoted-names | ||
| 424 | 1.128 (rms 09-Apr-03): (buffer-substring | ||
| 425 | 1.128 (rms 09-Apr-03): (1- (point)) | ||
| 426 | 1.128 (rms 09-Apr-03): ;; Get all the lines of the From field | ||
| 427 | 1.128 (rms 09-Apr-03): ;; so that we get a whole comment if there is one, | ||
| 428 | 1.128 (rms 09-Apr-03): ;; so that mail-strip-quoted-names can discard it. | ||
| 429 | 1.128 (rms 09-Apr-03): (let ((opoint (point))) | ||
| 430 | 1.128 (rms 09-Apr-03): (while (progn (forward-line 1) | ||
| 431 | 1.128 (rms 09-Apr-03): (looking-at "[ \t]"))) | ||
| 432 | 1.128 (rms 09-Apr-03): ;; Back up over newline, then trailing spaces or tabs | ||
| 433 | 1.128 (rms 09-Apr-03): (forward-char -1) | ||
| 434 | 1.128 (rms 09-Apr-03): (skip-chars-backward " \t") | ||
| 435 | 1.128 (rms 09-Apr-03): (point)))))) | ||
| 436 | 1.128 (rms 09-Apr-03): len mch lo) | ||
| 437 | 1.128 (rms 09-Apr-03): (if (or (null from) | ||
| 438 | 1.128 (rms 09-Apr-03): (string-match | ||
| 439 | 1.128 (rms 09-Apr-03): (or rmail-user-mail-address-regexp | ||
| 440 | 1.128 (rms 09-Apr-03): (concat "^\\(" | ||
| 441 | 1.128 (rms 09-Apr-03): (regexp-quote (user-login-name)) | ||
| 442 | 1.128 (rms 09-Apr-03): "\\($\\|@\\)\\|" | ||
| 443 | 1.128 (rms 09-Apr-03): (regexp-quote | ||
| 444 | 1.128 (rms 09-Apr-03): ;; Don't lose if run from init file | ||
| 445 | 1.128 (rms 09-Apr-03): ;; where user-mail-address is not | ||
| 446 | 1.128 (rms 09-Apr-03): ;; set yet. | ||
| 447 | 1.128 (rms 09-Apr-03): (or user-mail-address | ||
| 448 | 1.128 (rms 09-Apr-03): (concat (user-login-name) "@" | ||
| 449 | 1.128 (rms 09-Apr-03): (or mail-host-address | ||
| 450 | 1.128 (rms 09-Apr-03): (system-name))))) | ||
| 451 | 1.128 (rms 09-Apr-03): "\\>\\)")) | ||
| 452 | 1.128 (rms 09-Apr-03): from)) | ||
| 453 | 1.128 (rms 09-Apr-03): ;; No From field, or it's this user. | ||
| 454 | 1.128 (rms 09-Apr-03): (save-excursion | ||
| 455 | 1.128 (rms 09-Apr-03): (goto-char (point-min)) | ||
| 456 | 1.128 (rms 09-Apr-03): (if (not (re-search-forward "^To:[ \t]*" nil t)) | ||
| 457 | 1.128 (rms 09-Apr-03): nil | ||
| 458 | 1.128 (rms 09-Apr-03): (setq from | ||
| 459 | 1.128 (rms 09-Apr-03): (concat "to: " | ||
| 460 | 1.128 (rms 09-Apr-03): (mail-strip-quoted-names | ||
| 461 | 1.128 (rms 09-Apr-03): (buffer-substring | ||
| 462 | 1.128 (rms 09-Apr-03): (point) | ||
| 463 | 1.128 (rms 09-Apr-03): (progn (end-of-line) | ||
| 464 | 1.128 (rms 09-Apr-03): (skip-chars-backward " \t") | ||
| 465 | 1.128 (rms 09-Apr-03): (point))))))))) | ||
| 466 | 1.128 (rms 09-Apr-03): (if (null from) | ||
| 467 | 1.128 (rms 09-Apr-03): " " | ||
| 468 | 1.1 (jimb 30-Nov-90): (setq len (length from)) | ||
| 469 | 1.1 (jimb 30-Nov-90): (setq mch (string-match "[@%]" from)) | ||
| 470 | 1.1 (jimb 30-Nov-90): (format "%25s" | ||
| 471 | 1.1 (jimb 30-Nov-90): (if (or (not mch) (<= len 25)) | ||
| 472 | 1.1 (jimb 30-Nov-90): (substring from (max 0 (- len 25))) | ||
| 473 | 1.1 (jimb 30-Nov-90): (substring from | ||
| 474 | 1.40 (rms 06-May-94): (setq lo (cond ((< (- mch 14) 0) 0) | ||
| 475 | 1.40 (rms 06-May-94): ((< len (+ mch 11)) | ||
| 476 | 1.1 (jimb 30-Nov-90): (- len 25)) | ||
| 477 | 1.40 (rms 06-May-94): (t (- mch 14)))) | ||
| 478 | 1.1 (jimb 30-Nov-90): (min len (+ lo 25)))))))) | ||
| 479 | 1.92 (rms 04-Oct-96): (if rmail-summary-line-count-flag | ||
| 480 | 1.91 (rms 04-Oct-96): (save-excursion | ||
| 481 | 1.91 (rms 04-Oct-96): (save-restriction | ||
| 482 | 1.91 (rms 04-Oct-96): (widen) | ||
| 483 | 1.91 (rms 04-Oct-96): (let ((beg (rmail-msgbeg msgnum)) | ||
| 484 | 1.91 (rms 04-Oct-96): (end (rmail-msgend msgnum)) | ||
| 485 | 1.91 (rms 04-Oct-96): lines) | ||
| 486 | 1.91 (rms 04-Oct-96): (save-excursion | ||
| 487 | 1.91 (rms 04-Oct-96): (goto-char beg) | ||
| 488 | 1.91 (rms 04-Oct-96): ;; Count only lines in the reformatted header, | ||
| 489 | 1.91 (rms 04-Oct-96): ;; if we have reformatted it. | ||
| 490 | 1.91 (rms 04-Oct-96): (search-forward "\n*** EOOH ***\n" end t) | ||
| 491 | 1.91 (rms 04-Oct-96): (setq lines (count-lines (point) end))) | ||
| 492 | 1.91 (rms 04-Oct-96): (format (cond | ||
| 493 | 1.91 (rms 04-Oct-96): ((<= lines 9) " [%d]") | ||
| 494 | 1.91 (rms 04-Oct-96): ((<= lines 99) " [%d]") | ||
| 495 | 1.91 (rms 04-Oct-96): ((<= lines 999) " [%3d]") | ||
| 496 | 1.91 (rms 04-Oct-96): (t "[%d]")) | ||
| 497 | 1.91 (rms 04-Oct-96): lines)))) | ||
| 498 | 1.91 (rms 04-Oct-96): " ") | ||
| 499 | 1.79 (erik 26-Feb-96): " #" ;The # is part of the format. | ||
| 500 | 1.1 (jimb 30-Nov-90): (if (re-search-forward "^Subject:" nil t) | ||
| 501 | 1.1 (jimb 30-Nov-90): (progn (skip-chars-forward " \t") | ||
| 502 | 1.1 (jimb 30-Nov-90): (buffer-substring (point) | ||
| 503 | 1.1 (jimb 30-Nov-90): (progn (end-of-line) | ||
| 504 | 1.1 (jimb 30-Nov-90): (point)))) | ||
| 505 | 1.1 (jimb 30-Nov-90): (re-search-forward "[\n][\n]+" nil t) | ||
| 506 | 1.1 (jimb 30-Nov-90): (buffer-substring (point) (progn (end-of-line) (point)))) | ||
| 507 | 1.1 (jimb 30-Nov-90): "\n")) | ||
| 508 | 1.6 (rms 09-Mar-93): | ||
| 509 | 1.6 (rms 09-Mar-93): ;; Simple motion in a summary buffer. | ||
| 510 | 1.1 (jimb 30-Nov-90): | ||
| 511 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-next-all (&optional number) | ||
| 512 | 1.1 (jimb 30-Nov-90): (interactive "p") | ||
| 513 | 1.7 (rms 13-Mar-93): (forward-line (if number number 1)) | ||
| 514 | 1.59 (rms 15-Oct-94): ;; It doesn't look nice to move forward past the last message line. | ||
| 515 | 1.59 (rms 15-Oct-94): (and (eobp) (> number 0) | ||
| 516 | 1.59 (rms 15-Oct-94): (forward-line -1)) | ||
| 517 | 1.7 (rms 13-Mar-93): (display-buffer rmail-buffer)) | ||
| 518 | 1.1 (jimb 30-Nov-90): | ||
| 519 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-previous-all (&optional number) | ||
| 520 | 1.1 (jimb 30-Nov-90): (interactive "p") | ||
| 521 | 1.7 (rms 13-Mar-93): (forward-line (- (if number number 1))) | ||
| 522 | 1.59 (rms 15-Oct-94): ;; It doesn't look nice to move forward past the last message line. | ||
| 523 | 1.59 (rms 15-Oct-94): (and (eobp) (< number 0) | ||
| 524 | 1.59 (rms 15-Oct-94): (forward-line -1)) | ||
| 525 | 1.7 (rms 13-Mar-93): (display-buffer rmail-buffer)) | ||
| 526 | 1.1 (jimb 30-Nov-90): | ||
| 527 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-next-msg (&optional number) | ||
| 528 | 1.6 (rms 09-Mar-93): "Display next non-deleted msg from rmail file. | ||
| 529 | 1.6 (rms 09-Mar-93): With optional prefix argument NUMBER, moves forward this number of non-deleted | ||
| 530 | 1.6 (rms 09-Mar-93): messages, or backward if NUMBER is negative." | ||
| 531 | 1.1 (jimb 30-Nov-90): (interactive "p") | ||
| 532 | 1.1 (jimb 30-Nov-90): (forward-line 0) | ||
| 533 | 1.15 (rms 04-Jun-93): (and (> number 0) (end-of-line)) | ||
| 534 | 1.1 (jimb 30-Nov-90): (let ((count (if (< number 0) (- number) number)) | ||
| 535 | 1.1 (jimb 30-Nov-90): (search (if (> number 0) 're-search-forward 're-search-backward)) | ||
| 536 | 1.6 (rms 09-Mar-93): (non-del-msg-found nil)) | ||
| 537 | 1.6 (rms 09-Mar-93): (while (and (> count 0) (setq non-del-msg-found | ||
| 538 | 1.143 (eliz 11-Mar-06): (or (funcall search "^.....[^D]" nil t) | ||
| 539 | 1.6 (rms 09-Mar-93): non-del-msg-found))) | ||
| 540 | 1.7 (rms 13-Mar-93): (setq count (1- count)))) | ||
| 541 | 1.15 (rms 04-Jun-93): (beginning-of-line) | ||
| 542 | 1.127 (jpw 06-Feb-03): (display-buffer rmail-view-buffer)) | ||
| 543 | 1.1 (jimb 30-Nov-90): | ||
| 544 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-previous-msg (&optional number) | ||
| 545 | 1.127 (jpw 06-Feb-03): "Display previous non-deleted msg from rmail file. | ||
| 546 | 1.127 (jpw 06-Feb-03): With optional prefix argument NUMBER, moves backward this number of | ||
| 547 | 1.127 (jpw 06-Feb-03): non-deleted messages." | ||
| 548 | 1.1 (jimb 30-Nov-90): (interactive "p") | ||
| 549 | 1.1 (jimb 30-Nov-90): (rmail-summary-next-msg (- (if number number 1)))) | ||
| 550 | 1.1 (jimb 30-Nov-90): | ||
| 551 | 1.6 (rms 09-Mar-93): (defun rmail-summary-next-labeled-message (n labels) | ||
| 552 | 1.127 (jpw 06-Feb-03): "Show next message with LABELS. Defaults to last labels used. | ||
| 553 | 1.6 (rms 09-Mar-93): With prefix argument N moves forward N messages with these labels." | ||
| 554 | 1.6 (rms 09-Mar-93): (interactive "p\nsMove to next msg with labels: ") | ||
| 555 | 1.88 (kwzh 13-Jul-96): (let (msg) | ||
| 556 | 1.88 (kwzh 13-Jul-96): (save-excursion | ||
| 557 | 1.88 (kwzh 13-Jul-96): (set-buffer rmail-buffer) | ||
| 558 | 1.88 (kwzh 13-Jul-96): (rmail-next-labeled-message n labels) | ||
| 559 | 1.88 (kwzh 13-Jul-96): (setq msg rmail-current-message)) | ||
| 560 | 1.88 (kwzh 13-Jul-96): (rmail-summary-goto-msg msg))) | ||
| 561 | 1.6 (rms 09-Mar-93): | ||
| 562 | 1.6 (rms 09-Mar-93): (defun rmail-summary-previous-labeled-message (n labels) | ||
| 563 | 1.127 (jpw 06-Feb-03): "Show previous message with LABELS. Defaults to last labels used. | ||
| 564 | 1.6 (rms 09-Mar-93): With prefix argument N moves backward N messages with these labels." | ||
| 565 | 1.6 (rms 09-Mar-93): (interactive "p\nsMove to previous msg with labels: ") | ||
| 566 | 1.88 (kwzh 13-Jul-96): (let (msg) | ||
| 567 | 1.88 (kwzh 13-Jul-96): (save-excursion | ||
| 568 | 1.88 (kwzh 13-Jul-96): (set-buffer rmail-buffer) | ||
| 569 | 1.88 (kwzh 13-Jul-96): (rmail-previous-labeled-message n labels) | ||
| 570 | 1.88 (kwzh 13-Jul-96): (setq msg rmail-current-message)) | ||
| 571 | 1.88 (kwzh 13-Jul-96): (rmail-summary-goto-msg msg))) | ||
| 572 | 1.64 (rms 05-Feb-95): | ||
| 573 | 1.64 (rms 05-Feb-95): (defun rmail-summary-next-same-subject (n) | ||
| 574 | 1.64 (rms 05-Feb-95): "Go to the next message in the summary having the same subject. | ||
| 575 | 1.64 (rms 05-Feb-95): With prefix argument N, do this N times. | ||
| 576 | 1.64 (rms 05-Feb-95): If N is negative, go backwards." | ||
| 577 | 1.64 (rms 05-Feb-95): (interactive "p") | ||
| 578 | 1.140 (as 08-Jan-06): (let ((forward (> n 0)) | ||
| 579 | 1.140 (as 08-Jan-06): search-regexp i found) | ||
| 580 | 1.140 (as 08-Jan-06): (with-current-buffer rmail-buffer | ||
| 581 | 1.140 (as 08-Jan-06): (setq search-regexp (rmail-current-subject-regexp) | ||
| 582 | 1.140 (as 08-Jan-06): i rmail-current-message)) | ||
| 583 | 1.64 (rms 05-Feb-95): (save-excursion | ||
| 584 | 1.64 (rms 05-Feb-95): (while (and (/= n 0) | ||
| 585 | 1.64 (rms 05-Feb-95): (if forward | ||
| 586 | 1.64 (rms 05-Feb-95): (not (eobp)) | ||
| 587 | 1.64 (rms 05-Feb-95): (not (bobp)))) | ||
| 588 | 1.64 (rms 05-Feb-95): (let (done) | ||
| 589 | 1.64 (rms 05-Feb-95): (while (and (not done) | ||
| 590 | 1.64 (rms 05-Feb-95): (if forward | ||
| 591 | 1.64 (rms 05-Feb-95): (not (eobp)) | ||
| 592 | 1.64 (rms 05-Feb-95): (not (bobp)))) | ||
| 593 | 1.64 (rms 05-Feb-95): ;; Advance thru summary. | ||
| 594 | 1.64 (rms 05-Feb-95): (forward-line (if forward 1 -1)) | ||
| 595 | 1.64 (rms 05-Feb-95): ;; Get msg number of this line. | ||
| 596 | 1.132 (lektu 16-May-05): (setq i (string-to-number | ||
| 597 | 1.64 (rms 05-Feb-95): (buffer-substring (point) | ||
| 598 | 1.121 (gerd 05-Oct-01): (min (point-max) (+ 6 (point)))))) | ||
| 599 | 1.64 (rms 05-Feb-95): ;; See if that msg has desired subject. | ||
| 600 | 1.64 (rms 05-Feb-95): (save-excursion | ||
| 601 | 1.64 (rms 05-Feb-95): (set-buffer rmail-buffer) | ||
| 602 | 1.64 (rms 05-Feb-95): (save-restriction | ||
| 603 | 1.64 (rms 05-Feb-95): (widen) | ||
| 604 | 1.64 (rms 05-Feb-95): (goto-char (rmail-msgbeg i)) | ||
| 605 | 1.64 (rms 05-Feb-95): (search-forward "\n*** EOOH ***\n") | ||
| 606 | 1.64 (rms 05-Feb-95): (let ((beg (point)) end) | ||
| 607 | 1.64 (rms 05-Feb-95): (search-forward "\n\n") | ||
| 608 | 1.64 (rms 05-Feb-95): (setq end (point)) | ||
| 609 | 1.64 (rms 05-Feb-95): (goto-char beg) | ||
| 610 | 1.64 (rms 05-Feb-95): (setq done (re-search-forward search-regexp end t)))))) | ||
| 611 | 1.64 (rms 05-Feb-95): (if done (setq found i))) | ||
| 612 | 1.64 (rms 05-Feb-95): (setq n (if forward (1- n) (1+ n))))) | ||
| 613 | 1.64 (rms 05-Feb-95): (if found | ||
| 614 | 1.64 (rms 05-Feb-95): (rmail-summary-goto-msg found) | ||
| 615 | 1.64 (rms 05-Feb-95): (error "No %s message with same subject" | ||
| 616 | 1.64 (rms 05-Feb-95): (if forward "following" "previous"))))) | ||
| 617 | 1.64 (rms 05-Feb-95): | ||
| 618 | 1.64 (rms 05-Feb-95): (defun rmail-summary-previous-same-subject (n) | ||
| 619 | 1.64 (rms 05-Feb-95): "Go to the previous message in the summary having the same subject. | ||
| 620 | 1.64 (rms 05-Feb-95): With prefix argument N, do this N times. | ||
| 621 | 1.64 (rms 05-Feb-95): If N is negative, go forwards instead." | ||
| 622 | 1.64 (rms 05-Feb-95): (interactive "p") | ||
| 623 | 1.64 (rms 05-Feb-95): (rmail-summary-next-same-subject (- n))) | ||
| 624 | 1.6 (rms 09-Mar-93): | ||
| 625 | 1.6 (rms 09-Mar-93): ;; Delete and undelete summary commands. | ||
| 626 | 1.6 (rms 09-Mar-93): | ||
| 627 | 1.95 (rms 16-Apr-97): (defun rmail-summary-delete-forward (&optional count) | ||
| 628 | 1.6 (rms 09-Mar-93): "Delete this message and move to next nondeleted one. | ||
| 629 | 1.6 (rms 09-Mar-93): Deleted messages stay in the file until the \\[rmail-expunge] command is given. | ||
| 630 | 1.95 (rms 16-Apr-97): A prefix argument serves as a repeat count; | ||
| 631 | 1.95 (rms 16-Apr-97): a negative argument means to delete and move backward." | ||
| 632 | 1.95 (rms 16-Apr-97): (interactive "p") | ||
| 633 | 1.97 (rms 19-May-97): (unless (numberp count) (setq count 1)) | ||
| 634 | 1.95 (rms 16-Apr-97): (let (end del-msg | ||
| 635 | 1.95 (rms 16-Apr-97): (backward (< count 0))) | ||
| 636 | 1.95 (rms 16-Apr-97): (while (/= count 0) | ||
| 637 | 1.95 (rms 16-Apr-97): (rmail-summary-goto-msg) | ||
| 638 | 1.95 (rms 16-Apr-97): (with-current-buffer rmail-buffer | ||
| 639 | 1.95 (rms 16-Apr-97): (rmail-delete-message) | ||
| 640 | 1.95 (rms 16-Apr-97): (setq del-msg rmail-current-message)) | ||
| 641 | 1.23 (rms 30-Dec-93): (rmail-summary-mark-deleted del-msg) | ||
| 642 | 1.23 (rms 30-Dec-93): (while (and (not (if backward (bobp) (eobp))) | ||
| 643 | 1.25 (rms 08-Jan-94): (save-excursion (beginning-of-line) | ||
| 644 | 1.53 (rms 27-Sep-94): (looking-at " *[0-9]+D"))) | ||
| 645 | 1.60 (rms 15-Oct-94): (forward-line (if backward -1 1))) | ||
| 646 | 1.60 (rms 15-Oct-94): ;; It looks ugly to move to the empty line at end of buffer. | ||
| 647 | 1.60 (rms 15-Oct-94): (and (eobp) (not backward) | ||
| 648 | 1.95 (rms 16-Apr-97): (forward-line -1)) | ||
| 649 | 1.95 (rms 16-Apr-97): (setq count | ||
| 650 | 1.95 (rms 16-Apr-97): (if (> count 0) (1- count) (1+ count)))))) | ||
| 651 | 1.1 (jimb 30-Nov-90): | ||
| 652 | 1.95 (rms 16-Apr-97): (defun rmail-summary-delete-backward (&optional count) | ||
| 653 | 1.6 (rms 09-Mar-93): "Delete this message and move to previous nondeleted one. | ||
| 654 | 1.95 (rms 16-Apr-97): Deleted messages stay in the file until the \\[rmail-expunge] command is given. | ||
| 655 | 1.95 (rms 16-Apr-97): A prefix argument serves as a repeat count; | ||
| 656 | 1.95 (rms 16-Apr-97): a negative argument means to delete and move forward." | ||
| 657 | 1.95 (rms 16-Apr-97): (interactive "p") | ||
| 658 | 1.95 (rms 16-Apr-97): (rmail-summary-delete-forward (- count))) | ||
| 659 | 1.6 (rms 09-Mar-93): | ||
| 660 | 1.6 (rms 09-Mar-93): (defun rmail-summary-mark-deleted (&optional n undel) | ||
| 661 | 1.76 (kwzh 24-Jan-96): ;; Since third arg is t, this only alters the summary, not the Rmail buf. | ||
| 662 | 1.10 (rms 25-May-93): (and n (rmail-summary-goto-msg n t t)) | ||
| 663 | 1.10 (rms 25-May-93): (or (eobp) | ||
| 664 | 1.63 (rms 20-Jan-95): (not (overlay-get rmail-summary-overlay 'face)) | ||
| 665 | 1.10 (rms 25-May-93): (let ((buffer-read-only nil)) | ||
| 666 | 1.10 (rms 25-May-93): (skip-chars-forward " ") | ||
| 667 | 1.10 (rms 25-May-93): (skip-chars-forward "[0-9]") | ||
| 668 | 1.10 (rms 25-May-93): (if undel | ||
| 669 | 1.10 (rms 25-May-93): (if (looking-at "D") | ||
| 670 | 1.10 (rms 25-May-93): (progn (delete-char 1) (insert " "))) | ||
| 671 | 1.10 (rms 25-May-93): (delete-char 1) | ||
| 672 | 1.10 (rms 25-May-93): (insert "D")))) | ||
| 673 | 1.6 (rms 09-Mar-93): (beginning-of-line)) | ||
| 674 | 1.6 (rms 09-Mar-93): | ||
| 675 | 1.6 (rms 09-Mar-93): (defun rmail-summary-mark-undeleted (n) | ||
| 676 | 1.6 (rms 09-Mar-93): (rmail-summary-mark-deleted n t)) | ||
| 677 | 1.6 (rms 09-Mar-93): | ||
| 678 | 1.6 (rms 09-Mar-93): (defun rmail-summary-deleted-p (&optional n) | ||
| 679 | 1.6 (rms 09-Mar-93): (save-excursion | ||
| 680 | 1.6 (rms 09-Mar-93): (and n (rmail-summary-goto-msg n nil t)) | ||
| 681 | 1.6 (rms 09-Mar-93): (skip-chars-forward " ") | ||
| 682 | 1.6 (rms 09-Mar-93): (skip-chars-forward "[0-9]") | ||
| 683 | 1.6 (rms 09-Mar-93): (looking-at "D"))) | ||
| 684 | 1.1 (jimb 30-Nov-90): | ||
| 685 | 1.6 (rms 09-Mar-93): (defun rmail-summary-undelete (&optional arg) | ||
| 686 | 1.6 (rms 09-Mar-93): "Undelete current message. | ||
| 687 | 1.6 (rms 09-Mar-93): Optional prefix ARG means undelete ARG previous messages." | ||
| 688 | 1.6 (rms 09-Mar-93): (interactive "p") | ||
| 689 | 1.6 (rms 09-Mar-93): (if (/= arg 1) | ||
| 690 | 1.6 (rms 09-Mar-93): (rmail-summary-undelete-many arg) | ||
| 691 | 1.26 (rms 26-Jan-94): (let ((buffer-read-only nil) | ||
| 692 | 1.26 (rms 26-Jan-94): (opoint (point))) | ||
| 693 | 1.6 (rms 09-Mar-93): (end-of-line) | ||
| 694 | 1.6 (rms 09-Mar-93): (cond ((re-search-backward "\\(^ *[0-9]*\\)\\(D\\)" nil t) | ||
| 695 | 1.6 (rms 09-Mar-93): (replace-match "\\1 ") | ||
| 696 | 1.6 (rms 09-Mar-93): (rmail-summary-goto-msg) | ||
| 697 | 1.118 (gerd 08-May-01): (if rmail-enable-mime | ||
| 698 | 1.118 (gerd 08-May-01): (set-buffer rmail-buffer) | ||
| 699 | 1.118 (gerd 08-May-01): (pop-to-buffer rmail-buffer)) | ||
| 700 | 1.6 (rms 09-Mar-93): (and (rmail-message-deleted-p rmail-current-message) | ||
| 701 | 1.6 (rms 09-Mar-93): (rmail-undelete-previous-message)) | ||
| 702 | 1.118 (gerd 08-May-01): (if rmail-enable-mime | ||
| 703 | 1.118 (gerd 08-May-01): (pop-to-buffer rmail-view-buffer)) | ||
| 704 | 1.26 (rms 26-Jan-94): (pop-to-buffer rmail-summary-buffer)) | ||
| 705 | 1.26 (rms 26-Jan-94): (t (goto-char opoint)))))) | ||
| 706 | 1.1 (jimb 30-Nov-90): | ||
| 707 | 1.6 (rms 09-Mar-93): (defun rmail-summary-undelete-many (&optional n) | ||
| 708 | 1.6 (rms 09-Mar-93): "Undelete all deleted msgs, optional prefix arg N means undelete N prev msgs." | ||
| 709 | 1.6 (rms 09-Mar-93): (interactive "P") | ||
| 710 | 1.6 (rms 09-Mar-93): (save-excursion | ||
| 711 | 1.6 (rms 09-Mar-93): (set-buffer rmail-buffer) | ||
| 712 | 1.6 (rms 09-Mar-93): (let* ((init-msg (if n rmail-current-message rmail-total-messages)) | ||
| 713 | 1.6 (rms 09-Mar-93): (rmail-current-message init-msg) | ||
| 714 | 1.6 (rms 09-Mar-93): (n (or n rmail-total-messages)) | ||
| 715 | 1.6 (rms 09-Mar-93): (msgs-undeled 0)) | ||
| 716 | 1.6 (rms 09-Mar-93): (while (and (> rmail-current-message 0) | ||
| 717 | 1.6 (rms 09-Mar-93): (< msgs-undeled n)) | ||
| 718 | 1.6 (rms 09-Mar-93): (if (rmail-message-deleted-p rmail-current-message) | ||
| 719 | 1.6 (rms 09-Mar-93): (progn (rmail-set-attribute "deleted" nil) | ||
| 720 | 1.6 (rms 09-Mar-93): (setq msgs-undeled (1+ msgs-undeled)))) | ||
| 721 | 1.6 (rms 09-Mar-93): (setq rmail-current-message (1- rmail-current-message))) | ||
| 722 | 1.6 (rms 09-Mar-93): (set-buffer rmail-summary-buffer) | ||
| 723 | 1.6 (rms 09-Mar-93): (setq rmail-current-message init-msg msgs-undeled 0) | ||
| 724 | 1.6 (rms 09-Mar-93): (while (and (> rmail-current-message 0) | ||
| 725 | 1.6 (rms 09-Mar-93): (< msgs-undeled n)) | ||
| 726 | 1.6 (rms 09-Mar-93): (if (rmail-summary-deleted-p rmail-current-message) | ||
| 727 | 1.6 (rms 09-Mar-93): (progn (rmail-summary-mark-undeleted rmail-current-message) | ||
| 728 | 1.6 (rms 09-Mar-93): (setq msgs-undeled (1+ msgs-undeled)))) | ||
| 729 | 1.6 (rms 09-Mar-93): (setq rmail-current-message (1- rmail-current-message)))) | ||
| 730 | 1.6 (rms 09-Mar-93): (rmail-summary-goto-msg))) | ||
| 731 | 1.6 (rms 09-Mar-93): | ||
| 732 | 1.1 (jimb 30-Nov-90): ;; Rmail Summary mode is suitable only for specially formatted data. | ||
| 733 | 1.1 (jimb 30-Nov-90): (put 'rmail-summary-mode 'mode-class 'special) | ||
| 734 | 1.1 (jimb 30-Nov-90): | ||
| 735 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-mode () | ||
| 736 | 1.6 (rms 09-Mar-93): "Rmail Summary Mode is invoked from Rmail Mode by using \\<rmail-mode-map>\\[rmail-summary]. | ||
| 737 | 1.6 (rms 09-Mar-93): As commands are issued in the summary buffer, they are applied to the | ||
| 738 | 1.6 (rms 09-Mar-93): corresponding mail messages in the rmail buffer. | ||
| 739 | 1.1 (jimb 30-Nov-90): | ||
| 740 | 1.6 (rms 09-Mar-93): All normal editing commands are turned off. | ||
| 741 | 1.21 (rms 23-Nov-93): Instead, nearly all the Rmail mode commands are available, | ||
| 742 | 1.21 (rms 23-Nov-93): though many of them move only among the messages in the summary. | ||
| 743 | 1.6 (rms 09-Mar-93): | ||
| 744 | 1.21 (rms 23-Nov-93): These additional commands exist: | ||
| 745 | 1.21 (rms 23-Nov-93): | ||
| 746 | 1.21 (rms 23-Nov-93): \\[rmail-summary-undelete-many] Undelete all or prefix arg deleted messages. | ||
| 747 | 1.21 (rms 23-Nov-93): \\[rmail-summary-wipe] Delete the summary and go to the Rmail buffer. | ||
| 748 | 1.21 (rms 23-Nov-93): | ||
| 749 | 1.21 (rms 23-Nov-93): Commands for sorting the summary: | ||
| 750 | 1.21 (rms 23-Nov-93): | ||
| 751 | 1.21 (rms 23-Nov-93): \\[rmail-summary-sort-by-date] Sort by date. | ||
| 752 | 1.21 (rms 23-Nov-93): \\[rmail-summary-sort-by-subject] Sort by subject. | ||
| 753 | 1.21 (rms 23-Nov-93): \\[rmail-summary-sort-by-author] Sort by author. | ||
| 754 | 1.21 (rms 23-Nov-93): \\[rmail-summary-sort-by-recipient] Sort by recipient. | ||
| 755 | 1.21 (rms 23-Nov-93): \\[rmail-summary-sort-by-correspondent] Sort by correspondent. | ||
| 756 | 1.33 (kwzh 07-Apr-94): \\[rmail-summary-sort-by-lines] Sort by lines. | ||
| 757 | 1.117 (gerd 07-May-01): \\[rmail-summary-sort-by-labels] Sort by labels." | ||
| 758 | 1.1 (jimb 30-Nov-90): (interactive) | ||
| 759 | 1.1 (jimb 30-Nov-90): (kill-all-local-variables) | ||
| 760 | 1.1 (jimb 30-Nov-90): (setq major-mode 'rmail-summary-mode) | ||
| 761 | 1.1 (jimb 30-Nov-90): (setq mode-name "RMAIL Summary") | ||
| 762 | 1.1 (jimb 30-Nov-90): (setq truncate-lines t) | ||
| 763 | 1.1 (jimb 30-Nov-90): (setq buffer-read-only t) | ||
| 764 | 1.1 (jimb 30-Nov-90): (set-syntax-table text-mode-syntax-table) | ||
| 765 | 1.6 (rms 09-Mar-93): (make-local-variable 'rmail-buffer) | ||
| 766 | 1.94 (handa 26-Feb-97): (make-local-variable 'rmail-view-buffer) | ||
| 767 | 1.6 (rms 09-Mar-93): (make-local-variable 'rmail-total-messages) | ||
| 768 | 1.6 (rms 09-Mar-93): (make-local-variable 'rmail-current-message) | ||
| 769 | 1.6 (rms 09-Mar-93): (setq rmail-current-message nil) | ||
| 770 | 1.6 (rms 09-Mar-93): (make-local-variable 'rmail-summary-redo) | ||
| 771 | 1.6 (rms 09-Mar-93): (setq rmail-summary-redo nil) | ||
| 772 | 1.6 (rms 09-Mar-93): (make-local-variable 'revert-buffer-function) | ||
| 773 | 1.58 (simon 12-Oct-94): (make-local-variable 'font-lock-defaults) | ||
| 774 | 1.58 (simon 12-Oct-94): (setq font-lock-defaults '(rmail-summary-font-lock-keywords t)) | ||
| 775 | 1.34 (kwzh 07-Apr-94): (rmail-summary-enable) | ||
| 776 | 1.133 (lute 26-May-05): (run-mode-hooks 'rmail-summary-mode-hook)) | ||
| 777 | 1.1 (jimb 30-Nov-90): | ||
| 778 | 1.34 (kwzh 07-Apr-94): ;; Summary features need to be disabled during edit mode. | ||
| 779 | 1.34 (kwzh 07-Apr-94): (defun rmail-summary-disable () | ||
| 780 | 1.35 (kwzh 07-Apr-94): (use-local-map text-mode-map) | ||
| 781 | 1.77 (simon 25-Jan-96): (remove-hook 'post-command-hook 'rmail-summary-rmail-update t) | ||
| 782 | 1.35 (kwzh 07-Apr-94): (setq revert-buffer-function nil)) | ||
| 783 | 1.34 (kwzh 07-Apr-94): | ||
| 784 | 1.34 (kwzh 07-Apr-94): (defun rmail-summary-enable () | ||
| 785 | 1.35 (kwzh 07-Apr-94): (use-local-map rmail-summary-mode-map) | ||
| 786 | 1.77 (simon 25-Jan-96): (add-hook 'post-command-hook 'rmail-summary-rmail-update nil t) | ||
| 787 | 1.35 (kwzh 07-Apr-94): (setq revert-buffer-function 'rmail-update-summary)) | ||
| 788 | 1.34 (kwzh 07-Apr-94): | ||
| 789 | 1.89 (rms 19-Sep-96): (defvar rmail-summary-put-back-unseen nil | ||
| 790 | 1.89 (rms 19-Sep-96): "Used for communicating between calls to `rmail-summary-rmail-update'. | ||
| 791 | 1.89 (rms 19-Sep-96): If it moves to a message within an Incremental Search, and removes | ||
| 792 | 1.89 (rms 19-Sep-96): the `unseen' attribute from that message, it sets this flag | ||
| 793 | 1.89 (rms 19-Sep-96): so that if the next motion between messages is in the same Incremental | ||
| 794 | 1.89 (rms 19-Sep-96): Search, the `unseen' attribute is restored.") | ||
| 795 | 1.89 (rms 19-Sep-96): | ||
| 796 | 1.7 (rms 13-Mar-93): ;; Show in Rmail the message described by the summary line that point is on, | ||
| 797 | 1.7 (rms 13-Mar-93): ;; but only if the Rmail buffer is already visible. | ||
| 798 | 1.6 (rms 09-Mar-93): ;; This is a post-command-hook in summary buffers. | ||
| 799 | 1.6 (rms 09-Mar-93): (defun rmail-summary-rmail-update () | ||
| 800 | 1.37 (kwzh 19-Apr-94): (let (buffer-read-only) | ||
| 801 | 1.37 (kwzh 19-Apr-94): (save-excursion | ||
| 802 | 1.37 (kwzh 19-Apr-94): ;; If at end of buffer, pretend we are on the last text line. | ||
| 803 | 1.37 (kwzh 19-Apr-94): (if (eobp) | ||
| 804 | 1.37 (kwzh 19-Apr-94): (forward-line -1)) | ||
| 805 | 1.37 (kwzh 19-Apr-94): (beginning-of-line) | ||
| 806 | 1.37 (kwzh 19-Apr-94): (skip-chars-forward " ") | ||
| 807 | 1.132 (lektu 16-May-05): (let ((msg-num (string-to-number (buffer-substring | ||
| 808 | 1.132 (lektu 16-May-05): (point) | ||
| 809 | 1.132 (lektu 16-May-05): (progn (skip-chars-forward "0-9") | ||
| 810 | 1.132 (lektu 16-May-05): (point)))))) | ||
| 811 | 1.89 (rms 19-Sep-96): ;; Always leave `unseen' removed | ||
| 812 | 1.89 (rms 19-Sep-96): ;; if we get out of isearch mode. | ||
| 813 | 1.89 (rms 19-Sep-96): ;; Don't let a subsequent isearch restore that `unseen'. | ||
| 814 | 1.89 (rms 19-Sep-96): (if (not isearch-mode) | ||
| 815 | 1.89 (rms 19-Sep-96): (setq rmail-summary-put-back-unseen nil)) | ||
| 816 | 1.89 (rms 19-Sep-96): | ||
| 817 | 1.37 (kwzh 19-Apr-94): (or (eq rmail-current-message msg-num) | ||
| 818 | 1.100 (kwzh 16-Oct-97): (let ((window (get-buffer-window rmail-view-buffer t)) | ||
| 819 | 1.37 (kwzh 19-Apr-94): (owin (selected-window))) | ||
| 820 | 1.89 (rms 19-Sep-96): (if isearch-mode | ||
| 821 | 1.89 (rms 19-Sep-96): (save-excursion | ||
| 822 | 1.89 (rms 19-Sep-96): (set-buffer rmail-buffer) | ||
| 823 | 1.89 (rms 19-Sep-96): ;; If we first saw the previous message in this search, | ||
| 824 | 1.89 (rms 19-Sep-96): ;; and we have gone to a different message while searching, | ||
| 825 | 1.89 (rms 19-Sep-96): ;; put back `unseen' on the former one. | ||
| 826 | 1.102 (kwzh 04-Jun-98): (if rmail-summary-put-back-unseen | ||
| 827 | 1.103 (kwzh 22-Jun-98): (rmail-set-attribute "unseen" t | ||
| 828 | 1.103 (kwzh 22-Jun-98): rmail-current-message)) | ||
| 829 | 1.89 (rms 19-Sep-96): ;; Arrange to do that later, for the new current message, | ||
| 830 | 1.89 (rms 19-Sep-96): ;; if it still has `unseen'. | ||
| 831 | 1.89 (rms 19-Sep-96): (setq rmail-summary-put-back-unseen | ||
| 832 | 1.89 (rms 19-Sep-96): (rmail-message-labels-p msg-num ", ?\\(unseen\\),"))) | ||
| 833 | 1.89 (rms 19-Sep-96): (setq rmail-summary-put-back-unseen nil)) | ||
| 834 | 1.89 (rms 19-Sep-96): | ||
| 835 | 1.89 (rms 19-Sep-96): ;; Go to the desired message. | ||
| 836 | 1.37 (kwzh 19-Apr-94): (setq rmail-current-message msg-num) | ||
| 837 | 1.89 (rms 19-Sep-96): | ||
| 838 | 1.89 (rms 19-Sep-96): ;; Update the summary to show the message has been seen. | ||
| 839 | 1.37 (kwzh 19-Apr-94): (if (= (following-char) ?-) | ||
| 840 | 1.37 (kwzh 19-Apr-94): (progn | ||
| 841 | 1.37 (kwzh 19-Apr-94): (delete-char 1) | ||
| 842 | 1.37 (kwzh 19-Apr-94): (insert " "))) | ||
| 843 | 1.89 (rms 19-Sep-96): | ||
| 844 | 1.37 (kwzh 19-Apr-94): (if window | ||
| 845 | 1.37 (kwzh 19-Apr-94): ;; Using save-window-excursion would cause the new value | ||
| 846 | 1.14 (rms 03-Jun-93): ;; of point to get lost. | ||
| 847 | 1.14 (rms 03-Jun-93): (unwind-protect | ||
| 848 | 1.14 (rms 03-Jun-93): (progn | ||
| 849 | 1.14 (rms 03-Jun-93): (select-window window) | ||
| 850 | 1.56 (rms 11-Oct-94): (rmail-show-message msg-num t)) | ||
| 851 | 1.37 (kwzh 19-Apr-94): (select-window owin)) | ||
| 852 | 1.49 (rms 26-Aug-94): (if (buffer-name rmail-buffer) | ||
| 853 | 1.49 (rms 26-Aug-94): (save-excursion | ||
| 854 | 1.49 (rms 26-Aug-94): (set-buffer rmail-buffer) | ||
| 855 | 1.63 (rms 20-Jan-95): (rmail-show-message msg-num t)))))) | ||
| 856 | 1.63 (rms 20-Jan-95): (rmail-summary-update-highlight nil))))) | ||
| 857 | 1.145 (gm 07-Jun-07): | ||
| 858 | 1.145 (gm 07-Jun-07): (defun rmail-summary-save-buffer () | ||
| 859 | 1.145 (gm 07-Jun-07): "Save the buffer associated with this RMAIL summary." | ||
| 860 | 1.145 (gm 07-Jun-07): (interactive) | ||
| 861 | 1.145 (gm 07-Jun-07): (save-window-excursion | ||
| 862 | 1.145 (gm 07-Jun-07): (save-excursion | ||
| 863 | 1.145 (gm 07-Jun-07): (switch-to-buffer rmail-buffer) | ||
| 864 | 1.145 (gm 07-Jun-07): (save-buffer)))) | ||
| 865 | 1.145 (gm 07-Jun-07): | ||
| 866 | 1.6 (rms 09-Mar-93): | ||
| 867 | 1.6 (rms 09-Mar-93): (if rmail-summary-mode-map | ||
| 868 | 1.6 (rms 09-Mar-93): nil | ||
| 869 | 1.6 (rms 09-Mar-93): (setq rmail-summary-mode-map (make-keymap)) | ||
| 870 | 1.6 (rms 09-Mar-93): (suppress-keymap rmail-summary-mode-map) | ||
| 871 | 1.98 (rms 04-Aug-97): | ||
| 872 | 1.98 (rms 04-Aug-97): (define-key rmail-summary-mode-map [mouse-2] 'rmail-summary-mouse-goto-message) | ||
| 873 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "a" 'rmail-summary-add-label) | ||
| 874 | 1.84 (rms 22-Jun-96): (define-key rmail-summary-mode-map "b" 'rmail-summary-bury) | ||
| 875 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "c" 'rmail-summary-continue) | ||
| 876 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "d" 'rmail-summary-delete-forward) | ||
| 877 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\C-d" 'rmail-summary-delete-backward) | ||
| 878 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "e" 'rmail-summary-edit-current-message) | ||
| 879 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "f" 'rmail-summary-forward) | ||
| 880 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "g" 'rmail-summary-get-new-mail) | ||
| 881 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "h" 'rmail-summary) | ||
| 882 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "i" 'rmail-summary-input) | ||
| 883 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "j" 'rmail-summary-goto-msg) | ||
| 884 | 1.110 (gerd 12-Dec-99): (define-key rmail-summary-mode-map "\C-m" 'rmail-summary-goto-msg) | ||
| 885 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "k" 'rmail-summary-kill-label) | ||
| 886 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "l" 'rmail-summary-by-labels) | ||
| 887 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\e\C-h" 'rmail-summary) | ||
| 888 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\e\C-l" 'rmail-summary-by-labels) | ||
| 889 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\e\C-r" 'rmail-summary-by-recipients) | ||
| 890 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\e\C-s" 'rmail-summary-by-regexp) | ||
| 891 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\e\C-t" 'rmail-summary-by-topic) | ||
| 892 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "m" 'rmail-summary-mail) | ||
| 893 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\M-m" 'rmail-summary-retry-failure) | ||
| 894 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "n" 'rmail-summary-next-msg) | ||
| 895 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\en" 'rmail-summary-next-all) | ||
| 896 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\e\C-n" 'rmail-summary-next-labeled-message) | ||
| 897 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "o" 'rmail-summary-output-to-rmail-file) | ||
| 898 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\C-o" 'rmail-summary-output) | ||
| 899 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "p" 'rmail-summary-previous-msg) | ||
| 900 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\ep" 'rmail-summary-previous-all) | ||
| 901 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\e\C-p" 'rmail-summary-previous-labeled-message) | ||
| 902 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "q" 'rmail-summary-quit) | ||
| 903 | 1.101 (rms 23-May-98): (define-key rmail-summary-mode-map "Q" 'rmail-summary-wipe) | ||
| 904 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "r" 'rmail-summary-reply) | ||
| 905 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "s" 'rmail-summary-expunge-and-save) | ||
| 906 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\es" 'rmail-summary-search) | ||
| 907 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "t" 'rmail-summary-toggle-header) | ||
| 908 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "u" 'rmail-summary-undelete) | ||
| 909 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\M-u" 'rmail-summary-undelete-many) | ||
| 910 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "x" 'rmail-summary-expunge) | ||
| 911 | 1.101 (rms 23-May-98): (define-key rmail-summary-mode-map "w" 'rmail-summary-output-body) | ||
| 912 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "." 'rmail-summary-beginning-of-message) | ||
| 913 | 1.137 (eliz 12-Aug-05): (define-key rmail-summary-mode-map "/" 'rmail-summary-end-of-message) | ||
| 914 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "<" 'rmail-summary-first-message) | ||
| 915 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map ">" 'rmail-summary-last-message) | ||
| 916 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map " " 'rmail-summary-scroll-msg-up) | ||
| 917 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "\177" 'rmail-summary-scroll-msg-down) | ||
| 918 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-mode-map "?" 'describe-mode) | ||
| 919 | 1.64 (rms 05-Feb-95): (define-key rmail-summary-mode-map "\C-c\C-n" 'rmail-summary-next-same-subject) | ||
| 920 | 1.64 (rms 05-Feb-95): (define-key rmail-summary-mode-map "\C-c\C-p" 'rmail-summary-previous-same-subject) | ||
| 921 | 1.18 (rms 22-Jun-93): (define-key rmail-summary-mode-map "\C-c\C-s\C-d" | ||
| 922 | 1.18 (rms 22-Jun-93): 'rmail-summary-sort-by-date) | ||
| 923 | 1.18 (rms 22-Jun-93): (define-key rmail-summary-mode-map "\C-c\C-s\C-s" | ||
| 924 | 1.18 (rms 22-Jun-93): 'rmail-summary-sort-by-subject) | ||
| 925 | 1.18 (rms 22-Jun-93): (define-key rmail-summary-mode-map "\C-c\C-s\C-a" | ||
| 926 | 1.18 (rms 22-Jun-93): 'rmail-summary-sort-by-author) | ||
| 927 | 1.18 (rms 22-Jun-93): (define-key rmail-summary-mode-map "\C-c\C-s\C-r" | ||
| 928 | 1.18 (rms 22-Jun-93): 'rmail-summary-sort-by-recipient) | ||
| 929 | 1.18 (rms 22-Jun-93): (define-key rmail-summary-mode-map "\C-c\C-s\C-c" | ||
| 930 | 1.18 (rms 22-Jun-93): 'rmail-summary-sort-by-correspondent) | ||
| 931 | 1.18 (rms 22-Jun-93): (define-key rmail-summary-mode-map "\C-c\C-s\C-l" | ||
| 932 | 1.18 (rms 22-Jun-93): 'rmail-summary-sort-by-lines) | ||
| 933 | 1.33 (kwzh 07-Apr-94): (define-key rmail-summary-mode-map "\C-c\C-s\C-k" | ||
| 934 | 1.117 (gerd 07-May-01): 'rmail-summary-sort-by-labels) | ||
| 935 | 1.145 (gm 07-Jun-07): (define-key rmail-summary-mode-map "\C-x\C-s" 'rmail-summary-save-buffer) | ||
| 936 | 1.6 (rms 09-Mar-93): ) | ||
| 937 | 1.6 (rms 09-Mar-93): | ||
| 938 | 1.17 (rms 22-Jun-93): ;;; Menu bar bindings. | ||
| 939 | 1.17 (rms 22-Jun-93): | ||
| 940 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar] (make-sparse-keymap)) | ||
| 941 | 1.17 (rms 22-Jun-93): | ||
| 942 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar classify] | ||
| 943 | 1.17 (rms 22-Jun-93): (cons "Classify" (make-sparse-keymap "Classify"))) | ||
| 944 | 1.17 (rms 22-Jun-93): | ||
| 945 | 1.49 (rms 26-Aug-94): (define-key rmail-summary-mode-map [menu-bar classify output-menu] | ||
| 946 | 1.49 (rms 26-Aug-94): '("Output (Rmail Menu)..." . rmail-summary-output-menu)) | ||
| 947 | 1.49 (rms 26-Aug-94): | ||
| 948 | 1.49 (rms 26-Aug-94): (define-key rmail-summary-mode-map [menu-bar classify input-menu] | ||
| 949 | 1.68 (kwzh 30-May-95): '("Input Rmail File (menu)..." . rmail-input-menu)) | ||
| 950 | 1.49 (rms 26-Aug-94): | ||
| 951 | 1.51 (rms 19-Sep-94): (define-key rmail-summary-mode-map [menu-bar classify input-menu] | ||
| 952 | 1.51 (rms 19-Sep-94): '(nil)) | ||
| 953 | 1.51 (rms 19-Sep-94): | ||
| 954 | 1.51 (rms 19-Sep-94): (define-key rmail-summary-mode-map [menu-bar classify output-menu] | ||
| 955 | 1.51 (rms 19-Sep-94): '(nil)) | ||
| 956 | 1.51 (rms 19-Sep-94): | ||
| 957 | 1.101 (rms 23-May-98): (define-key rmail-summary-mode-map [menu-bar classify output-body] | ||
| 958 | 1.101 (rms 23-May-98): '("Output (body)..." . rmail-summary-output-body)) | ||
| 959 | 1.101 (rms 23-May-98): | ||
| 960 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar classify output-inbox] | ||
| 961 | 1.47 (rms 02-Aug-94): '("Output (inbox)..." . rmail-summary-output)) | ||
| 962 | 1.17 (rms 22-Jun-93): | ||
| 963 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar classify output] | ||
| 964 | 1.47 (rms 02-Aug-94): '("Output (Rmail)..." . rmail-summary-output-to-rmail-file)) | ||
| 965 | 1.17 (rms 22-Jun-93): | ||
| 966 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar classify kill-label] | ||
| 967 | 1.47 (rms 02-Aug-94): '("Kill Label..." . rmail-summary-kill-label)) | ||
| 968 | 1.17 (rms 22-Jun-93): | ||
| 969 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar classify add-label] | ||
| 970 | 1.47 (rms 02-Aug-94): '("Add Label..." . rmail-summary-add-label)) | ||
| 971 | 1.17 (rms 22-Jun-93): | ||
| 972 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar summary] | ||
| 973 | 1.17 (rms 22-Jun-93): (cons "Summary" (make-sparse-keymap "Summary"))) | ||
| 974 | 1.17 (rms 22-Jun-93): | ||
| 975 | 1.85 (rms 25-Jun-96): (define-key rmail-summary-mode-map [menu-bar summary senders] | ||
| 976 | 1.85 (rms 25-Jun-96): '("By Senders..." . rmail-summary-by-senders)) | ||
| 977 | 1.85 (rms 25-Jun-96): | ||
| 978 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar summary labels] | ||
| 979 | 1.47 (rms 02-Aug-94): '("By Labels..." . rmail-summary-by-labels)) | ||
| 980 | 1.17 (rms 22-Jun-93): | ||
| 981 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar summary recipients] | ||
| 982 | 1.47 (rms 02-Aug-94): '("By Recipients..." . rmail-summary-by-recipients)) | ||
| 983 | 1.17 (rms 22-Jun-93): | ||
| 984 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar summary topic] | ||
| 985 | 1.47 (rms 02-Aug-94): '("By Topic..." . rmail-summary-by-topic)) | ||
| 986 | 1.17 (rms 22-Jun-93): | ||
| 987 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar summary regexp] | ||
| 988 | 1.47 (rms 02-Aug-94): '("By Regexp..." . rmail-summary-by-regexp)) | ||
| 989 | 1.17 (rms 22-Jun-93): | ||
| 990 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar summary all] | ||
| 991 | 1.17 (rms 22-Jun-93): '("All" . rmail-summary)) | ||
| 992 | 1.17 (rms 22-Jun-93): | ||
| 993 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar mail] | ||
| 994 | 1.17 (rms 22-Jun-93): (cons "Mail" (make-sparse-keymap "Mail"))) | ||
| 995 | 1.17 (rms 22-Jun-93): | ||
| 996 | 1.45 (rms 02-Aug-94): (define-key rmail-summary-mode-map [menu-bar mail rmail-summary-get-new-mail] | ||
| 997 | 1.44 (rms 31-Jul-94): '("Get New Mail" . rmail-summary-get-new-mail)) | ||
| 998 | 1.44 (rms 31-Jul-94): | ||
| 999 | 1.46 (rms 02-Aug-94): (define-key rmail-summary-mode-map [menu-bar mail lambda] | ||
| 1000 | 1.44 (rms 31-Jul-94): '("----")) | ||
| 1001 | 1.42 (rms 29-Jul-94): | ||
| 1002 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar mail continue] | ||
| 1003 | 1.17 (rms 22-Jun-93): '("Continue" . rmail-summary-continue)) | ||
| 1004 | 1.44 (rms 31-Jul-94): | ||
| 1005 | 1.44 (rms 31-Jul-94): (define-key rmail-summary-mode-map [menu-bar mail resend] | ||
| 1006 | 1.57 (rms 11-Oct-94): '("Re-send..." . rmail-summary-resend)) | ||
| 1007 | 1.17 (rms 22-Jun-93): | ||
| 1008 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar mail forward] | ||
| 1009 | 1.17 (rms 22-Jun-93): '("Forward" . rmail-summary-forward)) | ||
| 1010 | 1.17 (rms 22-Jun-93): | ||
| 1011 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar mail retry] | ||
| 1012 | 1.17 (rms 22-Jun-93): '("Retry" . rmail-summary-retry-failure)) | ||
| 1013 | 1.17 (rms 22-Jun-93): | ||
| 1014 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar mail reply] | ||
| 1015 | 1.17 (rms 22-Jun-93): '("Reply" . rmail-summary-reply)) | ||
| 1016 | 1.17 (rms 22-Jun-93): | ||
| 1017 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar mail mail] | ||
| 1018 | 1.17 (rms 22-Jun-93): '("Mail" . rmail-summary-mail)) | ||
| 1019 | 1.17 (rms 22-Jun-93): | ||
| 1020 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar delete] | ||
| 1021 | 1.17 (rms 22-Jun-93): (cons "Delete" (make-sparse-keymap "Delete"))) | ||
| 1022 | 1.17 (rms 22-Jun-93): | ||
| 1023 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar delete expunge/save] | ||
| 1024 | 1.17 (rms 22-Jun-93): '("Expunge/Save" . rmail-summary-expunge-and-save)) | ||
| 1025 | 1.17 (rms 22-Jun-93): | ||
| 1026 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar delete expunge] | ||
| 1027 | 1.17 (rms 22-Jun-93): '("Expunge" . rmail-summary-expunge)) | ||
| 1028 | 1.17 (rms 22-Jun-93): | ||
| 1029 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar delete undelete] | ||
| 1030 | 1.17 (rms 22-Jun-93): '("Undelete" . rmail-summary-undelete)) | ||
| 1031 | 1.17 (rms 22-Jun-93): | ||
| 1032 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar delete delete] | ||
| 1033 | 1.17 (rms 22-Jun-93): '("Delete" . rmail-summary-delete-forward)) | ||
| 1034 | 1.17 (rms 22-Jun-93): | ||
| 1035 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move] | ||
| 1036 | 1.17 (rms 22-Jun-93): (cons "Move" (make-sparse-keymap "Move"))) | ||
| 1037 | 1.17 (rms 22-Jun-93): | ||
| 1038 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move search-back] | ||
| 1039 | 1.47 (rms 02-Aug-94): '("Search Back..." . rmail-summary-search-backward)) | ||
| 1040 | 1.17 (rms 22-Jun-93): | ||
| 1041 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move search] | ||
| 1042 | 1.47 (rms 02-Aug-94): '("Search..." . rmail-summary-search)) | ||
| 1043 | 1.17 (rms 22-Jun-93): | ||
| 1044 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move previous] | ||
| 1045 | 1.17 (rms 22-Jun-93): '("Previous Nondeleted" . rmail-summary-previous-msg)) | ||
| 1046 | 1.17 (rms 22-Jun-93): | ||
| 1047 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move next] | ||
| 1048 | 1.17 (rms 22-Jun-93): '("Next Nondeleted" . rmail-summary-next-msg)) | ||
| 1049 | 1.17 (rms 22-Jun-93): | ||
| 1050 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move last] | ||
| 1051 | 1.17 (rms 22-Jun-93): '("Last" . rmail-summary-last-message)) | ||
| 1052 | 1.17 (rms 22-Jun-93): | ||
| 1053 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move first] | ||
| 1054 | 1.17 (rms 22-Jun-93): '("First" . rmail-summary-first-message)) | ||
| 1055 | 1.17 (rms 22-Jun-93): | ||
| 1056 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move previous] | ||
| 1057 | 1.17 (rms 22-Jun-93): '("Previous" . rmail-summary-previous-all)) | ||
| 1058 | 1.17 (rms 22-Jun-93): | ||
| 1059 | 1.17 (rms 22-Jun-93): (define-key rmail-summary-mode-map [menu-bar move next] | ||
| 1060 | 1.17 (rms 22-Jun-93): '("Next" . rmail-summary-next-all)) | ||
| 1061 | 1.17 (rms 22-Jun-93): | ||
| 1062 | 1.98 (rms 04-Aug-97): (defun rmail-summary-mouse-goto-message (event) | ||
| 1063 | 1.98 (rms 04-Aug-97): "Select the message whose summary line you click on." | ||
| 1064 | 1.98 (rms 04-Aug-97): (interactive "@e") | ||
| 1065 | 1.98 (rms 04-Aug-97): (goto-char (posn-point (event-end event))) | ||
| 1066 | 1.98 (rms 04-Aug-97): (rmail-summary-goto-msg)) | ||
| 1067 | 1.76 (kwzh 24-Jan-96): | ||
| 1068 | 1.98 (rms 04-Aug-97): (defun rmail-summary-goto-msg (&optional n nowarn skip-rmail) | ||
| 1069 | 1.98 (rms 04-Aug-97): "Go to message N in the summary buffer and the Rmail buffer. | ||
| 1070 | 1.98 (rms 04-Aug-97): If N is nil, use the message corresponding to point in the summary | ||
| 1071 | 1.98 (rms 04-Aug-97): and move to that message in the Rmail buffer. | ||
| 1072 | 1.76 (kwzh 24-Jan-96): | ||
| 1073 | 1.98 (rms 04-Aug-97): If NOWARN, don't say anything if N is out of range. | ||
| 1074 | 1.98 (rms 04-Aug-97): If SKIP-RMAIL, don't do anything to the Rmail buffer." | ||
| 1075 | 1.1 (jimb 30-Nov-90): (interactive "P") | ||
| 1076 | 1.1 (jimb 30-Nov-90): (if (consp n) (setq n (prefix-numeric-value n))) | ||
| 1077 | 1.1 (jimb 30-Nov-90): (if (eobp) (forward-line -1)) | ||
| 1078 | 1.1 (jimb 30-Nov-90): (beginning-of-line) | ||
| 1079 | 1.54 (rms 06-Oct-94): (let* ((obuf (current-buffer)) | ||
| 1080 | 1.54 (rms 06-Oct-94): (buf rmail-buffer) | ||
| 1081 | 1.54 (rms 06-Oct-94): (cur (point)) | ||
| 1082 | 1.54 (rms 06-Oct-94): message-not-found | ||
| 1083 | 1.132 (lektu 16-May-05): (curmsg (string-to-number | ||
| 1084 | 1.54 (rms 06-Oct-94): (buffer-substring (point) | ||
| 1085 | 1.121 (gerd 05-Oct-01): (min (point-max) (+ 6 (point)))))) | ||
| 1086 | 1.54 (rms 06-Oct-94): (total (save-excursion (set-buffer buf) rmail-total-messages))) | ||
| 1087 | 1.29 (rms 19-Mar-94): ;; If message number N was specified, find that message's line | ||
| 1088 | 1.29 (rms 19-Mar-94): ;; or set message-not-found. | ||
| 1089 | 1.29 (rms 19-Mar-94): ;; If N wasn't specified or that message can't be found. | ||
| 1090 | 1.29 (rms 19-Mar-94): ;; set N by default. | ||
| 1091 | 1.1 (jimb 30-Nov-90): (if (not n) | ||
| 1092 | 1.1 (jimb 30-Nov-90): (setq n curmsg) | ||
| 1093 | 1.1 (jimb 30-Nov-90): (if (< n 1) | ||
| 1094 | 1.1 (jimb 30-Nov-90): (progn (message "No preceding message") | ||
| 1095 | 1.1 (jimb 30-Nov-90): (setq n 1))) | ||
| 1096 | 1.131 (eliz 01-Nov-03): (if (and (> n total) | ||
| 1097 | 1.131 (eliz 01-Nov-03): (> total 0)) | ||
| 1098 | 1.1 (jimb 30-Nov-90): (progn (message "No following message") | ||
| 1099 | 1.1 (jimb 30-Nov-90): (goto-char (point-max)) | ||
| 1100 | 1.76 (kwzh 24-Jan-96): (rmail-summary-goto-msg nil nowarn skip-rmail))) | ||
| 1101 | 1.1 (jimb 30-Nov-90): (goto-char (point-min)) | ||
| 1102 | 1.121 (gerd 05-Oct-01): (if (not (re-search-forward (format "^%5d[^0-9]" n) nil t)) | ||
| 1103 | 1.1 (jimb 30-Nov-90): (progn (or nowarn (message "Message %d not found" n)) | ||
| 1104 | 1.1 (jimb 30-Nov-90): (setq n curmsg) | ||
| 1105 | 1.29 (rms 19-Mar-94): (setq message-not-found t) | ||
| 1106 | 1.1 (jimb 30-Nov-90): (goto-char cur)))) | ||
| 1107 | 1.1 (jimb 30-Nov-90): (beginning-of-line) | ||
| 1108 | 1.1 (jimb 30-Nov-90): (skip-chars-forward " ") | ||
| 1109 | 1.1 (jimb 30-Nov-90): (skip-chars-forward "0-9") | ||
| 1110 | 1.1 (jimb 30-Nov-90): (save-excursion (if (= (following-char) ?-) | ||
| 1111 | 1.1 (jimb 30-Nov-90): (let ((buffer-read-only nil)) | ||
| 1112 | 1.1 (jimb 30-Nov-90): (delete-char 1) | ||
| 1113 | 1.1 (jimb 30-Nov-90): (insert " ")))) | ||
| 1114 | 1.63 (rms 20-Jan-95): (rmail-summary-update-highlight message-not-found) | ||
| 1115 | 1.1 (jimb 30-Nov-90): (beginning-of-line) | ||
| 1116 | 1.6 (rms 09-Mar-93): (if skip-rmail | ||
| 1117 | 1.6 (rms 09-Mar-93): nil | ||
| 1118 | 1.22 (rms 23-Dec-93): (let ((selwin (selected-window))) | ||
| 1119 | 1.22 (rms 23-Dec-93): (unwind-protect | ||
| 1120 | 1.22 (rms 23-Dec-93): (progn (pop-to-buffer buf) | ||
| 1121 | 1.22 (rms 23-Dec-93): (rmail-show-message n)) | ||
| 1122 | 1.50 (rms 13-Sep-94): (select-window selwin) | ||
| 1123 | 1.50 (rms 13-Sep-94): ;; The actions above can alter the current buffer. Preserve it. | ||
| 1124 | 1.50 (rms 13-Sep-94): (set-buffer obuf)))))) | ||
| 1125 | 1.63 (rms 20-Jan-95): | ||
| 1126 | 1.63 (rms 20-Jan-95): ;; Update the highlighted line in an rmail summary buffer. | ||
| 1127 | 1.63 (rms 20-Jan-95): ;; That should be current. We highlight the line point is on. | ||
| 1128 | 1.63 (rms 20-Jan-95): ;; If NOT-FOUND is non-nil, we turn off highlighting. | ||
| 1129 | 1.63 (rms 20-Jan-95): (defun rmail-summary-update-highlight (not-found) | ||
| 1130 | 1.63 (rms 20-Jan-95): ;; Make sure we have an overlay to use. | ||
| 1131 | 1.63 (rms 20-Jan-95): (or rmail-summary-overlay | ||
| 1132 | 1.63 (rms 20-Jan-95): (progn | ||
| 1133 | 1.63 (rms 20-Jan-95): (make-local-variable 'rmail-summary-overlay) | ||
| 1134 | 1.63 (rms 20-Jan-95): (setq rmail-summary-overlay (make-overlay (point) (point))))) | ||
| 1135 | 1.63 (rms 20-Jan-95): ;; If this message is in the summary, use the overlay to highlight it. | ||
| 1136 | 1.63 (rms 20-Jan-95): ;; Otherwise, don't highlight anything. | ||
| 1137 | 1.63 (rms 20-Jan-95): (if not-found | ||
| 1138 | 1.63 (rms 20-Jan-95): (overlay-put rmail-summary-overlay 'face nil) | ||
| 1139 | 1.63 (rms 20-Jan-95): (move-overlay rmail-summary-overlay | ||
| 1140 | 1.63 (rms 20-Jan-95): (save-excursion (beginning-of-line) | ||
| 1141 | 1.63 (rms 20-Jan-95): (skip-chars-forward " ") | ||
| 1142 | 1.63 (rms 20-Jan-95): (point)) | ||
| 1143 | 1.63 (rms 20-Jan-95): (save-excursion (end-of-line) (point))) | ||
| 1144 | 1.63 (rms 20-Jan-95): (overlay-put rmail-summary-overlay 'face 'highlight))) | ||
| 1145 | 1.6 (rms 09-Mar-93): | ||
| 1146 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-scroll-msg-up (&optional dist) | ||
| 1147 | 1.61 (rms 20-Nov-94): "Scroll the Rmail window forward. | ||
| 1148 | 1.61 (rms 20-Nov-94): If the Rmail window is displaying the end of a message, | ||
| 1149 | 1.61 (rms 20-Nov-94): advance to the next message." | ||
| 1150 | 1.1 (jimb 30-Nov-90): (interactive "P") | ||
| 1151 | 1.61 (rms 20-Nov-94): (if (eq dist '-) | ||
| 1152 | 1.61 (rms 20-Nov-94): (rmail-summary-scroll-msg-down nil) | ||
| 1153 | 1.94 (handa 26-Feb-97): (let ((rmail-buffer-window (get-buffer-window rmail-view-buffer))) | ||
| 1154 | 1.61 (rms 20-Nov-94): (if rmail-buffer-window | ||
| 1155 | 1.61 (rms 20-Nov-94): (if (let ((rmail-summary-window (selected-window))) | ||
| 1156 | 1.61 (rms 20-Nov-94): (select-window rmail-buffer-window) | ||
| 1157 | 1.61 (rms 20-Nov-94): (prog1 | ||
| 1158 | 1.61 (rms 20-Nov-94): ;; Is EOB visible in the buffer? | ||
| 1159 | 1.61 (rms 20-Nov-94): (save-excursion | ||
| 1160 | 1.61 (rms 20-Nov-94): (let ((ht (window-height (selected-window)))) | ||
| 1161 | 1.61 (rms 20-Nov-94): (move-to-window-line (- ht 2)) | ||
| 1162 | 1.61 (rms 20-Nov-94): (end-of-line) | ||
| 1163 | 1.61 (rms 20-Nov-94): (eobp))) | ||
| 1164 | 1.61 (rms 20-Nov-94): (select-window rmail-summary-window))) | ||
| 1165 | 1.82 (rms 04-Apr-96): (if (not rmail-summary-scroll-between-messages) | ||
| 1166 | 1.82 (rms 04-Apr-96): (error "End of buffer") | ||
| 1167 | 1.82 (rms 04-Apr-96): (rmail-summary-next-msg (or dist 1))) | ||
| 1168 | 1.94 (handa 26-Feb-97): (let ((other-window-scroll-buffer rmail-view-buffer)) | ||
| 1169 | 1.61 (rms 20-Nov-94): (scroll-other-window dist))) | ||
| 1170 | 1.93 (rms 14-Dec-96): ;; If it isn't visible at all, show the beginning. | ||
| 1171 | 1.93 (rms 14-Dec-96): (rmail-summary-beginning-of-message))))) | ||
| 1172 | 1.1 (jimb 30-Nov-90): | ||
| 1173 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-scroll-msg-down (&optional dist) | ||
| 1174 | 1.61 (rms 20-Nov-94): "Scroll the Rmail window backward. | ||
| 1175 | 1.93 (rms 14-Dec-96): If the Rmail window is now displaying the beginning of a message, | ||
| 1176 | 1.93 (rms 14-Dec-96): move to the previous message." | ||
| 1177 | 1.1 (jimb 30-Nov-90): (interactive "P") | ||
| 1178 | 1.61 (rms 20-Nov-94): (if (eq dist '-) | ||
| 1179 | 1.61 (rms 20-Nov-94): (rmail-summary-scroll-msg-up nil) | ||
| 1180 | 1.118 (gerd 08-May-01): (let ((rmail-buffer-window (get-buffer-window rmail-view-buffer))) | ||
| 1181 | 1.61 (rms 20-Nov-94): (if rmail-buffer-window | ||
| 1182 | 1.61 (rms 20-Nov-94): (if (let ((rmail-summary-window (selected-window))) | ||
| 1183 | 1.61 (rms 20-Nov-94): (select-window rmail-buffer-window) | ||
| 1184 | 1.61 (rms 20-Nov-94): (prog1 | ||
| 1185 | 1.61 (rms 20-Nov-94): ;; Is BOB visible in the buffer? | ||
| 1186 | 1.61 (rms 20-Nov-94): (save-excursion | ||
| 1187 | 1.61 (rms 20-Nov-94): (move-to-window-line 0) | ||
| 1188 | 1.61 (rms 20-Nov-94): (beginning-of-line) | ||
| 1189 | 1.61 (rms 20-Nov-94): (bobp)) | ||
| 1190 | 1.61 (rms 20-Nov-94): (select-window rmail-summary-window))) | ||
| 1191 | 1.82 (rms 04-Apr-96): (if (not rmail-summary-scroll-between-messages) | ||
| 1192 | 1.82 (rms 04-Apr-96): (error "Beginning of buffer") | ||
| 1193 | 1.82 (rms 04-Apr-96): (rmail-summary-previous-msg (or dist 1))) | ||
| 1194 | 1.118 (gerd 08-May-01): (let ((other-window-scroll-buffer rmail-view-buffer)) | ||
| 1195 | 1.61 (rms 20-Nov-94): (scroll-other-window-down dist))) | ||
| 1196 | 1.93 (rms 14-Dec-96): ;; If it isn't visible at all, show the beginning. | ||
| 1197 | 1.93 (rms 14-Dec-96): (rmail-summary-beginning-of-message))))) | ||
| 1198 | 1.1 (jimb 30-Nov-90): | ||
| 1199 | 1.6 (rms 09-Mar-93): (defun rmail-summary-beginning-of-message () | ||
| 1200 | 1.6 (rms 09-Mar-93): "Show current message from the beginning." | ||
| 1201 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1202 | 1.137 (eliz 12-Aug-05): (rmail-summary-show-message 'BEG)) | ||
| 1203 | 1.137 (eliz 12-Aug-05): | ||
| 1204 | 1.137 (eliz 12-Aug-05): (defun rmail-summary-end-of-message () | ||
| 1205 | 1.137 (eliz 12-Aug-05): "Show bottom of current message." | ||
| 1206 | 1.137 (eliz 12-Aug-05): (interactive) | ||
| 1207 | 1.137 (eliz 12-Aug-05): (rmail-summary-show-message 'END)) | ||
| 1208 | 1.137 (eliz 12-Aug-05): | ||
| 1209 | 1.137 (eliz 12-Aug-05): (defun rmail-summary-show-message (where) | ||
| 1210 | 1.137 (eliz 12-Aug-05): "Show current mail message. | ||
| 1211 | 1.137 (eliz 12-Aug-05): Position it according to WHERE which can be BEG or END" | ||
| 1212 | 1.93 (rms 14-Dec-96): (if (and (one-window-p) (not pop-up-frames)) | ||
| 1213 | 1.93 (rms 14-Dec-96): ;; If there is just one window, put the summary on the top. | ||
| 1214 | 1.118 (gerd 08-May-01): (let ((buffer rmail-view-buffer)) | ||
| 1215 | 1.93 (rms 14-Dec-96): (split-window (selected-window) rmail-summary-window-size) | ||
| 1216 | 1.93 (rms 14-Dec-96): (select-window (frame-first-window)) | ||
| 1217 | 1.118 (gerd 08-May-01): (pop-to-buffer rmail-view-buffer) | ||
| 1218 | 1.93 (rms 14-Dec-96): ;; If pop-to-buffer did not use that window, delete that | ||
| 1219 | 1.93 (rms 14-Dec-96): ;; window. (This can happen if it uses another frame.) | ||
| 1220 | 1.93 (rms 14-Dec-96): (or (eq buffer (window-buffer (next-window (frame-first-window)))) | ||
| 1221 | 1.93 (rms 14-Dec-96): (delete-other-windows))) | ||
| 1222 | 1.118 (gerd 08-May-01): (pop-to-buffer rmail-view-buffer)) | ||
| 1223 | 1.137 (eliz 12-Aug-05): (cond | ||
| 1224 | 1.137 (eliz 12-Aug-05): ((eq where 'BEG) | ||
| 1225 | 1.137 (eliz 12-Aug-05): (goto-char (point-min)) | ||
| 1226 | 1.137 (eliz 12-Aug-05): (search-forward "\n\n")) | ||
| 1227 | 1.137 (eliz 12-Aug-05): ((eq where 'END) | ||
| 1228 | 1.137 (eliz 12-Aug-05): (goto-char (point-max)) | ||
| 1229 | 1.137 (eliz 12-Aug-05): (recenter (1- (window-height)))) | ||
| 1230 | 1.137 (eliz 12-Aug-05): ) | ||
| 1231 | 1.6 (rms 09-Mar-93): (pop-to-buffer rmail-summary-buffer)) | ||
| 1232 | 1.84 (rms 22-Jun-96): | ||
| 1233 | 1.84 (rms 22-Jun-96): (defun rmail-summary-bury () | ||
| 1234 | 1.84 (rms 22-Jun-96): "Bury the Rmail buffer and the Rmail summary buffer." | ||
| 1235 | 1.84 (rms 22-Jun-96): (interactive) | ||
| 1236 | 1.84 (rms 22-Jun-96): (let ((buffer-to-bury (current-buffer))) | ||
| 1237 | 1.84 (rms 22-Jun-96): (let (window) | ||
| 1238 | 1.84 (rms 22-Jun-96): (while (setq window (get-buffer-window rmail-buffer)) | ||
| 1239 | 1.84 (rms 22-Jun-96): (set-window-buffer window (other-buffer rmail-buffer))) | ||
| 1240 | 1.84 (rms 22-Jun-96): (bury-buffer rmail-buffer)) | ||
| 1241 | 1.84 (rms 22-Jun-96): (switch-to-buffer (other-buffer buffer-to-bury)) | ||
| 1242 | 1.84 (rms 22-Jun-96): (bury-buffer buffer-to-bury))) | ||
| 1243 | 1.6 (rms 09-Mar-93): | ||
| 1244 | 1.1 (jimb 30-Nov-90): (defun rmail-summary-quit () | ||
| 1245 | 1.6 (rms 09-Mar-93): "Quit out of Rmail and Rmail summary." | ||
| 1246 | 1.1 (jimb 30-Nov-90): (interactive) | ||
| 1247 | 1.6 (rms 09-Mar-93): (rmail-summary-wipe) | ||
| 1248 | 1.1 (jimb 30-Nov-90): (rmail-quit)) | ||
| 1249 | 1.1 (jimb 30-Nov-90): | ||
| 1250 | 1.6 (rms 09-Mar-93): (defun rmail-summary-wipe () | ||
| 1251 | 1.6 (rms 09-Mar-93): "Kill and wipe away Rmail summary, remaining within Rmail." | ||
| 1252 | 1.1 (jimb 30-Nov-90): (interactive) | ||
| 1253 | 1.6 (rms 09-Mar-93): (save-excursion (set-buffer rmail-buffer) (setq rmail-summary-buffer nil)) | ||
| 1254 | 1.118 (gerd 08-May-01): (let ((local-rmail-buffer rmail-view-buffer)) | ||
| 1255 | 1.6 (rms 09-Mar-93): (kill-buffer (current-buffer)) | ||
| 1256 | 1.6 (rms 09-Mar-93): ;; Delete window if not only one. | ||
| 1257 | 1.6 (rms 09-Mar-93): (if (not (eq (selected-window) (next-window nil 'no-minibuf))) | ||
| 1258 | 1.6 (rms 09-Mar-93): (delete-window)) | ||
| 1259 | 1.21 (rms 23-Nov-93): ;; Switch windows to the rmail buffer, or switch to it in this window. | ||
| 1260 | 1.21 (rms 23-Nov-93): (pop-to-buffer local-rmail-buffer))) | ||
| 1261 | 1.6 (rms 09-Mar-93): | ||
| 1262 | 1.6 (rms 09-Mar-93): (defun rmail-summary-expunge () | ||
| 1263 | 1.6 (rms 09-Mar-93): "Actually erase all deleted messages and recompute summary headers." | ||
| 1264 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1265 | 1.6 (rms 09-Mar-93): (save-excursion | ||
| 1266 | 1.6 (rms 09-Mar-93): (set-buffer rmail-buffer) | ||
| 1267 | 1.115 (gerd 12-Dec-00): (when (rmail-expunge-confirmed) | ||
| 1268 | 1.114 (gerd 04-Dec-00): (rmail-only-expunge))) | ||
| 1269 | 1.6 (rms 09-Mar-93): (rmail-update-summary)) | ||
| 1270 | 1.6 (rms 09-Mar-93): | ||
| 1271 | 1.6 (rms 09-Mar-93): (defun rmail-summary-expunge-and-save () | ||
| 1272 | 1.6 (rms 09-Mar-93): "Expunge and save RMAIL file." | ||
| 1273 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1274 | 1.6 (rms 09-Mar-93): (save-excursion | ||
| 1275 | 1.6 (rms 09-Mar-93): (set-buffer rmail-buffer) | ||
| 1276 | 1.115 (gerd 12-Dec-00): (when (rmail-expunge-confirmed) | ||
| 1277 | 1.114 (gerd 04-Dec-00): (rmail-only-expunge))) | ||
| 1278 | 1.15 (rms 04-Jun-93): (rmail-update-summary) | ||
| 1279 | 1.15 (rms 04-Jun-93): (save-excursion | ||
| 1280 | 1.14 (rms 03-Jun-93): (set-buffer rmail-buffer) | ||
| 1281 | 1.28 (kwzh 09-Feb-94): (save-buffer)) | ||
| 1282 | 1.28 (kwzh 09-Feb-94): (set-buffer-modified-p nil)) | ||
| 1283 | 1.6 (rms 09-Mar-93): | ||
| 1284 | 1.99 (rms 27-Aug-97): (defun rmail-summary-get-new-mail (&optional file-name) | ||
| 1285 | 1.99 (rms 27-Aug-97): "Get new mail and recompute summary headers. | ||
| 1286 | 1.99 (rms 27-Aug-97): | ||
| 1287 | 1.99 (rms 27-Aug-97): Optionally you can specify the file to get new mail from. In this case, | ||
| 1288 | 1.99 (rms 27-Aug-97): the file of new mail is not changed or deleted. Noninteractively, you can | ||
| 1289 | 1.99 (rms 27-Aug-97): pass the inbox file name as an argument. Interactively, a prefix | ||
| 1290 | 1.99 (rms 27-Aug-97): argument says to read a file name and use that file as the inbox." | ||
| 1291 | 1.99 (rms 27-Aug-97): (interactive | ||
| 1292 | 1.99 (rms 27-Aug-97): (list (if current-prefix-arg | ||
| 1293 | 1.99 (rms 27-Aug-97): (read-file-name "Get new mail from file: ")))) | ||
| 1294 | 1.15 (rms 04-Jun-93): (let (msg) | ||
| 1295 | 1.15 (rms 04-Jun-93): (save-excursion | ||
| 1296 | 1.15 (rms 04-Jun-93): (set-buffer rmail-buffer) | ||
| 1297 | 1.99 (rms 27-Aug-97): (rmail-get-new-mail file-name) | ||
| 1298 | 1.15 (rms 04-Jun-93): ;; Get the proper new message number. | ||
| 1299 | 1.15 (rms 04-Jun-93): (setq msg rmail-current-message)) | ||
| 1300 | 1.15 (rms 04-Jun-93): ;; Make sure that message is displayed. | ||
| 1301 | 1.73 (rms 30-Nov-95): (or (zerop msg) | ||
| 1302 | 1.73 (rms 30-Nov-95): (rmail-summary-goto-msg msg)))) | ||
| 1303 | 1.6 (rms 09-Mar-93): | ||
| 1304 | 1.6 (rms 09-Mar-93): (defun rmail-summary-input (filename) | ||
| 1305 | 1.6 (rms 09-Mar-93): "Run Rmail on file FILENAME." | ||
| 1306 | 1.6 (rms 09-Mar-93): (interactive "FRun rmail on RMAIL file: ") | ||
| 1307 | 1.15 (rms 04-Jun-93): ;; We switch windows here, then display the other Rmail file there. | ||
| 1308 | 1.15 (rms 04-Jun-93): (pop-to-buffer rmail-buffer) | ||
| 1309 | 1.15 (rms 04-Jun-93): (rmail filename)) | ||
| 1310 | 1.6 (rms 09-Mar-93): | ||
| 1311 | 1.6 (rms 09-Mar-93): (defun rmail-summary-first-message () | ||
| 1312 | 1.6 (rms 09-Mar-93): "Show first message in Rmail file from summary buffer." | ||
| 1313 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1314 | 1.134 (rms 03-Jul-05): (with-no-warnings | ||
| 1315 | 1.134 (rms 03-Jul-05): (beginning-of-buffer))) | ||
| 1316 | 1.6 (rms 09-Mar-93): | ||
| 1317 | 1.6 (rms 09-Mar-93): (defun rmail-summary-last-message () | ||
| 1318 | 1.6 (rms 09-Mar-93): "Show last message in Rmail file from summary buffer." | ||
| 1319 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1320 | 1.134 (rms 03-Jul-05): (with-no-warnings | ||
| 1321 | 1.134 (rms 03-Jul-05): (end-of-buffer)) | ||
| 1322 | 1.6 (rms 09-Mar-93): (forward-line -1)) | ||
| 1323 | 1.6 (rms 09-Mar-93): | ||
| 1324 | 1.148 (dann 27-Nov-07): (declare-function rmail-abort-edit "rmailedit" ()) | ||
| 1325 | 1.148 (dann 27-Nov-07): (declare-function rmail-cease-edit "rmailedit"()) | ||
| 1326 | 1.148 (dann 27-Nov-07): (declare-function rmail-set-label "rmailkwd" (l state &optional n)) | ||
| 1327 | 1.148 (dann 27-Nov-07): (declare-function rmail-output-read-file-name "rmailout" ()) | ||
| 1328 | 1.148 (dann 27-Nov-07): (declare-function rmail-output-read-rmail-file-name "rmailout" ()) | ||
| 1329 | 1.148 (dann 27-Nov-07): (declare-function mail-send-and-exit "sendmail" (&optional arg)) | ||
| 1330 | 1.148 (dann 27-Nov-07): | ||
| 1331 | 1.6 (rms 09-Mar-93): (defvar rmail-summary-edit-map nil) | ||
| 1332 | 1.6 (rms 09-Mar-93): (if rmail-summary-edit-map | ||
| 1333 | 1.6 (rms 09-Mar-93): nil | ||
| 1334 | 1.6 (rms 09-Mar-93): (setq rmail-summary-edit-map | ||
| 1335 | 1.19 (rms 12-Nov-93): (nconc (make-sparse-keymap) text-mode-map)) | ||
| 1336 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-edit-map "\C-c\C-c" 'rmail-cease-edit) | ||
| 1337 | 1.6 (rms 09-Mar-93): (define-key rmail-summary-edit-map "\C-c\C-]" 'rmail-abort-edit)) | ||
| 1338 | 1.6 (rms 09-Mar-93): | ||
| 1339 | 1.6 (rms 09-Mar-93): (defun rmail-summary-edit-current-message () | ||
| 1340 | 1.6 (rms 09-Mar-93): "Edit the contents of this message." | ||
| 1341 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1342 | 1.6 (rms 09-Mar-93): (pop-to-buffer rmail-buffer) | ||
| 1343 | 1.6 (rms 09-Mar-93): (rmail-edit-current-message) | ||
| 1344 | 1.6 (rms 09-Mar-93): (use-local-map rmail-summary-edit-map)) | ||
| 1345 | 1.6 (rms 09-Mar-93): | ||
| 1346 | 1.6 (rms 09-Mar-93): (defun rmail-summary-cease-edit () | ||
| 1347 | 1.6 (rms 09-Mar-93): "Finish editing message, then go back to Rmail summary buffer." | ||
| 1348 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1349 | 1.6 (rms 09-Mar-93): (rmail-cease-edit) | ||
| 1350 | 1.6 (rms 09-Mar-93): (pop-to-buffer rmail-summary-buffer)) | ||
| 1351 | 1.6 (rms 09-Mar-93): | ||
| 1352 | 1.6 (rms 09-Mar-93): (defun rmail-summary-abort-edit () | ||
| 1353 | 1.6 (rms 09-Mar-93): "Abort edit of current message; restore original contents. | ||
| 1354 | 1.6 (rms 09-Mar-93): Go back to summary buffer." | ||
| 1355 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1356 | 1.6 (rms 09-Mar-93): (rmail-abort-edit) | ||
| 1357 | 1.6 (rms 09-Mar-93): (pop-to-buffer rmail-summary-buffer)) | ||
| 1358 | 1.6 (rms 09-Mar-93): | ||
| 1359 | 1.17 (rms 22-Jun-93): (defun rmail-summary-search-backward (regexp &optional n) | ||
| 1360 | 1.17 (rms 22-Jun-93): "Show message containing next match for REGEXP. | ||
| 1361 | 1.17 (rms 22-Jun-93): Prefix argument gives repeat count; negative argument means search | ||
| 1362 | 1.17 (rms 22-Jun-93): backwards (through earlier messages). | ||
| 1363 | 1.17 (rms 22-Jun-93): Interactively, empty argument means use same regexp used last time." | ||
| 1364 | 1.17 (rms 22-Jun-93): (interactive | ||
| 1365 | 1.17 (rms 22-Jun-93): (let* ((reversep (>= (prefix-numeric-value current-prefix-arg) 0)) | ||
| 1366 | 1.17 (rms 22-Jun-93): (prompt | ||
| 1367 | 1.139 (rfrancoi 24-Sep-05): (concat (if reversep "Reverse " "") "Rmail search (regexp")) | ||
| 1368 | 1.17 (rms 22-Jun-93): regexp) | ||
| 1369 | 1.139 (rfrancoi 24-Sep-05): (setq prompt | ||
| 1370 | 1.139 (rfrancoi 24-Sep-05): (concat prompt | ||
| 1371 | 1.139 (rfrancoi 24-Sep-05): (if rmail-search-last-regexp | ||
| 1372 | 1.139 (rfrancoi 24-Sep-05): (concat ", default " | ||
| 1373 | 1.139 (rfrancoi 24-Sep-05): rmail-search-last-regexp "): ") | ||
| 1374 | 1.139 (rfrancoi 24-Sep-05): "): "))) | ||
| 1375 | 1.17 (rms 22-Jun-93): (setq regexp (read-string prompt)) | ||
| 1376 | 1.17 (rms 22-Jun-93): (cond ((not (equal regexp "")) | ||
| 1377 | 1.17 (rms 22-Jun-93): (setq rmail-search-last-regexp regexp)) | ||
| 1378 | 1.17 (rms 22-Jun-93): ((not rmail-search-last-regexp) | ||
| 1379 | 1.17 (rms 22-Jun-93): (error "No previous Rmail search string"))) | ||
| 1380 | 1.17 (rms 22-Jun-93): (list rmail-search-last-regexp | ||
| 1381 | 1.17 (rms 22-Jun-93): (prefix-numeric-value current-prefix-arg)))) | ||
| 1382 | 1.17 (rms 22-Jun-93): ;; Don't use save-excursion because that prevents point from moving | ||
| 1383 | 1.17 (rms 22-Jun-93): ;; properly in the summary buffer. | ||
| 1384 | 1.17 (rms 22-Jun-93): (let ((buffer (current-buffer))) | ||
| 1385 | 1.17 (rms 22-Jun-93): (unwind-protect | ||
| 1386 | 1.17 (rms 22-Jun-93): (progn | ||
| 1387 | 1.17 (rms 22-Jun-93): (set-buffer rmail-buffer) | ||
| 1388 | 1.17 (rms 22-Jun-93): (rmail-search regexp (- n))) | ||
| 1389 | 1.17 (rms 22-Jun-93): (set-buffer buffer)))) | ||
| 1390 | 1.17 (rms 22-Jun-93): | ||
| 1391 | 1.6 (rms 09-Mar-93): (defun rmail-summary-search (regexp &optional n) | ||
| 1392 | 1.6 (rms 09-Mar-93): "Show message containing next match for REGEXP. | ||
| 1393 | 1.6 (rms 09-Mar-93): Prefix argument gives repeat count; negative argument means search | ||
| 1394 | 1.6 (rms 09-Mar-93): backwards (through earlier messages). | ||
| 1395 | 1.6 (rms 09-Mar-93): Interactively, empty argument means use same regexp used last time." | ||
| 1396 | 1.6 (rms 09-Mar-93): (interactive | ||
| 1397 | 1.6 (rms 09-Mar-93): (let* ((reversep (< (prefix-numeric-value current-prefix-arg) 0)) | ||
| 1398 | 1.6 (rms 09-Mar-93): (prompt | ||
| 1399 | 1.139 (rfrancoi 24-Sep-05): (concat (if reversep "Reverse " "") "Rmail search (regexp")) | ||
| 1400 | 1.6 (rms 09-Mar-93): regexp) | ||
| 1401 | 1.139 (rfrancoi 24-Sep-05): (setq prompt | ||
| 1402 | 1.139 (rfrancoi 24-Sep-05): (concat prompt | ||
| 1403 | 1.139 (rfrancoi 24-Sep-05): (if rmail-search-last-regexp | ||
| 1404 | 1.139 (rfrancoi 24-Sep-05): (concat ", default " | ||
| 1405 | 1.139 (rfrancoi 24-Sep-05): rmail-search-last-regexp "): ") | ||
| 1406 | 1.139 (rfrancoi 24-Sep-05): "): "))) | ||
| 1407 | 1.6 (rms 09-Mar-93): (setq regexp (read-string prompt)) | ||
| 1408 | 1.6 (rms 09-Mar-93): (cond ((not (equal regexp "")) | ||
| 1409 | 1.6 (rms 09-Mar-93): (setq rmail-search-last-regexp regexp)) | ||
| 1410 | 1.6 (rms 09-Mar-93): ((not rmail-search-last-regexp) | ||
| 1411 | 1.6 (rms 09-Mar-93): (error "No previous Rmail search string"))) | ||
| 1412 | 1.6 (rms 09-Mar-93): (list rmail-search-last-regexp | ||
| 1413 | 1.6 (rms 09-Mar-93): (prefix-numeric-value current-prefix-arg)))) | ||
| 1414 | 1.17 (rms 22-Jun-93): ;; Don't use save-excursion because that prevents point from moving | ||
| 1415 | 1.17 (rms 22-Jun-93): ;; properly in the summary buffer. | ||
| 1416 | 1.17 (rms 22-Jun-93): (let ((buffer (current-buffer))) | ||
| 1417 | 1.17 (rms 22-Jun-93): (unwind-protect | ||
| 1418 | 1.17 (rms 22-Jun-93): (progn | ||
| 1419 | 1.17 (rms 22-Jun-93): (set-buffer rmail-buffer) | ||
| 1420 | 1.17 (rms 22-Jun-93): (rmail-search regexp n)) | ||
| 1421 | 1.17 (rms 22-Jun-93): (set-buffer buffer)))) | ||
| 1422 | 1.6 (rms 09-Mar-93): | ||
| 1423 | 1.6 (rms 09-Mar-93): (defun rmail-summary-toggle-header () | ||
| 1424 | 1.6 (rms 09-Mar-93): "Show original message header if pruned header currently shown, or vice versa." | ||
| 1425 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1426 | 1.118 (gerd 08-May-01): (save-window-excursion | ||
| 1427 | 1.6 (rms 09-Mar-93): (set-buffer rmail-buffer) | ||
| 1428 | 1.66 (rms 31-Mar-95): (rmail-toggle-header)) | ||
| 1429 | 1.66 (rms 31-Mar-95): ;; Inside save-excursion, some changes to point in the RMAIL buffer are lost. | ||
| 1430 | 1.66 (rms 31-Mar-95): ;; Set point to point-min in the RMAIL buffer, if it is visible. | ||
| 1431 | 1.118 (gerd 08-May-01): (let ((window (get-buffer-window rmail-view-buffer))) | ||
| 1432 | 1.66 (rms 31-Mar-95): (if window | ||
| 1433 | 1.66 (rms 31-Mar-95): ;; Using save-window-excursion would lose the new value of point. | ||
| 1434 | 1.66 (rms 31-Mar-95): (let ((owin (selected-window))) | ||
| 1435 | 1.66 (rms 31-Mar-95): (unwind-protect | ||
| 1436 | 1.66 (rms 31-Mar-95): (progn | ||
| 1437 | 1.66 (rms 31-Mar-95): (select-window window) | ||
| 1438 | 1.66 (rms 31-Mar-95): (goto-char (point-min))) | ||
| 1439 | 1.66 (rms 31-Mar-95): (select-window owin)))))) | ||
| 1440 | 1.66 (rms 31-Mar-95): | ||
| 1441 | 1.6 (rms 09-Mar-93): | ||
| 1442 | 1.6 (rms 09-Mar-93): (defun rmail-summary-add-label (label) | ||
| 1443 | 1.6 (rms 09-Mar-93): "Add LABEL to labels associated with current Rmail message. | ||
| 1444 | 1.6 (rms 09-Mar-93): Completion is performed over known labels when reading." | ||
| 1445 | 1.14 (rms 03-Jun-93): (interactive (list (save-excursion | ||
| 1446 | 1.14 (rms 03-Jun-93): (set-buffer rmail-buffer) | ||
| 1447 | 1.14 (rms 03-Jun-93): (rmail-read-label "Add label")))) | ||
| 1448 | 1.6 (rms 09-Mar-93): (save-excursion | ||
| 1449 | 1.6 (rms 09-Mar-93): (set-buffer rmail-buffer) | ||
| 1450 | 1.6 (rms 09-Mar-93): (rmail-add-label label))) | ||
| 1451 | 1.6 (rms 09-Mar-93): | ||
| 1452 | 1.6 (rms 09-Mar-93): (defun rmail-summary-kill-label (label) | ||
| 1453 | 1.6 (rms 09-Mar-93): "Remove LABEL from labels associated with current Rmail message. | ||
| 1454 | 1.6 (rms 09-Mar-93): Completion is performed over known labels when reading." | ||
| 1455 | 1.14 (rms 03-Jun-93): (interactive (list (save-excursion | ||
| 1456 | 1.14 (rms 03-Jun-93): (set-buffer rmail-buffer) | ||
| 1457 | 1.14 (rms 03-Jun-93): (rmail-read-label "Kill label")))) | ||
| 1458 | 1.6 (rms 09-Mar-93): (save-excursion | ||
| 1459 | 1.6 (rms 09-Mar-93): (set-buffer rmail-buffer) | ||
| 1460 | 1.6 (rms 09-Mar-93): (rmail-set-label label nil))) | ||
| 1461 | 1.6 (rms 09-Mar-93): | ||
| 1462 | 1.6 (rms 09-Mar-93): ;;;; *** Rmail Summary Mailing Commands *** | ||
| 1463 | 1.6 (rms 09-Mar-93): | ||
| 1464 | 1.116 (gerd 12-Mar-01): (defun rmail-summary-override-mail-send-and-exit () | ||
| 1465 | 1.127 (jpw 06-Feb-03): "Replace bindings to `mail-send-and-exit' with `rmail-summary-send-and-exit'." | ||
| 1466 | 1.116 (gerd 12-Mar-01): (use-local-map (copy-keymap (current-local-map))) | ||
| 1467 | 1.116 (gerd 12-Mar-01): (dolist (key (where-is-internal 'mail-send-and-exit)) | ||
| 1468 | 1.116 (gerd 12-Mar-01): (define-key (current-local-map) key 'rmail-summary-send-and-exit))) | ||
| 1469 | 1.116 (gerd 12-Mar-01): | ||
| 1470 | 1.6 (rms 09-Mar-93): (defun rmail-summary-mail () | ||
| 1471 | 1.6 (rms 09-Mar-93): "Send mail in another window. | ||
| 1472 | 1.6 (rms 09-Mar-93): While composing the message, use \\[mail-yank-original] to yank the | ||
| 1473 | 1.6 (rms 09-Mar-93): original message into it." | ||
| 1474 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1475 | 1.65 (rms 19-Feb-95): (let ((window (get-buffer-window rmail-buffer))) | ||
| 1476 | 1.65 (rms 19-Feb-95): (if window | ||
| 1477 | 1.65 (rms 19-Feb-95): (select-window window) | ||
| 1478 | 1.65 (rms 19-Feb-95): (set-buffer rmail-buffer))) | ||
| 1479 | 1.65 (rms 19-Feb-95): (rmail-start-mail nil nil nil nil nil (current-buffer)) | ||
| 1480 | 1.116 (gerd 12-Mar-01): (rmail-summary-override-mail-send-and-exit)) | ||
| 1481 | 1.6 (rms 09-Mar-93): | ||
| 1482 | 1.6 (rms 09-Mar-93): (defun rmail-summary-continue () | ||
| 1483 | 1.6 (rms 09-Mar-93): "Continue composing outgoing message previously being composed." | ||
| 1484 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1485 | 1.65 (rms 19-Feb-95): (let ((window (get-buffer-window rmail-buffer))) | ||
| 1486 | 1.65 (rms 19-Feb-95): (if window | ||
| 1487 | 1.65 (rms 19-Feb-95): (select-window window) | ||
| 1488 | 1.65 (rms 19-Feb-95): (set-buffer rmail-buffer))) | ||
| 1489 | 1.27 (kwzh 31-Jan-94): (rmail-start-mail t)) | ||
| 1490 | 1.6 (rms 09-Mar-93): | ||
| 1491 | 1.6 (rms 09-Mar-93): (defun rmail-summary-reply (just-sender) | ||
| 1492 | 1.6 (rms 09-Mar-93): "Reply to the current message. | ||
| 1493 | 1.6 (rms 09-Mar-93): Normally include CC: to all other recipients of original message; | ||
| 1494 | 1.27 (kwzh 31-Jan-94): prefix argument means ignore them. While composing the reply, | ||
| 1495 | 1.27 (kwzh 31-Jan-94): use \\[mail-yank-original] to yank the original message into it." | ||
| 1496 | 1.6 (rms 09-Mar-93): (interactive "P") | ||
| 1497 | 1.118 (gerd 08-May-01): (let ((window (get-buffer-window rmail-view-buffer))) | ||
| 1498 | 1.65 (rms 19-Feb-95): (if window | ||
| 1499 | 1.65 (rms 19-Feb-95): (select-window window) | ||
| 1500 | 1.118 (gerd 08-May-01): (set-buffer rmail-view-buffer))) | ||
| 1501 | 1.27 (kwzh 31-Jan-94): (rmail-reply just-sender) | ||
| 1502 | 1.116 (gerd 12-Mar-01): (rmail-summary-override-mail-send-and-exit)) | ||
| 1503 | 1.6 (rms 09-Mar-93): | ||
| 1504 | 1.6 (rms 09-Mar-93): (defun rmail-summary-retry-failure () | ||
| 1505 | 1.6 (rms 09-Mar-93): "Edit a mail message which is based on the contents of the current message. | ||
| 1506 | 1.6 (rms 09-Mar-93): For a message rejected by the mail system, extract the interesting headers and | ||
| 1507 | 1.6 (rms 09-Mar-93): the body of the original message; otherwise copy the current message." | ||
| 1508 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1509 | 1.65 (rms 19-Feb-95): (let ((window (get-buffer-window rmail-buffer))) | ||
| 1510 | 1.65 (rms 19-Feb-95): (if window | ||
| 1511 | 1.65 (rms 19-Feb-95): (select-window window) | ||
| 1512 | 1.65 (rms 19-Feb-95): (set-buffer rmail-buffer))) | ||
| 1513 | 1.27 (kwzh 31-Jan-94): (rmail-retry-failure) | ||
| 1514 | 1.116 (gerd 12-Mar-01): (rmail-summary-override-mail-send-and-exit)) | ||
| 1515 | 1.6 (rms 09-Mar-93): | ||
| 1516 | 1.6 (rms 09-Mar-93): (defun rmail-summary-send-and-exit () | ||
| 1517 | 1.6 (rms 09-Mar-93): "Send mail reply and return to summary buffer." | ||
| 1518 | 1.6 (rms 09-Mar-93): (interactive) | ||
| 1519 | 1.6 (rms 09-Mar-93): (mail-send-and-exit t)) | ||
| 1520 | 1.6 (rms 09-Mar-93): | ||
| 1521 | 1.20 (rms 14-Nov-93): (defun rmail-summary-forward (resend) | ||
| 1522 | 1.20 (rms 14-Nov-93): "Forward the current message to another user. | ||
| 1523 | 1.20 (rms 14-Nov-93): With prefix argument, \"resend\" the message instead of forwarding it; | ||
| 1524 | 1.20 (rms 14-Nov-93): see the documentation of `rmail-resend'." | ||
| 1525 | 1.20 (rms 14-Nov-93): (interactive "P") | ||
| 1526 | 1.6 (rms 09-Mar-93): (save-excursion | ||
| 1527 | 1.65 (rms 19-Feb-95): (let ((window (get-buffer-window rmail-buffer))) | ||
| 1528 | 1.65 (rms 19-Feb-95): (if window | ||
| 1529 | 1.65 (rms 19-Feb-95): (select-window window) | ||
| 1530 | 1.65 (rms 19-Feb-95): (set-buffer rmail-buffer))) | ||
| 1531 | 1.20 (rms 14-Nov-93): (rmail-forward resend) | ||
| 1532 | 1.116 (gerd 12-Mar-01): (rmail-summary-override-mail-send-and-exit))) | ||
| 1533 | 1.57 (rms 11-Oct-94): | ||
| 1534 | 1.57 (rms 11-Oct-94): (defun rmail-summary-resend () | ||
| 1535 | 1.127 (jpw 06-Feb-03): "Resend current message using `rmail-resend'." | ||
| 1536 | 1.57 (rms 11-Oct-94): (interactive) | ||
| 1537 | 1.57 (rms 11-Oct-94): (save-excursion | ||
| 1538 | 1.65 (rms 19-Feb-95): (let ((window (get-buffer-window rmail-buffer))) | ||
| 1539 | 1.65 (rms 19-Feb-95): (if window | ||
| 1540 | 1.65 (rms 19-Feb-95): (select-window window) | ||
| 1541 | 1.65 (rms 19-Feb-95): (set-buffer rmail-buffer))) | ||
| 1542 | 1.57 (rms 11-Oct-94): (call-interactively 'rmail-resend))) | ||
| 1543 | 1.6 (rms 09-Mar-93): | ||
| 1544 | 1.6 (rms 09-Mar-93): ;; Summary output commands. | ||
| 1545 | 1.6 (rms 09-Mar-93): | ||
| 1546 | 1.108 (kwzh 13-Jun-99): (defun rmail-summary-output-to-rmail-file (&optional file-name n) | ||
| 1547 | 1.6 (rms 09-Mar-93): "Append the current message to an Rmail file named FILE-NAME. | ||
| 1548 | 1.6 (rms 09-Mar-93): If the file does not exist, ask if it should be created. | ||
| 1549 | 1.6 (rms 09-Mar-93): If file is being visited, the message is appended to the Emacs | ||
| 1550 | 1.104 (kwzh 10-Sep-98): buffer visiting that file. | ||
| 1551 | 1.104 (kwzh 10-Sep-98): | ||
| 1552 | 1.104 (kwzh 10-Sep-98): A prefix argument N says to output N consecutive messages | ||
| 1553 | 1.104 (kwzh 10-Sep-98): starting with the current one. Deleted messages are skipped and don't count." | ||
| 1554 | 1.107 (rms 04-Jan-99): (interactive | ||
| 1555 | 1.107 (rms 04-Jan-99): (progn (require 'rmailout) | ||
| 1556 | 1.107 (rms 04-Jan-99): (list (rmail-output-read-rmail-file-name) | ||
| 1557 | 1.107 (rms 04-Jan-99): (prefix-numeric-value current-prefix-arg)))) | ||
| 1558 | 1.109 (kwzh 15-Jun-99): (let ((i 0) prev-msg) | ||
| 1559 | 1.126 (lektu 04-Feb-03): (while | ||
| 1560 | 1.109 (kwzh 15-Jun-99): (and (< i n) | ||
| 1561 | 1.109 (kwzh 15-Jun-99): (progn (rmail-summary-goto-msg) | ||
| 1562 | 1.109 (kwzh 15-Jun-99): (not (eq prev-msg | ||
| 1563 | 1.109 (kwzh 15-Jun-99): (setq prev-msg | ||
| 1564 | 1.126 (lektu 04-Feb-03): (with-current-buffer rmail-buffer | ||
| 1565 | 1.109 (kwzh 15-Jun-99): rmail-current-message)))))) | ||
| 1566 | 1.107 (rms 04-Jan-99): (setq i (1+ i)) | ||
| 1567 | 1.107 (rms 04-Jan-99): (with-current-buffer rmail-buffer | ||
| 1568 | 1.107 (rms 04-Jan-99): (let ((rmail-delete-after-output nil)) | ||
| 1569 | 1.107 (rms 04-Jan-99): (rmail-output-to-rmail-file file-name 1))) | ||
| 1570 | 1.107 (rms 04-Jan-99): (if rmail-delete-after-output | ||
| 1571 | 1.107 (rms 04-Jan-99): (rmail-summary-delete-forward nil) | ||
| 1572 | 1.107 (rms 04-Jan-99): (if (< i n) | ||
| 1573 | 1.107 (rms 04-Jan-99): (rmail-summary-next-msg 1)))))) | ||
| 1574 | 1.107 (rms 04-Jan-99): | ||
| 1575 | 1.107 (rms 04-Jan-99): (defun rmail-summary-output (&optional file-name n) | ||
| 1576 | 1.107 (rms 04-Jan-99): "Append this message to Unix mail file named FILE-NAME. | ||
| 1577 | 1.107 (rms 04-Jan-99): | ||
| 1578 | 1.107 (rms 04-Jan-99): A prefix argument N says to output N consecutive messages | ||
| 1579 | 1.107 (rms 04-Jan-99): starting with the current one. Deleted messages are skipped and don't count." | ||
| 1580 | 1.107 (rms 04-Jan-99): (interactive | ||
| 1581 | 1.107 (rms 04-Jan-99): (progn (require 'rmailout) | ||
| 1582 | 1.107 (rms 04-Jan-99): (list (rmail-output-read-file-name) | ||
| 1583 | 1.107 (rms 04-Jan-99): (prefix-numeric-value current-prefix-arg)))) | ||
| 1584 | 1.124 (rms 23-Feb-02): (let ((i 0) prev-msg) | ||
| 1585 | 1.124 (rms 23-Feb-02): (while | ||
| 1586 | 1.124 (rms 23-Feb-02): (and (< i n) | ||
| 1587 | 1.124 (rms 23-Feb-02): (progn (rmail-summary-goto-msg) | ||
| 1588 | 1.124 (rms 23-Feb-02): (not (eq prev-msg | ||
| 1589 | 1.124 (rms 23-Feb-02): (setq prev-msg | ||
| 1590 | 1.124 (rms 23-Feb-02): (with-current-buffer rmail-buffer | ||
| 1591 | 1.124 (rms 23-Feb-02): rmail-current-message)))))) | ||
| 1592 | 1.107 (rms 04-Jan-99): (setq i (1+ i)) | ||
| 1593 | 1.107 (rms 04-Jan-99): (with-current-buffer rmail-buffer | ||
| 1594 | 1.107 (rms 04-Jan-99): (let ((rmail-delete-after-output nil)) | ||
| 1595 | 1.107 (rms 04-Jan-99): (rmail-output file-name 1))) | ||
| 1596 | 1.107 (rms 04-Jan-99): (if rmail-delete-after-output | ||
| 1597 | 1.107 (rms 04-Jan-99): (rmail-summary-delete-forward nil) | ||
| 1598 | 1.107 (rms 04-Jan-99): (if (< i n) | ||
| 1599 | 1.107 (rms 04-Jan-99): (rmail-summary-next-msg 1)))))) | ||
| 1600 | 1.49 (rms 26-Aug-94): | ||
| 1601 | 1.49 (rms 26-Aug-94): (defun rmail-summary-output-menu () | ||
| 1602 | 1.49 (rms 26-Aug-94): "Output current message to another Rmail file, chosen with a menu. | ||
| 1603 | 1.49 (rms 26-Aug-94): Also set the default for subsequent \\[rmail-output-to-rmail-file] commands. | ||
| 1604 | 1.49 (rms 26-Aug-94): The variables `rmail-secondary-file-directory' and | ||
| 1605 | 1.49 (rms 26-Aug-94): `rmail-secondary-file-regexp' control which files are offered in the menu." | ||
| 1606 | 1.49 (rms 26-Aug-94): (interactive) | ||
| 1607 | 1.49 (rms 26-Aug-94): (save-excursion | ||
| 1608 | 1.49 (rms 26-Aug-94): (set-buffer rmail-buffer) | ||
| 1609 | 1.49 (rms 26-Aug-94): (let ((rmail-delete-after-output nil)) | ||
| 1610 | 1.49 (rms 26-Aug-94): (call-interactively 'rmail-output-menu))) | ||
| 1611 | 1.24 (rms 08-Jan-94): (if rmail-delete-after-output | ||
| 1612 | 1.25 (rms 08-Jan-94): (rmail-summary-delete-forward nil))) | ||
| 1613 | 1.51 (rms 19-Sep-94): | ||
| 1614 | 1.51 (rms 19-Sep-94): (defun rmail-summary-construct-io-menu () | ||
| 1615 | 1.51 (rms 19-Sep-94): (let ((files (rmail-find-all-files rmail-secondary-file-directory))) | ||
| 1616 | 1.71 (rms 06-Sep-95): (if files | ||
| 1617 | 1.51 (rms 19-Sep-94): (progn | ||
| 1618 | 1.51 (rms 19-Sep-94): (define-key rmail-summary-mode-map [menu-bar classify input-menu] | ||
| 1619 | 1.126 (lektu 04-Feb-03): (cons "Input Rmail File" | ||
| 1620 | 1.126 (lektu 04-Feb-03): (rmail-list-to-menu "Input Rmail File" | ||
| 1621 | 1.71 (rms 06-Sep-95): files | ||
| 1622 | 1.51 (rms 19-Sep-94): 'rmail-summary-input))) | ||
| 1623 | 1.51 (rms 19-Sep-94): (define-key rmail-summary-mode-map [menu-bar classify output-menu] | ||
| 1624 | 1.126 (lektu 04-Feb-03): (cons "Output Rmail File" | ||
| 1625 | 1.126 (lektu 04-Feb-03): (rmail-list-to-menu "Output Rmail File" | ||
| 1626 | 1.71 (rms 06-Sep-95): files | ||
| 1627 | 1.71 (rms 06-Sep-95): 'rmail-summary-output-to-rmail-file)))) | ||
| 1628 | 1.71 (rms 06-Sep-95): (define-key rmail-summary-mode-map [menu-bar classify input-menu] | ||
| 1629 | 1.71 (rms 06-Sep-95): '("Input Rmail File" . rmail-disable-menu)) | ||
| 1630 | 1.71 (rms 06-Sep-95): (define-key rmail-summary-mode-map [menu-bar classify output-menu] | ||
| 1631 | 1.71 (rms 06-Sep-95): '("Output Rmail File" . rmail-disable-menu))))) | ||
| 1632 | 1.51 (rms 19-Sep-94): | ||
| 1633 | 1.101 (rms 23-May-98): (defun rmail-summary-output-body (&optional file-name) | ||
| 1634 | 1.101 (rms 23-May-98): "Write this message body to the file FILE-NAME. | ||
| 1635 | 1.101 (rms 23-May-98): FILE-NAME defaults, interactively, from the Subject field of the message." | ||
| 1636 | 1.101 (rms 23-May-98): (interactive) | ||
| 1637 | 1.101 (rms 23-May-98): (save-excursion | ||
| 1638 | 1.101 (rms 23-May-98): (set-buffer rmail-buffer) | ||
| 1639 | 1.101 (rms 23-May-98): (let ((rmail-delete-after-output nil)) | ||
| 1640 | 1.101 (rms 23-May-98): (if file-name | ||
| 1641 | 1.101 (rms 23-May-98): (rmail-output-body-to-file file-name) | ||
| 1642 | 1.101 (rms 23-May-98): (call-interactively 'rmail-output-body-to-file)))) | ||
| 1643 | 1.101 (rms 23-May-98): (if rmail-delete-after-output | ||
| 1644 | 1.101 (rms 23-May-98): (rmail-summary-delete-forward nil))) | ||
| 1645 | 1.18 (rms 22-Jun-93): | ||
| 1646 | 1.18 (rms 22-Jun-93): ;; Sorting messages in Rmail Summary buffer. | ||
| 1647 | 1.18 (rms 22-Jun-93): | ||
| 1648 | 1.18 (rms 22-Jun-93): (defun rmail-summary-sort-by-date (reverse) | ||
| 1649 | 1.18 (rms 22-Jun-93): "Sort messages of current Rmail summary by date. | ||
| 1650 | 1.18 (rms 22-Jun-93): If prefix argument REVERSE is non-nil, sort them in reverse order." | ||
| 1651 | 1.18 (rms 22-Jun-93): (interactive "P") | ||
| 1652 | 1.18 (rms 22-Jun-93): (rmail-sort-from-summary (function rmail-sort-by-date) reverse)) | ||
| 1653 | 1.18 (rms 22-Jun-93): | ||
| 1654 | 1.18 (rms 22-Jun-93): (defun rmail-summary-sort-by-subject (reverse) | ||
| 1655 | 1.18 (rms 22-Jun-93): "Sort messages of current Rmail summary by subject. | ||
| 1656 | 1.18 (rms 22-Jun-93): If prefix argument REVERSE is non-nil, sort them in reverse order." | ||
| 1657 | 1.18 (rms 22-Jun-93): (interactive "P") | ||
| 1658 | 1.18 (rms 22-Jun-93): (rmail-sort-from-summary (function rmail-sort-by-subject) reverse)) | ||
| 1659 | 1.18 (rms 22-Jun-93): | ||
| 1660 | 1.18 (rms 22-Jun-93): (defun rmail-summary-sort-by-author (reverse) | ||
| 1661 | 1.18 (rms 22-Jun-93): "Sort messages of current Rmail summary by author. | ||
| 1662 | 1.18 (rms 22-Jun-93): If prefix argument REVERSE is non-nil, sort them in reverse order." | ||
| 1663 | 1.18 (rms 22-Jun-93): (interactive "P") | ||
| 1664 | 1.18 (rms 22-Jun-93): (rmail-sort-from-summary (function rmail-sort-by-author) reverse)) | ||
| 1665 | 1.18 (rms 22-Jun-93): | ||
| 1666 | 1.18 (rms 22-Jun-93): (defun rmail-summary-sort-by-recipient (reverse) | ||
| 1667 | 1.18 (rms 22-Jun-93): "Sort messages of current Rmail summary by recipient. | ||
| 1668 | 1.18 (rms 22-Jun-93): If prefix argument REVERSE is non-nil, sort them in reverse order." | ||
| 1669 | 1.18 (rms 22-Jun-93): (interactive "P") | ||
| 1670 | 1.18 (rms 22-Jun-93): (rmail-sort-from-summary (function rmail-sort-by-recipient) reverse)) | ||
| 1671 | 1.18 (rms 22-Jun-93): | ||
| 1672 | 1.18 (rms 22-Jun-93): (defun rmail-summary-sort-by-correspondent (reverse) | ||
| 1673 | 1.18 (rms 22-Jun-93): "Sort messages of current Rmail summary by other correspondent. | ||
| 1674 | 1.18 (rms 22-Jun-93): If prefix argument REVERSE is non-nil, sort them in reverse order." | ||
| 1675 | 1.18 (rms 22-Jun-93): (interactive "P") | ||
| 1676 | 1.18 (rms 22-Jun-93): (rmail-sort-from-summary (function rmail-sort-by-correspondent) reverse)) | ||
| 1677 | 1.18 (rms 22-Jun-93): | ||
| 1678 | 1.18 (rms 22-Jun-93): (defun rmail-summary-sort-by-lines (reverse) | ||
| 1679 | 1.18 (rms 22-Jun-93): "Sort messages of current Rmail summary by lines of the message. | ||
| 1680 | 1.18 (rms 22-Jun-93): If prefix argument REVERSE is non-nil, sort them in reverse order." | ||
| 1681 | 1.18 (rms 22-Jun-93): (interactive "P") | ||
| 1682 | 1.18 (rms 22-Jun-93): (rmail-sort-from-summary (function rmail-sort-by-lines) reverse)) | ||
| 1683 | 1.18 (rms 22-Jun-93): | ||
| 1684 | 1.117 (gerd 07-May-01): (defun rmail-summary-sort-by-labels (reverse labels) | ||
| 1685 | 1.117 (gerd 07-May-01): "Sort messages of current Rmail summary by labels. | ||
| 1686 | 1.33 (kwzh 07-Apr-94): If prefix argument REVERSE is non-nil, sort them in reverse order. | ||
| 1687 | 1.33 (kwzh 07-Apr-94): KEYWORDS is a comma-separated list of labels." | ||
| 1688 | 1.33 (kwzh 07-Apr-94): (interactive "P\nsSort by labels: ") | ||
| 1689 | 1.33 (kwzh 07-Apr-94): (rmail-sort-from-summary | ||
| 1690 | 1.33 (kwzh 07-Apr-94): (function (lambda (reverse) | ||
| 1691 | 1.117 (gerd 07-May-01): (rmail-sort-by-labels reverse labels))) | ||
| 1692 | 1.33 (kwzh 07-Apr-94): reverse)) | ||
| 1693 | 1.33 (kwzh 07-Apr-94): | ||
| 1694 | 1.18 (rms 22-Jun-93): (defun rmail-sort-from-summary (sortfun reverse) | ||
| 1695 | 1.18 (rms 22-Jun-93): "Sort Rmail messages from Summary buffer and update it after sorting." | ||
| 1696 | 1.18 (rms 22-Jun-93): (require 'rmailsort) | ||
| 1697 | 1.30 (kwzh 30-Mar-94): (let ((selwin (selected-window))) | ||
| 1698 | 1.30 (kwzh 30-Mar-94): (unwind-protect | ||
| 1699 | 1.30 (kwzh 30-Mar-94): (progn (pop-to-buffer rmail-buffer) | ||
| 1700 | 1.30 (kwzh 30-Mar-94): (funcall sortfun reverse)) | ||
| 1701 | 1.30 (kwzh 30-Mar-94): (select-window selwin)))) | ||
| 1702 | 1.2 (eric 30-May-92): | ||
| 1703 | 1.113 (fx 25-May-00): (provide 'rmailsum) | ||
| 1704 | 1.113 (fx 25-May-00): | ||
| 1705 | 1.150 (monnier 10-Apr-08): ;; arch-tag: 556079ee-75c1-47f5-9884-2e0a0bc6c5a1 | ||
| 1706 | 1.2 (eric 30-May-92): ;;; rmailsum.el ends here | ||
diff --git a/lisp/mail/subdirs.el b/lisp/mail/subdirs.el deleted file mode 100644 index 79a738c93d1..00000000000 --- a/lisp/mail/subdirs.el +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | ;; -*- no-byte-compile: t -*- | ||
| 2 | ;; In load-path, after this directory should come | ||
| 3 | ;; certain of its subdirectories. Here we specify them. | ||
| 4 | (normal-top-level-add-to-load-path '("mbox-trunk-annotations" "mbox-changes" )) | ||
| 5 | ;; Local Variables: | ||
| 6 | ;; version-control: never | ||
| 7 | ;; no-byte-compile: t | ||
| 8 | ;; End: | ||