summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2019-06-15 16:53:52 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-06-15 16:53:52 +0200
commita979a0ad07a8e2452c1267d2c1299000e543051d (patch)
tree81d3415a7eb31af63ce745c8c8219e044f5e074c /lisp
parent0c01734a324716ea6c214d79b9f760dbeb431162 (diff)
downloademacs-a979a0ad07a8e2452c1267d2c1299000e543051d.tar.gz
emacs-a979a0ad07a8e2452c1267d2c1299000e543051d.tar.bz2
emacs-a979a0ad07a8e2452c1267d2c1299000e543051d.zip
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'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/mailalias.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el
index 42896c18ebe..8bb42634892 100644
--- a/lisp/mail/mailalias.el
+++ b/lisp/mail/mailalias.el
@@ -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;