]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/image-mode.el (image-mode-winprops): Don't throw away the fallback
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 9 Jan 2013 22:47:27 +0000 (17:47 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 9 Jan 2013 22:47:27 +0000 (17:47 -0500)
`t' pseudo-window entry.

lisp/ChangeLog
lisp/image-mode.el

index 778fe3dedd65d09388c2c10ba3a29dbe54b07afd..d7ffc144657a479138acad7fd7da7775f6644642 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-09  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * image-mode.el (image-mode-winprops): Don't throw away the fallback
+       `t' pseudo-window entry.
+
 2013-01-09  Alan Mackenzie  <acm@muc.de>
 
        Fix bugs in the c-parse-state mechanism.  Reuse some markers
index 90eb5dfaec55447b5b0a309ae944e940bd1bfc63..a95dde1d999cb13175d649b6a1f20ab802b57d0a 100644 (file)
@@ -63,8 +63,9 @@ otherwise it defaults to t, used for times when the buffer is not displayed."
   (when cleanup
     (setq image-mode-winprops-alist
          (delq nil (mapcar (lambda (winprop)
-                             (if (window-live-p (car-safe winprop))
-                                 winprop))
+                             (let ((w (car-safe winprop)))
+                               (if (or (not (windowp w)) (window-live-p w))
+                                   winprop)))
                            image-mode-winprops-alist))))
   (let ((winprops (assq window image-mode-winprops-alist)))
     ;; For new windows, set defaults from the latest.