(doc-view-scroll-up-or-next-page): Don't use
authorTassilo Horn <tassilo@member.fsf.org>
Tue, 22 Apr 2008 06:38:12 +0000 (06:38 +0000)
committerTassilo Horn <tassilo@member.fsf.org>
Tue, 22 Apr 2008 06:38:12 +0000 (06:38 +0000)
set-window-vscroll but image-scroll-down.  Fixes a bug where a
command following SPC scrolled up again.

lisp/ChangeLog
lisp/doc-view.el

index 93967ca..3e31086 100644 (file)
@@ -1,3 +1,9 @@
+2008-04-22  Tassilo Horn  <tassilo@member.fsf.org>
+
+       * doc-view.el (doc-view-scroll-up-or-next-page): Don't use
+       set-window-vscroll but image-scroll-down.  Fixes a bug where a
+       command following SPC scrolled up again.
+
 2008-04-22  Nick Roberts  <nickrob@snap.net.nz>
 
        * progmodes/gdb-ui.el (gdb-locals-header): New variable.
index 834c661..7d2988f 100644 (file)
@@ -434,7 +434,7 @@ Can be `dvi', `pdf', or `ps'.")
     (let ((cur-page (doc-view-current-page)))
       (doc-view-next-page)
       (when (/= cur-page (doc-view-current-page))
-       (set-window-vscroll nil 0)))))
+       (image-scroll-down nil)))))
 
 (defun doc-view-scroll-down-or-previous-page ()
   "Scroll page down if possible, else goto previous page."