]> git.eshelyaron.com Git - emacs.git/commitdiff
Suppress warning about non-prefixed variable in mailalias.el
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jun 2019 14:53:52 +0000 (16:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jun 2019 14:53:52 +0000 (16:53 +0200)
* lisp/mail/mailalias.el (patters): Suppress warning about
non-prefixed variable used by `mail-complete-alist'.

lisp/mail/mailalias.el

index 42896c18ebe5897b06ac127b4f2f5cb1a150d2c0..8bb4263489240f04c4069b6ce7843d67ff1155b3 100644 (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;