diff options
| author | Miles Bader | 2008-08-12 16:01:05 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-08-12 16:01:05 +0000 |
| commit | 9153f10d0d9921246a2bbb2f6e284c6346b63d18 (patch) | |
| tree | 6b50264d0c378eea8527c18461598f95aadbb9a9 | |
| parent | ac3232837188f7e1c4ffe34b76edede0ccb54f5e (diff) | |
| download | emacs-9153f10d0d9921246a2bbb2f6e284c6346b63d18.tar.gz emacs-9153f10d0d9921246a2bbb2f6e284c6346b63d18.zip | |
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1376
| -rw-r--r-- | lisp/gnus/ChangeLog | 18 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 33 | ||||
| -rw-r--r-- | lisp/gnus/gnus-msg.el | 5 |
3 files changed, 37 insertions, 19 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 23477cc631a..af50f4bd4b3 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,21 @@ | |||
| 1 | 2008-08-11 Ralf Angeli <angeli@caeruleus.net> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-article-next-page): Respect `scroll-margin' when | ||
| 4 | moving point to the bottom of the window in order to avoid recentering. | ||
| 5 | |||
| 6 | 2008-08-11 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 7 | |||
| 8 | * gnus-art.el (gnus-article-next-page, gnus-article-prev-page) | ||
| 9 | (gnus-article-next-page-1): Use compiler directive (featurep 'xemacs). | ||
| 10 | (gnus-article-beginning-of-window): Fix calculation. | ||
| 11 | |||
| 12 | 2008-08-08 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 13 | |||
| 14 | * gnus-msg.el (gnus-summary-supersede-article) | ||
| 15 | (gnus-summary-resend-message-edit): Bind mail-parse-charset to the | ||
| 16 | value of gnus-newsgroup-charset to decode non-MIME encoded text in | ||
| 17 | message header. | ||
| 18 | |||
| 1 | 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu> | 19 | 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 20 | ||
| 3 | * message.el: | 21 | * message.el: |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 3d5ce9b39cc..a8ca34386f1 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -6113,13 +6113,12 @@ If given a numerical ARG, move forward ARG pages." | |||
| 6113 | If end of article, return non-nil. Otherwise return nil. | 6113 | If end of article, return non-nil. Otherwise return nil. |
| 6114 | Argument LINES specifies lines to be scrolled up." | 6114 | Argument LINES specifies lines to be scrolled up." |
| 6115 | (interactive "p") | 6115 | (interactive "p") |
| 6116 | (move-to-window-line -1) | 6116 | (move-to-window-line (if (featurep 'xemacs) -1 (- -1 scroll-margin))) |
| 6117 | (if (and (not (and gnus-article-over-scroll | 6117 | (if (and (not (and gnus-article-over-scroll |
| 6118 | (> (count-lines (window-start) (point-max)) | 6118 | (> (count-lines (window-start) (point-max)) |
| 6119 | (+ (or lines (1- (window-height))) | 6119 | (if (featurep 'xemacs) |
| 6120 | (or (and (boundp 'scroll-margin) | 6120 | (or lines (1- (window-height))) |
| 6121 | (symbol-value 'scroll-margin)) | 6121 | (+ (or lines (1- (window-height))) scroll-margin))))) |
| 6122 | 0))))) | ||
| 6123 | (save-excursion | 6122 | (save-excursion |
| 6124 | (end-of-line) | 6123 | (end-of-line) |
| 6125 | (and (pos-visible-in-window-p) ;Not continuation line. | 6124 | (and (pos-visible-in-window-p) ;Not continuation line. |
| @@ -6151,19 +6150,19 @@ specifies." | |||
| 6151 | (min (max 0 scroll-margin) | 6150 | (min (max 0 scroll-margin) |
| 6152 | (max 1 (- (window-height) | 6151 | (max 1 (- (window-height) |
| 6153 | (if mode-line-format 1 0) | 6152 | (if mode-line-format 1 0) |
| 6154 | (if header-line-format 1 0))))))) | 6153 | (if header-line-format 1 0) |
| 6154 | 2)))))) | ||
| 6155 | 6155 | ||
| 6156 | (defun gnus-article-next-page-1 (lines) | 6156 | (defun gnus-article-next-page-1 (lines) |
| 6157 | (when (and (not (featurep 'xemacs)) | 6157 | (unless (featurep 'xemacs) |
| 6158 | (numberp lines) | ||
| 6159 | (> lines 0) | ||
| 6160 | (numberp (symbol-value 'scroll-margin)) | ||
| 6161 | (> (symbol-value 'scroll-margin) 0)) | ||
| 6162 | ;; Protect against the bug that Emacs 21.x hangs up when scrolling up for | 6158 | ;; Protect against the bug that Emacs 21.x hangs up when scrolling up for |
| 6163 | ;; too many number of lines if `scroll-margin' is set as two or greater. | 6159 | ;; too many number of lines if `scroll-margin' is set as two or greater. |
| 6164 | (setq lines (min lines | 6160 | (when (and (numberp lines) |
| 6165 | (max 0 (- (count-lines (window-start) (point-max)) | 6161 | (> lines 0) |
| 6166 | (symbol-value 'scroll-margin)))))) | 6162 | (> scroll-margin 0)) |
| 6163 | (setq lines (min lines | ||
| 6164 | (max 0 (- (count-lines (window-start) (point-max)) | ||
| 6165 | scroll-margin)))))) | ||
| 6167 | (condition-case () | 6166 | (condition-case () |
| 6168 | (let ((scroll-in-place nil)) | 6167 | (let ((scroll-in-place nil)) |
| 6169 | (scroll-up lines)) | 6168 | (scroll-up lines)) |
| @@ -6185,9 +6184,9 @@ Argument LINES specifies lines to be scrolled down." | |||
| 6185 | (goto-char (point-max)) | 6184 | (goto-char (point-max)) |
| 6186 | (recenter (if gnus-article-over-scroll | 6185 | (recenter (if gnus-article-over-scroll |
| 6187 | (if lines | 6186 | (if lines |
| 6188 | (max (+ lines (or (and (boundp 'scroll-margin) | 6187 | (max (if (featurep 'xemacs) |
| 6189 | (symbol-value 'scroll-margin)) | 6188 | lines |
| 6190 | 0)) | 6189 | (+ lines scroll-margin)) |
| 6191 | 3) | 6190 | 3) |
| 6192 | (- (window-height) 2)) | 6191 | (- (window-height) 2)) |
| 6193 | -1))) | 6192 | -1))) |
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el index 77210e95b9b..555b6a0490d 100644 --- a/lisp/gnus/gnus-msg.el +++ b/lisp/gnus/gnus-msg.el | |||
| @@ -812,7 +812,8 @@ post using the current select method." | |||
| 812 | This is done simply by taking the old article and adding a Supersedes | 812 | This is done simply by taking the old article and adding a Supersedes |
| 813 | header line with the old Message-ID." | 813 | header line with the old Message-ID." |
| 814 | (interactive) | 814 | (interactive) |
| 815 | (let ((article (gnus-summary-article-number))) | 815 | (let ((article (gnus-summary-article-number)) |
| 816 | (mail-parse-charset gnus-newsgroup-charset)) | ||
| 816 | (gnus-setup-message 'reply-yank | 817 | (gnus-setup-message 'reply-yank |
| 817 | (gnus-summary-select-article t) | 818 | (gnus-summary-select-article t) |
| 818 | (set-buffer gnus-original-article-buffer) | 819 | (set-buffer gnus-original-article-buffer) |
| @@ -1274,7 +1275,7 @@ A new buffer will be created to allow the user to modify body and | |||
| 1274 | contents of the message, and then, everything will happen as when | 1275 | contents of the message, and then, everything will happen as when |
| 1275 | composing a new message." | 1276 | composing a new message." |
| 1276 | (interactive) | 1277 | (interactive) |
| 1277 | (let ((article (gnus-summary-article-number))) | 1278 | (let ((mail-parse-charset gnus-newsgroup-charset)) |
| 1278 | (gnus-setup-message 'reply-yank | 1279 | (gnus-setup-message 'reply-yank |
| 1279 | (gnus-summary-select-article t) | 1280 | (gnus-summary-select-article t) |
| 1280 | (set-buffer gnus-original-article-buffer) | 1281 | (set-buffer gnus-original-article-buffer) |