aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/mail/rmailsum.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 7cfe5d53c15..1be1e14fae6 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -33,6 +33,10 @@
33;; For rmail-select-summary 33;; For rmail-select-summary
34(require 'rmail) 34(require 'rmail)
35 35
36;;;###autoload
37(defvar rmail-summary-scroll-between-messages t
38 "*Non-nil means Rmail summary scroll commands move between messages.")
39
36(defvar rmail-summary-font-lock-keywords 40(defvar rmail-summary-font-lock-keywords
37 '(("^....D.*" . font-lock-string-face) ; Deleted. 41 '(("^....D.*" . font-lock-string-face) ; Deleted.
38 ("^....-.*" . font-lock-type-face) ; Unread. 42 ("^....-.*" . font-lock-type-face) ; Unread.
@@ -994,7 +998,9 @@ advance to the next message."
994 (end-of-line) 998 (end-of-line)
995 (eobp))) 999 (eobp)))
996 (select-window rmail-summary-window))) 1000 (select-window rmail-summary-window)))
997 (rmail-summary-next-msg (or dist 1)) 1001 (if (not rmail-summary-scroll-between-messages)
1002 (error "End of buffer")
1003 (rmail-summary-next-msg (or dist 1)))
998 (let ((other-window-scroll-buffer rmail-buffer)) 1004 (let ((other-window-scroll-buffer rmail-buffer))
999 (scroll-other-window dist))) 1005 (scroll-other-window dist)))
1000 ;; This forces rmail-buffer to be sized correctly later. 1006 ;; This forces rmail-buffer to be sized correctly later.
@@ -1019,7 +1025,9 @@ advance to the previous message."
1019 (beginning-of-line) 1025 (beginning-of-line)
1020 (bobp)) 1026 (bobp))
1021 (select-window rmail-summary-window))) 1027 (select-window rmail-summary-window)))
1022 (rmail-summary-previous-msg (or dist 1)) 1028 (if (not rmail-summary-scroll-between-messages)
1029 (error "Beginning of buffer")
1030 (rmail-summary-previous-msg (or dist 1)))
1023 (let ((other-window-scroll-buffer rmail-buffer)) 1031 (let ((other-window-scroll-buffer rmail-buffer))
1024 (scroll-other-window-down dist))) 1032 (scroll-other-window-down dist)))
1025 ;; This forces rmail-buffer to be sized correctly later. 1033 ;; This forces rmail-buffer to be sized correctly later.