Mercurial > emacs
comparison lisp/mail/mbox-trunk-annotations/rmailmsc.el.annotation @ 97531:513ae63d6175
Temporary convenience files supporting the Rmail/mbox merge to the
trunk (as Pmail). These files should be removed when Pmail is
subsumed into Rmail.
author | Paul Reilly <pmr@pajato.com> |
---|---|
date | Mon, 18 Aug 2008 05:21:37 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
97530:920b055d2ec5 | 97531:513ae63d6175 |
---|---|
1 1.2 (eric 30-May-92): ;;; rmailmsc.el --- miscellaneous support functions for the RMAIL mail reader | |
2 1.2 (eric 30-May-92): | |
3 1.18 (gm 09-Dec-06): ;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005, | |
4 1.22 (miles 08-Jan-08): ;; 2006, 2007, 2008 Free Software Foundation, Inc. | |
5 1.5 (eric 22-Jul-92): | |
6 1.3 (eric 16-Jul-92): ;; Maintainer: FSF | |
7 1.4 (eric 17-Jul-92): ;; Keywords: mail | |
8 1.1 (jimb 31-Oct-89): | |
9 1.1 (jimb 31-Oct-89): ;; This file is part of GNU Emacs. | |
10 1.1 (jimb 31-Oct-89): | |
11 1.24 (gm 06-May-08): ;; GNU Emacs is free software: you can redistribute it and/or modify | |
12 1.1 (jimb 31-Oct-89): ;; it under the terms of the GNU General Public License as published by | |
13 1.24 (gm 06-May-08): ;; the Free Software Foundation, either version 3 of the License, or | |
14 1.24 (gm 06-May-08): ;; (at your option) any later version. | |
15 1.1 (jimb 31-Oct-89): | |
16 1.1 (jimb 31-Oct-89): ;; GNU Emacs is distributed in the hope that it will be useful, | |
17 1.1 (jimb 31-Oct-89): ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 1.1 (jimb 31-Oct-89): ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 1.1 (jimb 31-Oct-89): ;; GNU General Public License for more details. | |
20 1.1 (jimb 31-Oct-89): | |
21 1.1 (jimb 31-Oct-89): ;; You should have received a copy of the GNU General Public License | |
22 1.24 (gm 06-May-08): ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |
23 1.1 (jimb 31-Oct-89): | |
24 1.12 (pj 15-Jul-01): ;;; Commentary: | |
25 1.12 (pj 15-Jul-01): | |
26 1.6 (eric 17-Mar-93): ;;; Code: | |
27 1.1 (jimb 31-Oct-89): | |
28 1.16 (lektu 29-Aug-05): (defvar rmail-current-message) | |
29 1.16 (lektu 29-Aug-05): (defvar rmail-inbox-list) | |
30 1.16 (lektu 29-Aug-05): | |
31 1.21 (dann 25-Nov-07): (declare-function rmail-parse-file-inboxes "rmail" ()) | |
32 1.21 (dann 25-Nov-07): (declare-function rmail-show-message "rmail" (&optional n no-summary)) | |
33 1.21 (dann 25-Nov-07): | |
34 1.10 (rms 27-Sep-96): ;;;###autoload | |
35 1.1 (jimb 31-Oct-89): (defun set-rmail-inbox-list (file-name) | |
36 1.1 (jimb 31-Oct-89): "Set the inbox list of the current RMAIL file to FILE-NAME. | |
37 1.8 (rms 06-Sep-94): You can specify one file name, or several names separated by commas. | |
38 1.8 (rms 06-Sep-94): If FILE-NAME is empty, remove any existing inbox list." | |
39 1.1 (jimb 31-Oct-89): (interactive "sSet mailbox list to (comma-separated list of filenames): ") | |
40 1.11 (rms 08-Aug-98): | |
41 1.11 (rms 08-Aug-98): (unless (eq major-mode 'rmail-mode) | |
42 1.11 (rms 08-Aug-98): (error "set-rmail-inbox-list works only for an Rmail file")) | |
43 1.11 (rms 08-Aug-98): | |
44 1.1 (jimb 31-Oct-89): (save-excursion | |
45 1.1 (jimb 31-Oct-89): (let ((names (rmail-parse-file-inboxes)) | |
46 1.1 (jimb 31-Oct-89): (standard-output nil)) | |
47 1.1 (jimb 31-Oct-89): (if (or (not names) | |
48 1.1 (jimb 31-Oct-89): (y-or-n-p (concat "Replace " | |
49 1.1 (jimb 31-Oct-89): (mapconcat 'identity names ", ") | |
50 1.1 (jimb 31-Oct-89): "? "))) | |
51 1.1 (jimb 31-Oct-89): (let ((buffer-read-only nil)) | |
52 1.1 (jimb 31-Oct-89): (widen) | |
53 1.1 (jimb 31-Oct-89): (goto-char (point-min)) | |
54 1.1 (jimb 31-Oct-89): (search-forward "\n\^_") | |
55 1.1 (jimb 31-Oct-89): (re-search-backward "^Mail" nil t) | |
56 1.1 (jimb 31-Oct-89): (forward-line 0) | |
57 1.1 (jimb 31-Oct-89): (if (looking-at "Mail:") | |
58 1.1 (jimb 31-Oct-89): (delete-region (point) | |
59 1.1 (jimb 31-Oct-89): (progn (forward-line 1) | |
60 1.1 (jimb 31-Oct-89): (point)))) | |
61 1.1 (jimb 31-Oct-89): (if (not (string= file-name "")) | |
62 1.7 (rms 18-Jun-94): (insert-before-markers "Mail: " file-name "\n")))))) | |
63 1.1 (jimb 31-Oct-89): (setq rmail-inbox-list (rmail-parse-file-inboxes)) | |
64 1.1 (jimb 31-Oct-89): (rmail-show-message rmail-current-message)) | |
65 1.2 (eric 30-May-92): | |
66 1.23 (monnier 10-Apr-08): ;; arch-tag: 74ed1d50-2c25-4cbd-b5ae-d29ed8aba6e4 | |
67 1.2 (eric 30-May-92): ;;; rmailmsc.el ends here |