mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-22 04:47:34 +00:00
Simplify previous change.
This commit is contained in:
parent
3e8fc1b6f6
commit
655a218ace
1 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue