diff options
author | Noam Postavsky <npostavs@gmail.com> | 2019-09-07 17:00:39 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2019-09-07 17:00:39 -0400 |
commit | 8c0ae0f93ad28d9ef419ec589170d8a670ec0932 (patch) | |
tree | 53d273a6f558d4e75611b3b56c7d866b99f8de56 /lisp/image-mode.el | |
parent | 8d588f09e91e315c715cf824a9819a538a85cd9c (diff) | |
download | emacs-8c0ae0f93ad28d9ef419ec589170d8a670ec0932.tar.gz |
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/image-mode.el')
-rw-r--r-- | lisp/image-mode.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 8630ac07e6d..9c7c91eb58a 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -727,9 +727,8 @@ was inserted." jka-compr-really-do-compress)) ;; This means the buffer holds the ;; decrypted content (bug#21870). - (not (and (boundp 'epa-file-encrypt-to) - (local-variable-p - 'epa-file-encrypt-to)))))) + (not (local-variable-p + 'epa-file-encrypt-to))))) (file-or-data (if data-p (let ((str |