mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
notmuch.el: Use let to avoid assigning to a free variable.
The dynamic scoping of emacs lisp is such that we never want to assign to any variable unless it's something we've defined with `defvar' or else something we're using locally via `let'.
This commit is contained in:
parent
a708ea627e
commit
7a63942577
1 changed files with 5 additions and 6 deletions
|
@ -1081,8 +1081,7 @@ Complete list of currently available key bindings:
|
|||
(if (not notmuch-tag-face-alist)
|
||||
(add-to-list 'notmuch-search-font-lock-keywords (list
|
||||
"(\\([^)]*\\))$" '(1 'notmuch-tag-face)))
|
||||
(progn
|
||||
(setq notmuch-search-tags (mapcar 'car notmuch-tag-face-alist))
|
||||
(let ((notmuch-search-tags (mapcar 'car notmuch-tag-face-alist)))
|
||||
(loop for notmuch-search-tag in notmuch-search-tags
|
||||
do (add-to-list 'notmuch-search-font-lock-keywords (list
|
||||
(concat "([^)]*\\(" notmuch-search-tag "\\)[^)]*)$")
|
||||
|
|
Loading…
Reference in a new issue