From ce87639b69c7341a145adba13454c93e43d0ac4f Mon Sep 17 00:00:00 2001 From: Utkarsh Singh Date: Tue, 11 May 2021 22:17:20 +0530 Subject: Fix reference to free variable warning for image-mode-winprops-alist (#9) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following compilation warnings: Warning (comp): pdf-util.el:113:36: Warning: reference to free variable ‘image-mode-winprops-alist’ Warning (comp): pdf-util.el:114:39: Warning: assignment to free variable ‘image-mode-winprops-alist’ --- lisp/pdf-util.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/pdf-util.el b/lisp/pdf-util.el index 345b258..3c4d77b 100644 --- a/lisp/pdf-util.el +++ b/lisp/pdf-util.el @@ -91,6 +91,7 @@ remove the entry if the new value is `eql' to DEFAULT." (require 'image-mode) (defvar image-mode-winprops-original-function (symbol-function 'image-mode-winprops)) + (defvar image-mode-winprops-alist) (eval-after-load "image-mode" '(defun image-mode-winprops (&optional window cleanup) (if (not (eq major-mode 'pdf-view-mode)) -- cgit v1.0