Subject: bug#501: Acknowledgement (23.0.60; Viewing SVG files: Error when pressing C-v, M-v)

From: Markus Triska <[email-masked]>
Date: Sat, 19 Jul 2008 00:37:39 +0200

The following patch fixes this problem for me.

2008-07-18  Markus Triska  <[email-masked]>

	* image-mode.el (image-toggle-display): Record scroll settings
	when switching to image.

diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 00f2225..5ffbfe1 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -450,6 +450,7 @@ and showing the image as an image."
 	   (modified (buffer-modified-p)))
       (image-refresh image)
       (add-text-properties (point-min) (point-max) props)
+      (image-mode-setup-winprops)
       (set-buffer-modified-p modified)
       ;; Inhibit the cursor when the buffer contains only an image,
       ;; because cursors look very strange on top of images.