changeset 88063:656f1559e088

* doc-view.el (doc-view-mode): Adapt to i-m-current-[vh]scroll being an alist now.
author Tassilo Horn <tassilo@member.fsf.org>
date Tue, 29 Jan 2008 18:01:07 +0000
parents 4ff20f6b1ec8
children 00bf4cdbc388
files lisp/doc-view.el
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/doc-view.el	Tue Jan 29 18:00:40 2008 +0000
+++ b/lisp/doc-view.el	Tue Jan 29 18:01:07 2008 +0000
@@ -989,10 +989,10 @@
 	    nil t)
 
   ;; Keep track of [vh]scroll when switching buffers
-  (set (make-local-variable 'image-mode-current-hscroll)
-       (window-hscroll (selected-window)))
-  (set (make-local-variable 'image-mode-current-vscroll)
-       (window-vscroll (selected-window)))
+  (make-local-variable 'image-mode-current-hscroll)
+  (make-local-variable 'image-mode-current-vscroll)
+  (image-set-window-hscroll (selected-window) (window-hscroll))
+  (image-set-window-vscroll (selected-window) (window-vscroll))
   (add-hook 'window-configuration-change-hook
 	    'image-reset-current-vhscroll nil t)