Commit 8c0ae0f9 authored by Noam Postavsky's avatar Noam Postavsky

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.
parent 8d588f09
Pipeline #3076 failed with stage
in 56 minutes and 10 seconds
......@@ -4071,7 +4071,7 @@ that suppresses all warnings during execution of BODY."
,condition '(fboundp functionp)
(bound-list (byte-compile-find-bound-condition
,condition '(boundp default-boundp)))
,condition '(boundp default-boundp local-variable-p)))
;; Maybe add to the bound list.
(append bound-list byte-compile-bound-variables)))
......@@ -727,9 +727,8 @@ was inserted."
;; This means the buffer holds the
;; decrypted content (bug#21870).
(not (and (boundp 'epa-file-encrypt-to)
(not (local-variable-p
(if data-p
(let ((str
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment