[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Doc View Page Problems

From: Ian D
Subject: Re: Doc View Page Problems
Date: Fri, 18 Apr 2014 16:23:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

       One more thing that I noticed is that image-mode itself doesn't
       setup the default window configuration, so I've included a patch
       that will do this.

Ian D

diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 98fc385..76ea1e9 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -56,7 +56,9 @@ WINDOW defaults to `selected-window' if it displays the 
current buffer, and
 otherwise it defaults to t, used for times when the buffer is not displayed."
   (cond ((null window)
          (setq window
-               (if (eq (current-buffer) (window-buffer)) (selected-window) t)))
+               (if (and (eq (current-buffer) (window-buffer))
+                        (assq t image-mode-winprops-alist))
+                   (selected-window) t)))
         ((eq window t))
        ((not (windowp window))
         (error "Not a window: %s" window)))

image-mode.el (image-mode-winprops): Setup the default winprop if it
doesn't already exist.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]