Mercurial > emacs
annotate lisp/mail/rmailmsc.el @ 66797:4b89f1c6c558
(add-log-current-defun): Handle class::method notation of c++.
Fix incorrect comment.
author | Masatake YAMATO <jet@gyve.org> |
---|---|
date | Thu, 10 Nov 2005 12:36:52 +0000 |
parents | 0275d55d477d |
children | 067115a6e738 a3716f7538f2 |
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 |
64754
fafd692d1e40
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
3 ;; Copyright (C) 1985, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
845 | 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 | |
14169 | 21 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
64085 | 22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
23 ;; Boston, MA 02110-1301, USA. | |
35 | 24 |
38412
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
22955
diff
changeset
|
25 ;;; Commentary: |
253f761ad37b
Some fixes to follow coding conventions in files maintained by FSF.
Pavel Janík <Pavel@Janik.cz>
parents:
22955
diff
changeset
|
26 |
2233
fb0ed5a1d0f3
Add standard library headers.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
845
diff
changeset
|
27 ;;; Code: |
35 | 28 |
65207
0275d55d477d
(rmail-current-message, rmail-inbox-list): Add defvars.
Juanma Barranquero <lekktu@gmail.com>
parents:
64754
diff
changeset
|
29 (defvar rmail-current-message) |
0275d55d477d
(rmail-current-message, rmail-inbox-list): Add defvars.
Juanma Barranquero <lekktu@gmail.com>
parents:
64754
diff
changeset
|
30 (defvar rmail-inbox-list) |
0275d55d477d
(rmail-current-message, rmail-inbox-list): Add defvars.
Juanma Barranquero <lekktu@gmail.com>
parents:
64754
diff
changeset
|
31 |
16346
09fccbb1dcf1
(set-rmail-inbox-list): Add autoload cookie.
Richard M. Stallman <rms@gnu.org>
parents:
14169
diff
changeset
|
32 ;;;###autoload |
35 | 33 (defun set-rmail-inbox-list (file-name) |
34 "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
|
35 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
|
36 If FILE-NAME is empty, remove any existing inbox list." |
35 | 37 (interactive "sSet mailbox list to (comma-separated list of filenames): ") |
22955
e3aa855e560c
(set-rmail-inbox-list): Error if not in Rmail mode.
Richard M. Stallman <rms@gnu.org>
parents:
16346
diff
changeset
|
38 |
e3aa855e560c
(set-rmail-inbox-list): Error if not in Rmail mode.
Richard M. Stallman <rms@gnu.org>
parents:
16346
diff
changeset
|
39 (unless (eq major-mode 'rmail-mode) |
e3aa855e560c
(set-rmail-inbox-list): Error if not in Rmail mode.
Richard M. Stallman <rms@gnu.org>
parents:
16346
diff
changeset
|
40 (error "set-rmail-inbox-list works only for an Rmail file")) |
e3aa855e560c
(set-rmail-inbox-list): Error if not in Rmail mode.
Richard M. Stallman <rms@gnu.org>
parents:
16346
diff
changeset
|
41 |
35 | 42 (save-excursion |
43 (let ((names (rmail-parse-file-inboxes)) | |
44 (standard-output nil)) | |
45 (if (or (not names) | |
46 (y-or-n-p (concat "Replace " | |
47 (mapconcat 'identity names ", ") | |
48 "? "))) | |
49 (let ((buffer-read-only nil)) | |
50 (widen) | |
51 (goto-char (point-min)) | |
52 (search-forward "\n\^_") | |
53 (re-search-backward "^Mail" nil t) | |
54 (forward-line 0) | |
55 (if (looking-at "Mail:") | |
56 (delete-region (point) | |
57 (progn (forward-line 1) | |
58 (point)))) | |
59 (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
|
60 (insert-before-markers "Mail: " file-name "\n")))))) |
35 | 61 (setq rmail-inbox-list (rmail-parse-file-inboxes)) |
62 (rmail-show-message rmail-current-message)) | |
658
7cbd4fcd8b0f
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
63 |
52401 | 64 ;;; arch-tag: 74ed1d50-2c25-4cbd-b5ae-d29ed8aba6e4 |
658
7cbd4fcd8b0f
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
35
diff
changeset
|
65 ;;; rmailmsc.el ends here |