* lisp/image-mode.el (image-mode-winprops): Don't throw away the fallback

`t' pseudo-window entry.
This commit is contained in:
Stefan Monnier 2013-01-09 17:47:27 -05:00
parent 8cff5febae
commit 08ce64e637
2 changed files with 8 additions and 2 deletions

View 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

View 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.