Suppress warning about non-prefixed variable in mailalias.el

* lisp/mail/mailalias.el (patters): Suppress warning about
non-prefixed variable used by `mail-complete-alist'.
This commit is contained in:
Lars Ingebrigtsen 2019-06-15 16:53:52 +02:00
parent 0c01734a32
commit a979a0ad07

View file

@ -52,7 +52,11 @@ When t this still needs to be initialized.")
(defvar mail-address-field-regexp
"^\\(Resent-\\)?\\(To\\|From\\|Cc\\|Bcc\\|Reply-To\\):")
(defvar pattern)
;; `pattern' is bound dynamically before evaluating the forms in
;; `mail-complete-alist' and may be part of user customizations of
;; that variable.
(with-suppressed-warnings ((lexical pattern))
(defvar pattern))
(defcustom mail-complete-alist
;; Don't refer to mail-address-field-regexp here;