From: Glenn Morris Date: Sat, 21 May 2011 02:09:49 +0000 (-0700) Subject: image-mode fix for bug#8567. X-Git-Tag: emacs-pretest-24.0.90~104^2~618^2~225 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=637d46ca189f511ca1e5385700c168f6912568ea;p=emacs.git image-mode fix for bug#8567. * image-mode.el (image-after-revert-hook): Redraw all frames on which the image is visible. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5a232e0ec3..3ea95bda944 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2011-05-21 Glenn Morris + * 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): diff --git a/lisp/image-mode.el b/lisp/image-mode.el index 17f006e81a1..f4eb5eeaf45 100644 --- a/lisp/image-mode.el +++ b/lisp/image-mode.el @@ -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)))