annotate lisp/mail/mbox-trunk-annotations/rmailkwd.el.annotation @ 98050:edd21e1628da

*** empty log message ***
author Glenn Morris <rgm@gnu.org>
date Sat, 06 Sep 2008 18:44:46 +0000
parents 513ae63d6175
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
97531
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
1 1.14 (pj 15-Jul-01): ;;; rmailkwd.el --- part of the "RMAIL" mail reader for Emacs
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
2 1.3 (eric 30-May-92):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
3 1.17 (ttn 06-Aug-05): ;; Copyright (C) 1985, 1988, 1994, 2001, 2002, 2003, 2004,
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
4 1.23 (miles 08-Jan-08): ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
5 1.6 (eric 22-Jul-92):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
6 1.4 (eric 16-Jul-92): ;; Maintainer: FSF
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
7 1.5 (eric 17-Jul-92): ;; Keywords: mail
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
8 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
9 1.1 (jla 31-Oct-89): ;; This file is part of GNU Emacs.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
10 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
11 1.25 (gm 06-May-08): ;; GNU Emacs is free software: you can redistribute it and/or modify
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
12 1.1 (jla 31-Oct-89): ;; it under the terms of the GNU General Public License as published by
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
13 1.25 (gm 06-May-08): ;; the Free Software Foundation, either version 3 of the License, or
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
14 1.25 (gm 06-May-08): ;; (at your option) any later version.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
15 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
16 1.1 (jla 31-Oct-89): ;; GNU Emacs is distributed in the hope that it will be useful,
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
17 1.1 (jla 31-Oct-89): ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
18 1.1 (jla 31-Oct-89): ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
19 1.1 (jla 31-Oct-89): ;; GNU General Public License for more details.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
20 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
21 1.1 (jla 31-Oct-89): ;; You should have received a copy of the GNU General Public License
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
22 1.25 (gm 06-May-08): ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
23 1.14 (pj 15-Jul-01):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
24 1.14 (pj 15-Jul-01): ;;; Commentary:
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
25 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
26 1.4 (eric 16-Jul-92): ;;; Code:
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
27 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
28 1.18 (lektu 29-Aug-05): (defvar rmail-buffer)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
29 1.18 (lektu 29-Aug-05): (defvar rmail-current-message)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
30 1.18 (lektu 29-Aug-05): (defvar rmail-last-label)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
31 1.18 (lektu 29-Aug-05): (defvar rmail-last-multi-labels)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
32 1.18 (lektu 29-Aug-05): (defvar rmail-summary-vector)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
33 1.18 (lektu 29-Aug-05): (defvar rmail-total-messages)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
34 1.18 (lektu 29-Aug-05):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
35 1.1 (jla 31-Oct-89): ;; Global to all RMAIL buffers. It exists primarily for the sake of
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
36 1.1 (jla 31-Oct-89): ;; completion. It is better to use strings with the label functions
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
37 1.1 (jla 31-Oct-89): ;; and let them worry about making the label.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
38 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
39 1.1 (jla 31-Oct-89): (defvar rmail-label-obarray (make-vector 47 0))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
40 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
41 1.1 (jla 31-Oct-89): ;; Named list of symbols representing valid message attributes in RMAIL.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
42 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
43 1.1 (jla 31-Oct-89): (defconst rmail-attributes
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
44 1.1 (jla 31-Oct-89): (cons 'rmail-keywords
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
45 1.9 (kwzh 21-Apr-95): (mapcar (function (lambda (s) (intern s rmail-label-obarray)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
46 1.9 (kwzh 21-Apr-95): '("deleted" "answered" "filed" "forwarded" "unseen" "edited"
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
47 1.9 (kwzh 21-Apr-95): "resent"))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
48 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
49 1.1 (jla 31-Oct-89): (defconst rmail-deleted-label (intern "deleted" rmail-label-obarray))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
50 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
51 1.1 (jla 31-Oct-89): ;; Named list of symbols representing valid message keywords in RMAIL.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
52 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
53 1.11 (rms 22-Sep-96): (defvar rmail-keywords)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
54 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
55 1.12 (rms 27-Sep-96): ;;;###autoload
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
56 1.1 (jla 31-Oct-89): (defun rmail-add-label (string)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
57 1.1 (jla 31-Oct-89): "Add LABEL to labels associated with current RMAIL message.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
58 1.1 (jla 31-Oct-89): Completion is performed over known labels when reading."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
59 1.1 (jla 31-Oct-89): (interactive (list (rmail-read-label "Add label")))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
60 1.1 (jla 31-Oct-89): (rmail-set-label string t))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
61 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
62 1.12 (rms 27-Sep-96): ;;;###autoload
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
63 1.1 (jla 31-Oct-89): (defun rmail-kill-label (string)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
64 1.1 (jla 31-Oct-89): "Remove LABEL from labels associated with current RMAIL message.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
65 1.1 (jla 31-Oct-89): Completion is performed over known labels when reading."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
66 1.1 (jla 31-Oct-89): (interactive (list (rmail-read-label "Remove label")))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
67 1.1 (jla 31-Oct-89): (rmail-set-label string nil))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
68 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
69 1.12 (rms 27-Sep-96): ;;;###autoload
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
70 1.1 (jla 31-Oct-89): (defun rmail-read-label (prompt)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
71 1.13 (gerd 08-May-01): (with-current-buffer rmail-buffer
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
72 1.13 (gerd 08-May-01): (if (not rmail-keywords) (rmail-parse-file-keywords))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
73 1.13 (gerd 08-May-01): (let ((result
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
74 1.13 (gerd 08-May-01): (completing-read (concat prompt
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
75 1.13 (gerd 08-May-01): (if rmail-last-label
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
76 1.13 (gerd 08-May-01): (concat " (default "
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
77 1.13 (gerd 08-May-01): (symbol-name rmail-last-label)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
78 1.13 (gerd 08-May-01): "): ")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
79 1.13 (gerd 08-May-01): ": "))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
80 1.13 (gerd 08-May-01): rmail-label-obarray
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
81 1.13 (gerd 08-May-01): nil
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
82 1.13 (gerd 08-May-01): nil)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
83 1.13 (gerd 08-May-01): (if (string= result "")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
84 1.13 (gerd 08-May-01): rmail-last-label
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
85 1.13 (gerd 08-May-01): (setq rmail-last-label (rmail-make-label result t))))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
86 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
87 1.22 (dann 27-Nov-07): (declare-function rmail-maybe-set-message-counters "rmail" ())
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
88 1.22 (dann 27-Nov-07): (declare-function rmail-display-labels "rmail" ())
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
89 1.22 (dann 27-Nov-07): (declare-function rmail-msgbeg "rmail" (n))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
90 1.22 (dann 27-Nov-07): (declare-function rmail-set-message-deleted-p "rmail" (n state))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
91 1.22 (dann 27-Nov-07): (declare-function rmail-message-labels-p "rmail" (msg labels))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
92 1.22 (dann 27-Nov-07): (declare-function rmail-show-message "rmail" (&optional n no-summary))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
93 1.22 (dann 27-Nov-07): (declare-function mail-comma-list-regexp "mail-utils" (labels))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
94 1.22 (dann 27-Nov-07): (declare-function mail-parse-comma-list "mail-utils.el" ())
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
95 1.22 (dann 27-Nov-07):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
96 1.1 (jla 31-Oct-89): (defun rmail-set-label (l state &optional n)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
97 1.13 (gerd 08-May-01): (with-current-buffer rmail-buffer
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
98 1.13 (gerd 08-May-01): (rmail-maybe-set-message-counters)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
99 1.13 (gerd 08-May-01): (if (not n) (setq n rmail-current-message))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
100 1.13 (gerd 08-May-01): (aset rmail-summary-vector (1- n) nil)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
101 1.13 (gerd 08-May-01): (let* ((attribute (rmail-attribute-p l))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
102 1.13 (gerd 08-May-01): (keyword (and (not attribute)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
103 1.13 (gerd 08-May-01): (or (rmail-keyword-p l)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
104 1.13 (gerd 08-May-01): (rmail-install-keyword l))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
105 1.13 (gerd 08-May-01): (label (or attribute keyword)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
106 1.13 (gerd 08-May-01): (if label
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
107 1.13 (gerd 08-May-01): (let ((omax (- (buffer-size) (point-max)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
108 1.13 (gerd 08-May-01): (omin (- (buffer-size) (point-min)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
109 1.13 (gerd 08-May-01): (buffer-read-only nil)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
110 1.13 (gerd 08-May-01): (case-fold-search t))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
111 1.13 (gerd 08-May-01): (unwind-protect
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
112 1.13 (gerd 08-May-01): (save-excursion
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
113 1.13 (gerd 08-May-01): (widen)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
114 1.13 (gerd 08-May-01): (goto-char (rmail-msgbeg n))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
115 1.13 (gerd 08-May-01): (forward-line 1)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
116 1.13 (gerd 08-May-01): (if (not (looking-at "[01],"))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
117 1.13 (gerd 08-May-01): nil
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
118 1.13 (gerd 08-May-01): (let ((start (1+ (point)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
119 1.13 (gerd 08-May-01): (bound))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
120 1.13 (gerd 08-May-01): (narrow-to-region (point) (progn (end-of-line) (point)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
121 1.13 (gerd 08-May-01): (setq bound (point-max))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
122 1.13 (gerd 08-May-01): (search-backward ",," nil t)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
123 1.13 (gerd 08-May-01): (if attribute
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
124 1.13 (gerd 08-May-01): (setq bound (1+ (point)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
125 1.13 (gerd 08-May-01): (setq start (1+ (point))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
126 1.13 (gerd 08-May-01): (goto-char start)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
127 1.13 (gerd 08-May-01): ; (while (re-search-forward "[ \t]*,[ \t]*" nil t)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
128 1.13 (gerd 08-May-01): ; (replace-match ","))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
129 1.13 (gerd 08-May-01): ; (goto-char start)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
130 1.13 (gerd 08-May-01): (if (re-search-forward
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
131 1.1 (jla 31-Oct-89): (concat ", " (rmail-quote-label-name label) ",")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
132 1.1 (jla 31-Oct-89): bound
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
133 1.1 (jla 31-Oct-89): 'move)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
134 1.13 (gerd 08-May-01): (if (not state) (replace-match ","))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
135 1.13 (gerd 08-May-01): (if state (insert " " (symbol-name label) ",")))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
136 1.13 (gerd 08-May-01): (if (eq label rmail-deleted-label)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
137 1.13 (gerd 08-May-01): (rmail-set-message-deleted-p n state)))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
138 1.13 (gerd 08-May-01): (narrow-to-region (- (buffer-size) omin) (- (buffer-size) omax))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
139 1.13 (gerd 08-May-01): (if (= n rmail-current-message) (rmail-display-labels))))))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
140 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
141 1.1 (jla 31-Oct-89): ;; Commented functions aren't used by RMAIL but might be nice for user
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
142 1.1 (jla 31-Oct-89): ;; packages that do stuff with RMAIL. Note that rmail-message-labels-p
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
143 1.2 (jimb 23-Feb-91): ;; is in rmail.el now.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
144 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
145 1.1 (jla 31-Oct-89): ;(defun rmail-message-label-p (label &optional n)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
146 1.1 (jla 31-Oct-89): ; "Returns symbol if LABEL (attribute or keyword) on NTH or current message."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
147 1.7 (kwzh 01-Apr-94): ; (rmail-message-labels-p (or n rmail-current-message) (regexp-quote label)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
148 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
149 1.1 (jla 31-Oct-89): ;(defun rmail-parse-message-labels (&optional n)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
150 1.1 (jla 31-Oct-89): ; "Returns labels associated with NTH or current RMAIL message.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
151 1.7 (kwzh 01-Apr-94): ;The result is a list of two lists of strings. The first is the
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
152 1.7 (kwzh 01-Apr-94): ;message attributes and the second is the message keywords."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
153 1.7 (kwzh 01-Apr-94): ; (let (atts keys)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
154 1.7 (kwzh 01-Apr-94): ; (save-restriction
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
155 1.7 (kwzh 01-Apr-94): ; (widen)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
156 1.7 (kwzh 01-Apr-94): ; (goto-char (rmail-msgbeg (or n rmail-current-message)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
157 1.7 (kwzh 01-Apr-94): ; (forward-line 1)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
158 1.7 (kwzh 01-Apr-94): ; (or (looking-at "[01],") (error "Malformed label line"))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
159 1.7 (kwzh 01-Apr-94): ; (forward-char 2)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
160 1.7 (kwzh 01-Apr-94): ; (while (looking-at "[ \t]*\\([^ \t\n,]+\\),")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
161 1.7 (kwzh 01-Apr-94): ; (setq atts (cons (buffer-substring (match-beginning 1) (match-end 1))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
162 1.7 (kwzh 01-Apr-94): ; atts))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
163 1.7 (kwzh 01-Apr-94): ; (goto-char (match-end 0)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
164 1.7 (kwzh 01-Apr-94): ; (or (looking-at ",") (error "Malformed label line"))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
165 1.7 (kwzh 01-Apr-94): ; (forward-char 1)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
166 1.7 (kwzh 01-Apr-94): ; (while (looking-at "[ \t]*\\([^ \t\n,]+\\),")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
167 1.7 (kwzh 01-Apr-94): ; (setq keys (cons (buffer-substring (match-beginning 1) (match-end 1))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
168 1.7 (kwzh 01-Apr-94): ; keys))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
169 1.7 (kwzh 01-Apr-94): ; (goto-char (match-end 0)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
170 1.7 (kwzh 01-Apr-94): ; (or (looking-at "[ \t]*$") (error "Malformed label line"))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
171 1.7 (kwzh 01-Apr-94): ; (list (nreverse atts) (nreverse keys)))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
172 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
173 1.1 (jla 31-Oct-89): (defun rmail-attribute-p (s)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
174 1.1 (jla 31-Oct-89): (let ((symbol (rmail-make-label s)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
175 1.1 (jla 31-Oct-89): (if (memq symbol (cdr rmail-attributes)) symbol)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
176 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
177 1.1 (jla 31-Oct-89): (defun rmail-keyword-p (s)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
178 1.1 (jla 31-Oct-89): (let ((symbol (rmail-make-label s)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
179 1.1 (jla 31-Oct-89): (if (memq symbol (cdr (rmail-keywords))) symbol)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
180 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
181 1.1 (jla 31-Oct-89): (defun rmail-make-label (s &optional forcep)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
182 1.1 (jla 31-Oct-89): (cond ((symbolp s) s)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
183 1.1 (jla 31-Oct-89): (forcep (intern (downcase s) rmail-label-obarray))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
184 1.1 (jla 31-Oct-89): (t (intern-soft (downcase s) rmail-label-obarray))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
185 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
186 1.1 (jla 31-Oct-89): (defun rmail-force-make-label (s)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
187 1.1 (jla 31-Oct-89): (intern (downcase s) rmail-label-obarray))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
188 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
189 1.1 (jla 31-Oct-89): (defun rmail-quote-label-name (label)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
190 1.1 (jla 31-Oct-89): (regexp-quote (symbol-name (rmail-make-label label t))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
191 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
192 1.1 (jla 31-Oct-89): ;; Motion on messages with keywords.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
193 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
194 1.12 (rms 27-Sep-96): ;;;###autoload
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
195 1.2 (jimb 23-Feb-91): (defun rmail-previous-labeled-message (n labels)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
196 1.2 (jimb 23-Feb-91): "Show previous message with one of the labels LABELS.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
197 1.2 (jimb 23-Feb-91): LABELS should be a comma-separated list of label names.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
198 1.2 (jimb 23-Feb-91): If LABELS is empty, the last set of labels specified is used.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
199 1.1 (jla 31-Oct-89): With prefix argument N moves backward N messages with these labels."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
200 1.1 (jla 31-Oct-89): (interactive "p\nsMove to previous msg with labels: ")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
201 1.2 (jimb 23-Feb-91): (rmail-next-labeled-message (- n) labels))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
202 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
203 1.12 (rms 27-Sep-96): ;;;###autoload
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
204 1.1 (jla 31-Oct-89): (defun rmail-next-labeled-message (n labels)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
205 1.2 (jimb 23-Feb-91): "Show next message with one of the labels LABELS.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
206 1.2 (jimb 23-Feb-91): LABELS should be a comma-separated list of label names.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
207 1.2 (jimb 23-Feb-91): If LABELS is empty, the last set of labels specified is used.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
208 1.1 (jla 31-Oct-89): With prefix argument N moves forward N messages with these labels."
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
209 1.1 (jla 31-Oct-89): (interactive "p\nsMove to next msg with labels: ")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
210 1.1 (jla 31-Oct-89): (if (string= labels "")
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
211 1.1 (jla 31-Oct-89): (setq labels rmail-last-multi-labels))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
212 1.1 (jla 31-Oct-89): (or labels
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
213 1.1 (jla 31-Oct-89): (error "No labels to find have been specified previously"))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
214 1.13 (gerd 08-May-01): (set-buffer rmail-buffer)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
215 1.1 (jla 31-Oct-89): (setq rmail-last-multi-labels labels)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
216 1.1 (jla 31-Oct-89): (rmail-maybe-set-message-counters)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
217 1.1 (jla 31-Oct-89): (let ((lastwin rmail-current-message)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
218 1.1 (jla 31-Oct-89): (current rmail-current-message)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
219 1.1 (jla 31-Oct-89): (regexp (concat ", ?\\("
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
220 1.1 (jla 31-Oct-89): (mail-comma-list-regexp labels)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
221 1.1 (jla 31-Oct-89): "\\),")))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
222 1.1 (jla 31-Oct-89): (save-restriction
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
223 1.1 (jla 31-Oct-89): (widen)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
224 1.1 (jla 31-Oct-89): (while (and (> n 0) (< current rmail-total-messages))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
225 1.1 (jla 31-Oct-89): (setq current (1+ current))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
226 1.1 (jla 31-Oct-89): (if (rmail-message-labels-p current regexp)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
227 1.1 (jla 31-Oct-89): (setq lastwin current n (1- n))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
228 1.1 (jla 31-Oct-89): (while (and (< n 0) (> current 1))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
229 1.1 (jla 31-Oct-89): (setq current (1- current))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
230 1.1 (jla 31-Oct-89): (if (rmail-message-labels-p current regexp)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
231 1.1 (jla 31-Oct-89): (setq lastwin current n (1+ n)))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
232 1.1 (jla 31-Oct-89): (rmail-show-message lastwin)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
233 1.1 (jla 31-Oct-89): (if (< n 0)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
234 1.1 (jla 31-Oct-89): (message "No previous message with labels %s" labels))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
235 1.1 (jla 31-Oct-89): (if (> n 0)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
236 1.1 (jla 31-Oct-89): (message "No following message with labels %s" labels))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
237 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
238 1.1 (jla 31-Oct-89): ;;; Manipulate the file's Labels option.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
239 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
240 1.1 (jla 31-Oct-89): ;; Return a list of symbols for all
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
241 1.1 (jla 31-Oct-89): ;; the keywords (labels) recorded in this file's Labels option.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
242 1.1 (jla 31-Oct-89): (defun rmail-keywords ()
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
243 1.1 (jla 31-Oct-89): (or rmail-keywords (rmail-parse-file-keywords)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
244 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
245 1.1 (jla 31-Oct-89): ;; Set rmail-keywords to a list of symbols for all
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
246 1.1 (jla 31-Oct-89): ;; the keywords (labels) recorded in this file's Labels option.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
247 1.1 (jla 31-Oct-89): (defun rmail-parse-file-keywords ()
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
248 1.1 (jla 31-Oct-89): (save-restriction
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
249 1.1 (jla 31-Oct-89): (save-excursion
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
250 1.1 (jla 31-Oct-89): (widen)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
251 1.1 (jla 31-Oct-89): (goto-char 1)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
252 1.1 (jla 31-Oct-89): (setq rmail-keywords
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
253 1.1 (jla 31-Oct-89): (if (search-forward "\nLabels:" (rmail-msgbeg 1) t)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
254 1.1 (jla 31-Oct-89): (progn
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
255 1.1 (jla 31-Oct-89): (narrow-to-region (point) (progn (end-of-line) (point)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
256 1.1 (jla 31-Oct-89): (goto-char (point-min))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
257 1.1 (jla 31-Oct-89): (cons 'rmail-keywords
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
258 1.1 (jla 31-Oct-89): (mapcar 'rmail-force-make-label
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
259 1.1 (jla 31-Oct-89): (mail-parse-comma-list)))))))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
260 1.1 (jla 31-Oct-89):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
261 1.1 (jla 31-Oct-89): ;; Add WORD to the list in the file's Labels option.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
262 1.1 (jla 31-Oct-89): ;; Any keyword used for the first time needs this done.
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
263 1.1 (jla 31-Oct-89): (defun rmail-install-keyword (word)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
264 1.1 (jla 31-Oct-89): (let ((keyword (rmail-make-label word t))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
265 1.1 (jla 31-Oct-89): (keywords (rmail-keywords)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
266 1.1 (jla 31-Oct-89): (if (not (or (rmail-attribute-p keyword)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
267 1.1 (jla 31-Oct-89): (rmail-keyword-p keyword)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
268 1.1 (jla 31-Oct-89): (let ((omin (- (buffer-size) (point-min)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
269 1.1 (jla 31-Oct-89): (omax (- (buffer-size) (point-max))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
270 1.1 (jla 31-Oct-89): (unwind-protect
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
271 1.1 (jla 31-Oct-89): (save-excursion
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
272 1.1 (jla 31-Oct-89): (widen)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
273 1.1 (jla 31-Oct-89): (goto-char 1)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
274 1.1 (jla 31-Oct-89): (let ((case-fold-search t)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
275 1.1 (jla 31-Oct-89): (buffer-read-only nil))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
276 1.1 (jla 31-Oct-89): (or (search-forward "\nLabels:" nil t)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
277 1.1 (jla 31-Oct-89): (progn
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
278 1.1 (jla 31-Oct-89): (end-of-line)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
279 1.1 (jla 31-Oct-89): (insert "\nLabels:")))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
280 1.1 (jla 31-Oct-89): (delete-region (point) (progn (end-of-line) (point)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
281 1.1 (jla 31-Oct-89): (setcdr keywords (cons keyword (cdr keywords)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
282 1.1 (jla 31-Oct-89): (while (setq keywords (cdr keywords))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
283 1.1 (jla 31-Oct-89): (insert (symbol-name (car keywords)) ","))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
284 1.1 (jla 31-Oct-89): (delete-char -1)))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
285 1.1 (jla 31-Oct-89): (narrow-to-region (- (buffer-size) omin)
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
286 1.1 (jla 31-Oct-89): (- (buffer-size) omax)))))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
287 1.1 (jla 31-Oct-89): keyword))
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
288 1.3 (eric 30-May-92):
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
289 1.24 (monnier 10-Apr-08): ;; arch-tag: b26b3392-99ca-4e1d-933a-dab59b04e9a8
513ae63d6175 Temporary convenience files supporting the Rmail/mbox merge to the
Paul Reilly <pmr@pajato.com>
parents:
diff changeset
290 1.3 (eric 30-May-92): ;;; rmailkwd.el ends here