Mercurial > emacs
comparison lisp/gnus/gnus-art.el @ 90203:187d6a1f84f7
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-71
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 485-492)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 92-94)
- Merge from emacs--cvs-trunk--0
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 22 Jul 2005 08:27:27 +0000 |
parents | fbb2bea03df9 722ca9969d93 |
children | 890cc78a5a24 |
comparison
equal
deleted
inserted
replaced
90202:7597b4a23c3b | 90203:187d6a1f84f7 |
---|---|
5158 (defun gnus-article-next-page (&optional lines) | 5158 (defun gnus-article-next-page (&optional lines) |
5159 "Show the next page of the current article. | 5159 "Show the next page of the current article. |
5160 If end of article, return non-nil. Otherwise return nil. | 5160 If end of article, return non-nil. Otherwise return nil. |
5161 Argument LINES specifies lines to be scrolled up." | 5161 Argument LINES specifies lines to be scrolled up." |
5162 (interactive "p") | 5162 (interactive "p") |
5163 (move-to-window-line (max (- -1 scroll-margin) (- -1 (window-body-height)))) | 5163 (gnus-end-of-window) |
5164 (if (save-excursion | 5164 (if (save-excursion |
5165 (end-of-line) | 5165 (end-of-line) |
5166 (and (pos-visible-in-window-p) ;Not continuation line. | 5166 (and (pos-visible-in-window-p) ;Not continuation line. |
5167 (>= (1+ (point)) (point-max)))) ;Allow for trailing newline. | 5167 (>= (1+ (point)) (point-max)))) ;Allow for trailing newline. |
5168 ;; Nothing in this page. | 5168 ;; Nothing in this page. |
5187 (condition-case () | 5187 (condition-case () |
5188 (scroll-up lines) | 5188 (scroll-up lines) |
5189 (end-of-buffer | 5189 (end-of-buffer |
5190 ;; Long lines may cause an end-of-buffer error. | 5190 ;; Long lines may cause an end-of-buffer error. |
5191 (goto-char (point-max))))) | 5191 (goto-char (point-max))))) |
5192 (move-to-window-line (min scroll-margin (window-body-height)))) | 5192 (gnus-beginning-of-window)) |
5193 | 5193 |
5194 (defun gnus-article-prev-page (&optional lines) | 5194 (defun gnus-article-prev-page (&optional lines) |
5195 "Show previous page of current article. | 5195 "Show previous page of current article. |
5196 Argument LINES specifies lines to be scrolled down." | 5196 Argument LINES specifies lines to be scrolled down." |
5197 (interactive "p") | 5197 (interactive "p") |
5198 (move-to-window-line (min scroll-margin (window-body-height))) | 5198 (gnus-beginning-of-window) |
5199 (if (and gnus-page-broken | 5199 (if (and gnus-page-broken |
5200 (bobp) | 5200 (bobp) |
5201 (not (save-restriction (widen) (bobp)))) ;Real beginning-of-buffer? | 5201 (not (save-restriction (widen) (bobp)))) ;Real beginning-of-buffer? |
5202 (progn | 5202 (progn |
5203 (gnus-narrow-to-page -1) ;Go to previous page. | 5203 (gnus-narrow-to-page -1) ;Go to previous page. |
5207 (prog1 | 5207 (prog1 |
5208 (condition-case () | 5208 (condition-case () |
5209 (scroll-down lines) | 5209 (scroll-down lines) |
5210 (beginning-of-buffer | 5210 (beginning-of-buffer |
5211 (goto-char (point-min)))) | 5211 (goto-char (point-min)))) |
5212 (move-to-window-line (min scroll-margin (window-body-height))))))) | 5212 (gnus-beginning-of-window))))) |
5213 | 5213 |
5214 (defun gnus-article-only-boring-p () | 5214 (defun gnus-article-only-boring-p () |
5215 "Decide whether there is only boring text remaining in the article. | 5215 "Decide whether there is only boring text remaining in the article. |
5216 Something \"interesting\" is a word of at least two letters that does | 5216 Something \"interesting\" is a word of at least two letters that does |
5217 not have a face in `gnus-article-boring-faces'." | 5217 not have a face in `gnus-article-boring-faces'." |