summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/bytecomp.el
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2019-09-07 17:00:39 -0400
committerNoam Postavsky <npostavs@gmail.com>2019-09-07 17:00:39 -0400
commit8c0ae0f93ad28d9ef419ec589170d8a670ec0932 (patch)
tree53d273a6f558d4e75611b3b56c7d866b99f8de56 /lisp/emacs-lisp/bytecomp.el
parent8d588f09e91e315c715cf824a9819a538a85cd9c (diff)
downloademacs-8c0ae0f93ad28d9ef419ec589170d8a670ec0932.tar.gz
emacs-8c0ae0f93ad28d9ef419ec589170d8a670ec0932.tar.bz2
emacs-8c0ae0f93ad28d9ef419ec589170d8a670ec0932.zip
Let byte-compiler recognize that local-variable-p implies boundp
* lisp/emacs-lisp/bytecomp.el (byte-compile-maybe-guarded): Add arguments to local-variable-p to the bound list. * lisp/image-mode.el (image-toggle-display-image): Remove no longer needed boundp check.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
-rw-r--r--lisp/emacs-lisp/bytecomp.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 40b4e2f4671..2fab11c79df 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -4071,7 +4071,7 @@ that suppresses all warnings during execution of BODY."
,condition '(fboundp functionp)
byte-compile-unresolved-functions))
(bound-list (byte-compile-find-bound-condition
- ,condition '(boundp default-boundp)))
+ ,condition '(boundp default-boundp local-variable-p)))
;; Maybe add to the bound list.
(byte-compile-bound-variables
(append bound-list byte-compile-bound-variables)))