diff options
author | Glenn Morris <rgm@gnu.org> | 2009-02-12 07:52:02 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2009-02-12 07:52:02 +0000 |
commit | 655a218acee346dfa403d755f8c9518f0b7957db (patch) | |
tree | fdc6852d65d59a8f0257edf3f9705aeebdc15fc7 /lisp/mail/rmailkwd.el | |
parent | 3e8fc1b6f6da17ba948f35f167c1d0f250b59093 (diff) | |
download | emacs-655a218acee346dfa403d755f8c9518f0b7957db.tar.gz |
Simplify previous change.
Diffstat (limited to 'lisp/mail/rmailkwd.el')
-rw-r--r-- | lisp/mail/rmailkwd.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mail/rmailkwd.el b/lisp/mail/rmailkwd.el index 03f48ad91a7..a5dd81dda8c 100644 --- a/lisp/mail/rmailkwd.el +++ b/lisp/mail/rmailkwd.el @@ -107,7 +107,9 @@ LABEL may be a symbol or string." (rmail-set-attribute attr-index state msg) ;; Is this keyword already present in msg's keyword list? (let* ((header (rmail-get-keywords msg)) - (present (not (null (member label (split-string header ", ")))))) + (regexp (concat ", " (regexp-quote label) ",")) + (present (not (null (string-match-p + regexp (concat ", " header ",")))))) ;; If current state is not correct, (unless (eq present state) ;; either add it or delete it. |