From 637d46ca189f511ca1e5385700c168f6912568ea Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 20 May 2011 19:09:49 -0700 Subject: [PATCH] image-mode fix for bug#8567. * image-mode.el (image-after-revert-hook): Redraw all frames on which the image is visible. --- lisp/ChangeLog | 3 +++ lisp/image-mode.el | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5a232e0ec..3ea95bda94 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 17f006e81a..f4eb5eeaf4 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))) -- 2.20.1