diff options
| author | Tassilo Horn | 2008-04-22 06:38:12 +0000 |
|---|---|---|
| committer | Tassilo Horn | 2008-04-22 06:38:12 +0000 |
| commit | d5793be30c516653c280823735265f700807f8b3 (patch) | |
| tree | 431cdda73233940fb907121a4f3319892b1e8872 | |
| parent | 01a369030e39cc7af7fe38d69450a4233f9bd45e (diff) | |
| download | emacs-d5793be30c516653c280823735265f700807f8b3.tar.gz emacs-d5793be30c516653c280823735265f700807f8b3.zip | |
(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.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/doc-view.el | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 93967cad44b..3e3108624b5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-04-22 Tassilo Horn <tassilo@member.fsf.org> | ||
| 2 | |||
| 3 | * doc-view.el (doc-view-scroll-up-or-next-page): Don't use | ||
| 4 | set-window-vscroll but image-scroll-down. Fixes a bug where a | ||
| 5 | command following SPC scrolled up again. | ||
| 6 | |||
| 1 | 2008-04-22 Nick Roberts <nickrob@snap.net.nz> | 7 | 2008-04-22 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 8 | ||
| 3 | * progmodes/gdb-ui.el (gdb-locals-header): New variable. | 9 | * progmodes/gdb-ui.el (gdb-locals-header): New variable. |
diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 834c661af43..7d2988f9718 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el | |||
| @@ -434,7 +434,7 @@ Can be `dvi', `pdf', or `ps'.") | |||
| 434 | (let ((cur-page (doc-view-current-page))) | 434 | (let ((cur-page (doc-view-current-page))) |
| 435 | (doc-view-next-page) | 435 | (doc-view-next-page) |
| 436 | (when (/= cur-page (doc-view-current-page)) | 436 | (when (/= cur-page (doc-view-current-page)) |
| 437 | (set-window-vscroll nil 0))))) | 437 | (image-scroll-down nil))))) |
| 438 | 438 | ||
| 439 | (defun doc-view-scroll-down-or-previous-page () | 439 | (defun doc-view-scroll-down-or-previous-page () |
| 440 | "Scroll page down if possible, else goto previous page." | 440 | "Scroll page down if possible, else goto previous page." |