image-mode fix for bug#8567.
authorGlenn Morris <rgm@gnu.org>
Sat, 21 May 2011 02:09:49 +0000 (19:09 -0700)
committerGlenn Morris <rgm@gnu.org>
Sat, 21 May 2011 02:09:49 +0000 (19:09 -0700)
* image-mode.el (image-after-revert-hook):
Redraw all frames on which the image is visible.

lisp/ChangeLog
lisp/image-mode.el

index c5a232e..3ea95bd 100644 (file)
@@ -1,5 +1,8 @@
 2011-05-21  Glenn Morris  <rgm@gnu.org>
 
+       * image-mode.el (image-after-revert-hook):
+       Redraw all frames on which the image is visible.  (Bug#8567)
+
        * dired-aux.el (dired-touch-initial): Just use current-time.  (Bug#6887)
 
        * wid-edit.el (widget-checklist-match-inline):
index 17f006e..f4eb5ee 100644 (file)
@@ -532,7 +532,8 @@ the image by calling `image-mode'."
   (when (image-get-display-property)
     (image-toggle-display-text)
     ;; Update image display.
-    (redraw-frame (selected-frame))
+    (mapc (lambda (window) (redraw-frame (window-frame window)))
+          (get-buffer-window-list (current-buffer) 'nomini 'visible))
     (image-toggle-display-image)))
 
 \f