diff options
| author | Eli Zaretskii | 2005-08-12 10:26:59 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-08-12 10:26:59 +0000 |
| commit | 3deac4a169c603e81a31b60c4164ab5a152302ec (patch) | |
| tree | 1e8b32efab6e7f0630de952d74ac27bb99aa47a1 | |
| parent | a67e5425b3c4e7160f2fbb1852e7b013d1b54ddf (diff) | |
| download | emacs-3deac4a169c603e81a31b60c4164ab5a152302ec.tar.gz emacs-3deac4a169c603e81a31b60c4164ab5a152302ec.zip | |
(rmail-end-of-message): New command to go to the
end of the current message. Added to `rmail-mode-map' with key "/".
(rmail-beginning-of-message): Fixed to work as documented.
(rmail-mode): Change documentation.
| -rw-r--r-- | lisp/mail/rmail.el | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 06bbb23d399..e59877eb5f6 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -952,6 +952,7 @@ Note: it means the file has no messages in it.\n\^_"))) | |||
| 952 | (define-key rmail-mode-map "w" 'rmail-output-body-to-file) | 952 | (define-key rmail-mode-map "w" 'rmail-output-body-to-file) |
| 953 | (define-key rmail-mode-map "x" 'rmail-expunge) | 953 | (define-key rmail-mode-map "x" 'rmail-expunge) |
| 954 | (define-key rmail-mode-map "." 'rmail-beginning-of-message) | 954 | (define-key rmail-mode-map "." 'rmail-beginning-of-message) |
| 955 | (define-key rmail-mode-map "/" 'rmail-end-of-message) | ||
| 955 | (define-key rmail-mode-map "<" 'rmail-first-message) | 956 | (define-key rmail-mode-map "<" 'rmail-first-message) |
| 956 | (define-key rmail-mode-map ">" 'rmail-last-message) | 957 | (define-key rmail-mode-map ">" 'rmail-last-message) |
| 957 | (define-key rmail-mode-map " " 'scroll-up) | 958 | (define-key rmail-mode-map " " 'scroll-up) |
| @@ -1096,7 +1097,8 @@ Note: it means the file has no messages in it.\n\^_"))) | |||
| 1096 | All normal editing commands are turned off. | 1097 | All normal editing commands are turned off. |
| 1097 | Instead, these commands are available: | 1098 | Instead, these commands are available: |
| 1098 | 1099 | ||
| 1099 | \\[rmail-beginning-of-message] Move point to front of this message (same as \\[beginning-of-buffer]). | 1100 | \\[rmail-beginning-of-message] Move point to front of this message. |
| 1101 | \\[rmail-end-of-message] Move point to bottom of this message. | ||
| 1100 | \\[scroll-up] Scroll to next screen of this message. | 1102 | \\[scroll-up] Scroll to next screen of this message. |
| 1101 | \\[scroll-down] Scroll to previous screen of this message. | 1103 | \\[scroll-down] Scroll to previous screen of this message. |
| 1102 | \\[rmail-next-undeleted-message] Move to Next non-deleted message. | 1104 | \\[rmail-next-undeleted-message] Move to Next non-deleted message. |
| @@ -2604,7 +2606,19 @@ change the invisible header text." | |||
| 2604 | (defun rmail-beginning-of-message () | 2606 | (defun rmail-beginning-of-message () |
| 2605 | "Show current message starting from the beginning." | 2607 | "Show current message starting from the beginning." |
| 2606 | (interactive) | 2608 | (interactive) |
| 2607 | (rmail-show-message rmail-current-message)) | 2609 | (let ((rmail-show-message-hook |
| 2610 | (list (function (lambda () | ||
| 2611 | (goto-char (point-min))))))) | ||
| 2612 | (rmail-show-message rmail-current-message))) | ||
| 2613 | |||
| 2614 | (defun rmail-end-of-message () | ||
| 2615 | "Show bottom of current message." | ||
| 2616 | (interactive) | ||
| 2617 | (let ((rmail-show-message-hook | ||
| 2618 | (list (function (lambda () | ||
| 2619 | (goto-char (point-max)) | ||
| 2620 | (recenter (1- (window-height)))))))) | ||
| 2621 | (rmail-show-message rmail-current-message))) | ||
| 2608 | 2622 | ||
| 2609 | (defun rmail-unknown-mail-followup-to () | 2623 | (defun rmail-unknown-mail-followup-to () |
| 2610 | "Handle a \"Mail-Followup-To\" header field with an unknown mailing list. | 2624 | "Handle a \"Mail-Followup-To\" header field with an unknown mailing list. |