aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2009-04-09 16:50:36 +0000
committerRichard M. Stallman2009-04-09 16:50:36 +0000
commit6dd50fed29f6c99b106bcf92d79fab07d7e2f7dc (patch)
tree05b5ef23a8f1e076eb9306bf036997bef9b4a552
parentde62d9e98353da9b87926bed109a58059cd61679 (diff)
downloademacs-6dd50fed29f6c99b106bcf92d79fab07d7e2f7dc.tar.gz
emacs-6dd50fed29f6c99b106bcf92d79fab07d7e2f7dc.zip
* mail/rmailkwd.el (rmail-set-label): Warn if multipe labels spec'd.
(rmail-kill-label, rmail-add-label): Doc fixes.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/mail/rmailkwd.el6
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 00bc4b3d71d..47f8c1e2d6d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-04-09 Richard M Stallman <rms@gnu.org> 12009-04-09 Richard M Stallman <rms@gnu.org>
2 2
3 * mail/rmailkwd.el (rmail-set-label): Warn if multipe labels spec'd.
4 (rmail-kill-label, rmail-add-label): Doc fixes.
5
3 * mail/rmailout.el (rmail-output): If file is visited, 6 * mail/rmailout.el (rmail-output): If file is visited,
4 check the buffer's format. 7 check the buffer's format.
5 8
diff --git a/lisp/mail/rmailkwd.el b/lisp/mail/rmailkwd.el
index 5c69daa6d33..b52ad4897f8 100644
--- a/lisp/mail/rmailkwd.el
+++ b/lisp/mail/rmailkwd.el
@@ -46,7 +46,7 @@
46(defun rmail-add-label (label) 46(defun rmail-add-label (label)
47 "Add LABEL to labels associated with current RMAIL message. 47 "Add LABEL to labels associated with current RMAIL message.
48Completes (see `rmail-read-label') over known labels when reading. 48Completes (see `rmail-read-label') over known labels when reading.
49LABEL may be a symbol or string." 49LABEL may be a symbol or string. Only one label is allowed."
50 (interactive (list (rmail-read-label "Add label"))) 50 (interactive (list (rmail-read-label "Add label")))
51 (rmail-set-label label t)) 51 (rmail-set-label label t))
52 52
@@ -54,7 +54,7 @@ LABEL may be a symbol or string."
54(defun rmail-kill-label (label) 54(defun rmail-kill-label (label)
55 "Remove LABEL from labels associated with current RMAIL message. 55 "Remove LABEL from labels associated with current RMAIL message.
56Completes (see `rmail-read-label') over known labels when reading. 56Completes (see `rmail-read-label') over known labels when reading.
57LABEL may be a symbol or string." 57LABEL may be a symbol or string. Only one label is allowed."
58 (interactive (list (rmail-read-label "Remove label"))) 58 (interactive (list (rmail-read-label "Remove label")))
59 (rmail-set-label label nil)) 59 (rmail-set-label label nil))
60 60
@@ -92,6 +92,8 @@ according to the choice made, and returns a symbol."
92 "Set LABEL as present or absent according to STATE in message MSG. 92 "Set LABEL as present or absent according to STATE in message MSG.
93LABEL may be a symbol or string." 93LABEL may be a symbol or string."
94 (or (stringp label) (setq label (symbol-name label))) 94 (or (stringp label) (setq label (symbol-name label)))
95 (if (string-match "," label)
96 (error "More than one label specified"))
95 (with-current-buffer rmail-buffer 97 (with-current-buffer rmail-buffer
96 (rmail-maybe-set-message-counters) 98 (rmail-maybe-set-message-counters)
97 (or msg (setq msg rmail-current-message)) 99 (or msg (setq msg rmail-current-message))