aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTassilo Horn2008-09-12 06:29:25 +0000
committerTassilo Horn2008-09-12 06:29:25 +0000
commitc36f0e175511d552c1082f0c042d2a2057909bb4 (patch)
tree6aeaf9f1b1ffcdb088b26bb3e3e20442c2d5b1ff
parentfc88345bb73f6bc7d7ddf8cf77c6467bd3a319da (diff)
downloademacs-c36f0e175511d552c1082f0c042d2a2057909bb4.tar.gz
emacs-c36f0e175511d552c1082f0c042d2a2057909bb4.zip
(doc-view-scroll-up-or-next-page)
(doc-view-scroll-down-or-previous-page): Fix scrolling in case of vertically split windows.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/doc-view.el6
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 087317bcdca..bb2745c276d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12008-09-12 Tassilo Horn <tassilo@member.fsf.org>
2
3 * doc-view.el (doc-view-scroll-up-or-next-page)
4 (doc-view-scroll-down-or-previous-page): Fix scrolling in case of
5 vertically split windows.
6
12008-09-12 Glenn Morris <rgm@gnu.org> 72008-09-12 Glenn Morris <rgm@gnu.org>
2 8
3 * progmodes/f90.el (f90-mode-map): Don't bind \t and \r. 9 * progmodes/f90.el (f90-mode-map): Don't bind \t and \r.
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index dd7af41cd7a..9694e9a70ed 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -422,7 +422,8 @@ Can be `dvi', `pdf', or `ps'.")
422 (let ((cur-page (doc-view-current-page))) 422 (let ((cur-page (doc-view-current-page)))
423 (doc-view-next-page) 423 (doc-view-next-page)
424 (when (/= cur-page (doc-view-current-page)) 424 (when (/= cur-page (doc-view-current-page))
425 (image-scroll-down nil))))) 425 (image-bob)
426 (image-bol 1)))))
426 427
427(defun doc-view-scroll-down-or-previous-page () 428(defun doc-view-scroll-down-or-previous-page ()
428 "Scroll page down if possible, else goto previous page." 429 "Scroll page down if possible, else goto previous page."
@@ -431,7 +432,8 @@ Can be `dvi', `pdf', or `ps'.")
431 (let ((cur-page (doc-view-current-page))) 432 (let ((cur-page (doc-view-current-page)))
432 (doc-view-previous-page) 433 (doc-view-previous-page)
433 (when (/= cur-page (doc-view-current-page)) 434 (when (/= cur-page (doc-view-current-page))
434 (image-scroll-up nil))))) 435 (image-eob)
436 (image-bol 1)))))
435 437
436;;;; Utility Functions 438;;;; Utility Functions
437 439