diff options
author | Tassilo Horn <[email protected]> | 2008-01-29 18:01:32 +0000 |
---|---|---|
committer | Tassilo Horn <[email protected]> | 2008-01-29 18:01:32 +0000 |
commit | 865ba895262a7ef207489763281883cdb0ef8800 (patch) | |
tree | 413d678623330bc0464d223d17f7a34a373e14dc /lisp/doc-view.el | |
parent | 54089c0eea82caf34ce360cac85c39bd74a3df8a (diff) |
* doc-view.el (doc-view-mode): Adapt to i-m-current-[vh]scroll
being an alist now.
Diffstat (limited to 'lisp/doc-view.el')
-rw-r--r-- | lisp/doc-view.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 047785e844..aaa68bf638 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -989,10 +989,10 @@ toggle between displaying the document or editing it as text." 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) |