Mercurial > emacs
annotate lisp/mail/rmailmsc.el @ 9468:3a54cf77d5e1
(c-mode-map): Capitalize Mode in C Mode menu bar item.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 12 Oct 1994 07:23:06 +0000 |
parents | b4cfdc266626 |
children | 83f275dcd93a |
rev | line source |
---|---|
658
7cbd4fcd8b0f
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
1 ;;; rmailmsc.el --- miscellaneous support functions for the RMAIL mail reader |
7cbd4fcd8b0f
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
2 |
845 | 3 ;; Copyright (C) 1985 Free Software Foundation, Inc. |
4 | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
658
diff
changeset
|
5 ;; Maintainer: FSF |
814
38b2499cb3e9
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
807
diff
changeset
|
6 ;; Keywords: mail |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
658
diff
changeset
|
7 |
35 | 8 ;; This file is part of GNU Emacs. |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
658
diff
changeset
|
12 ;; the Free Software Foundation; either version 2, or (at your option) |
35 | 13 ;; any later version. |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to | |
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
23 | |
2233
fb0ed5a1d0f3
Add standard library headers.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
845
diff
changeset
|
24 ;;; Code: |
35 | 25 |
26 (defun set-rmail-inbox-list (file-name) | |
27 "Set the inbox list of the current RMAIL file to FILE-NAME. | |
8715
b4cfdc266626
(set-rmail-inbox-list): Doc fix.
Richard M. Stallman <rms@gnu.org>
parents:
7954
diff
changeset
|
28 You can specify one file name, or several names separated by commas. |
b4cfdc266626
(set-rmail-inbox-list): Doc fix.
Richard M. Stallman <rms@gnu.org>
parents:
7954
diff
changeset
|
29 If FILE-NAME is empty, remove any existing inbox list." |
35 | 30 (interactive "sSet mailbox list to (comma-separated list of filenames): ") |
31 (save-excursion | |
32 (let ((names (rmail-parse-file-inboxes)) | |
33 (standard-output nil)) | |
34 (if (or (not names) | |
35 (y-or-n-p (concat "Replace " | |
36 (mapconcat 'identity names ", ") | |
37 "? "))) | |
38 (let ((buffer-read-only nil)) | |
39 (widen) | |
40 (goto-char (point-min)) | |
41 (search-forward "\n\^_") | |
42 (re-search-backward "^Mail" nil t) | |
43 (forward-line 0) | |
44 (if (looking-at "Mail:") | |
45 (delete-region (point) | |
46 (progn (forward-line 1) | |
47 (point)))) | |
48 (if (not (string= file-name "")) | |
7954
621c28be27a0
(set-rmail-inbox-list): Use insert-before-markers.
Richard M. Stallman <rms@gnu.org>
parents:
2233
diff
changeset
|
49 (insert-before-markers "Mail: " file-name "\n")))))) |
35 | 50 (setq rmail-inbox-list (rmail-parse-file-inboxes)) |
51 (rmail-show-message rmail-current-message)) | |
658
7cbd4fcd8b0f
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
52 |
7cbd4fcd8b0f
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
53 ;;; rmailmsc.el ends here |