aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-08-12 10:28:48 +0000
committerEli Zaretskii2005-08-12 10:28:48 +0000
commit234d828a0611bef3b356c0c98d3cd130bb89773f (patch)
treeb6c39e7fd2b9fe164acb961ed42eeaab2edfd412
parent3deac4a169c603e81a31b60c4164ab5a152302ec (diff)
downloademacs-234d828a0611bef3b356c0c98d3cd130bb89773f.tar.gz
emacs-234d828a0611bef3b356c0c98d3cd130bb89773f.zip
(rmail-summary-end-of-message): New command to go to the bottom of the mail
message. Added to `rmail-summary-mode-map' with key "/". (rmail-summary-show-message): New (internal) function for use by both `rmail-summary-beginning/end-of-message'. (rmail-summary-beginning-of-message): Changed to use rmail-summary-show-message.
-rw-r--r--lisp/ChangeLog13
-rw-r--r--lisp/mail/rmailsum.el21
2 files changed, 32 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3ce16898592..205c0ef298d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,18 @@
12005-08-12 Ehud Karni <ehud@unix.mvs.co.il> 12005-08-12 Ehud Karni <ehud@unix.mvs.co.il>
2 2
3 * mail/rmailsum.el (rmail-summary-end-of-message): New command
4 to go to the bottom of the mail message. Added to
5 `rmail-summary-mode-map' with key "/".
6 (rmail-summary-show-message): New (internal) function for use by
7 both `rmail-summary-beginning/end-of-message'.
8 (rmail-summary-beginning-of-message): Changed to use
9 rmail-summary-show-message.
10
11 * mail/rmail.el (rmail-end-of-message): New command to go to the
12 end of the current message. Added to `rmail-mode-map' with key "/".
13 (rmail-beginning-of-message): Fixed to work as documented.
14 (rmail-mode): Change documentation.
15
3 * progmodes/compile.el (compilation-start): Add the line 16 * progmodes/compile.el (compilation-start): Add the line
4 "Compilation started" with compilation start time. 17 "Compilation started" with compilation start time.
5 (compilation-mode-font-lock-keywords): Add `started' to keywords. 18 (compilation-mode-font-lock-keywords): Add `started' to keywords.
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 84db530c6fc..129f3f48528 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -898,6 +898,7 @@ Search, the `unseen' attribute is restored.")
898 (define-key rmail-summary-mode-map "x" 'rmail-summary-expunge) 898 (define-key rmail-summary-mode-map "x" 'rmail-summary-expunge)
899 (define-key rmail-summary-mode-map "w" 'rmail-summary-output-body) 899 (define-key rmail-summary-mode-map "w" 'rmail-summary-output-body)
900 (define-key rmail-summary-mode-map "." 'rmail-summary-beginning-of-message) 900 (define-key rmail-summary-mode-map "." 'rmail-summary-beginning-of-message)
901 (define-key rmail-summary-mode-map "/" 'rmail-summary-end-of-message)
901 (define-key rmail-summary-mode-map "<" 'rmail-summary-first-message) 902 (define-key rmail-summary-mode-map "<" 'rmail-summary-first-message)
902 (define-key rmail-summary-mode-map ">" 'rmail-summary-last-message) 903 (define-key rmail-summary-mode-map ">" 'rmail-summary-last-message)
903 (define-key rmail-summary-mode-map " " 'rmail-summary-scroll-msg-up) 904 (define-key rmail-summary-mode-map " " 'rmail-summary-scroll-msg-up)
@@ -1185,6 +1186,16 @@ move to the previous message."
1185(defun rmail-summary-beginning-of-message () 1186(defun rmail-summary-beginning-of-message ()
1186 "Show current message from the beginning." 1187 "Show current message from the beginning."
1187 (interactive) 1188 (interactive)
1189 (rmail-summary-show-message 'BEG))
1190
1191(defun rmail-summary-end-of-message ()
1192 "Show bottom of current message."
1193 (interactive)
1194 (rmail-summary-show-message 'END))
1195
1196(defun rmail-summary-show-message (where)
1197 "Show current mail message.
1198Position it according to WHERE which can be BEG or END"
1188 (if (and (one-window-p) (not pop-up-frames)) 1199 (if (and (one-window-p) (not pop-up-frames))
1189 ;; If there is just one window, put the summary on the top. 1200 ;; If there is just one window, put the summary on the top.
1190 (let ((buffer rmail-view-buffer)) 1201 (let ((buffer rmail-view-buffer))
@@ -1196,8 +1207,14 @@ move to the previous message."
1196 (or (eq buffer (window-buffer (next-window (frame-first-window)))) 1207 (or (eq buffer (window-buffer (next-window (frame-first-window))))
1197 (delete-other-windows))) 1208 (delete-other-windows)))
1198 (pop-to-buffer rmail-view-buffer)) 1209 (pop-to-buffer rmail-view-buffer))
1199 (with-no-warnings 1210 (cond
1200 (beginning-of-buffer)) 1211 ((eq where 'BEG)
1212 (goto-char (point-min))
1213 (search-forward "\n\n"))
1214 ((eq where 'END)
1215 (goto-char (point-max))
1216 (recenter (1- (window-height))))
1217 )
1201 (pop-to-buffer rmail-summary-buffer)) 1218 (pop-to-buffer rmail-summary-buffer))
1202 1219
1203(defun rmail-summary-bury () 1220(defun rmail-summary-bury ()