diff options
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 26 |
2 files changed, 21 insertions, 11 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 85bf600cf2d..992c351ef31 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2005-07-26 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-article-next-page-1): Don't scroll if there're | ||
| 4 | fewer lines than that of scroll-margin. | ||
| 5 | (gnus-article-prev-page): Narrow the range to bind scroll-in-place. | ||
| 6 | |||
| 1 | 2005-07-25 Katsumi Yamaoka <yamaoka@jpl.org> | 7 | 2005-07-25 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 8 | ||
| 3 | * gnus-art.el (gnus-article-next-page): Revert. | 9 | * gnus-art.el (gnus-article-next-page): Revert. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 3b2dd8cb994..f7e3420e922 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -5197,13 +5197,17 @@ specifies." | |||
| 5197 | 1 0))))))) | 5197 | 1 0))))))) |
| 5198 | 5198 | ||
| 5199 | (defun gnus-article-next-page-1 (lines) | 5199 | (defun gnus-article-next-page-1 (lines) |
| 5200 | (let ((scroll-in-place nil)) | 5200 | (unless (and (not (featurep 'xemacs)) |
| 5201 | (> (symbol-value 'scroll-margin) 0) | ||
| 5202 | (<= (count-lines (window-start) (point-max)) | ||
| 5203 | (symbol-value 'scroll-margin))) | ||
| 5201 | (condition-case () | 5204 | (condition-case () |
| 5202 | (scroll-up lines) | 5205 | (let ((scroll-in-place nil)) |
| 5206 | (scroll-up lines)) | ||
| 5203 | (end-of-buffer | 5207 | (end-of-buffer |
| 5204 | ;; Long lines may cause an end-of-buffer error. | 5208 | ;; Long lines may cause an end-of-buffer error. |
| 5205 | (goto-char (point-max))))) | 5209 | (goto-char (point-max)))) |
| 5206 | (gnus-article-beginning-of-window)) | 5210 | (gnus-article-beginning-of-window))) |
| 5207 | 5211 | ||
| 5208 | (defun gnus-article-prev-page (&optional lines) | 5212 | (defun gnus-article-prev-page (&optional lines) |
| 5209 | "Show previous page of current article. | 5213 | "Show previous page of current article. |
| @@ -5217,13 +5221,13 @@ Argument LINES specifies lines to be scrolled down." | |||
| 5217 | (gnus-narrow-to-page -1) ;Go to previous page. | 5221 | (gnus-narrow-to-page -1) ;Go to previous page. |
| 5218 | (goto-char (point-max)) | 5222 | (goto-char (point-max)) |
| 5219 | (recenter -1)) | 5223 | (recenter -1)) |
| 5220 | (let ((scroll-in-place nil)) | 5224 | (prog1 |
| 5221 | (prog1 | 5225 | (condition-case () |
| 5222 | (condition-case () | 5226 | (let ((scroll-in-place nil)) |
| 5223 | (scroll-down lines) | 5227 | (scroll-down lines)) |
| 5224 | (beginning-of-buffer | 5228 | (beginning-of-buffer |
| 5225 | (goto-char (point-min)))) | 5229 | (goto-char (point-min)))) |
| 5226 | (gnus-article-beginning-of-window))))) | 5230 | (gnus-article-beginning-of-window)))) |
| 5227 | 5231 | ||
| 5228 | (defun gnus-article-only-boring-p () | 5232 | (defun gnus-article-only-boring-p () |
| 5229 | "Decide whether there is only boring text remaining in the article. | 5233 | "Decide whether there is only boring text remaining in the article. |