[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 94e794c: Tweak recent bytecomp defvaralias change
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] master 94e794c: Tweak recent bytecomp defvaralias change |
Date: |
Fri, 20 Apr 2018 19:02:56 -0400 (EDT) |
branch: master
commit 94e794c8d8b93a1d6813742da12135f2746ef80b
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>
Tweak recent bytecomp defvaralias change
* lisp/emacs-lisp/bytecomp.el (byte-compile-file-form-defvar-function):
Respect with-no-warnings.
---
lisp/emacs-lisp/bytecomp.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 50e6704..ad6b5b7 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -2433,8 +2433,9 @@ list that represents a doc string reference.
(pcase form
(`(defvaralias ,_ ',newname . ,_)
(when (memq newname byte-compile-bound-variables)
- (byte-compile-warn
- "Alias for `%S' should be declared before its referent" newname))))
+ (if (byte-compile-warning-enabled-p 'suspicious)
+ (byte-compile-warn
+ "Alias for `%S' should be declared before its referent"
newname)))))
(byte-compile-keep-pending form))
(put 'custom-declare-variable 'byte-hunk-handler
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 94e794c: Tweak recent bytecomp defvaralias change,
Glenn Morris <=