changeset 14940:9dceb7afbb68

(rmail-summary-scroll-between-messages): New var. (rmail-summary-scroll-msg-down, rmail-summary-scroll-msg-up): Obey that var.
author Richard M. Stallman <rms@gnu.org>
date Thu, 04 Apr 1996 17:01:45 +0000
parents c0e8ab5d23fc
children 7e8ee35d0fb9
files lisp/mail/rmailsum.el
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmailsum.el	Thu Apr 04 16:38:59 1996 +0000
+++ b/lisp/mail/rmailsum.el	Thu Apr 04 17:01:45 1996 +0000
@@ -33,6 +33,10 @@
 ;; For rmail-select-summary
 (require 'rmail)
 
+;;;###autoload
+(defvar rmail-summary-scroll-between-messages t
+  "*Non-nil means Rmail summary scroll commands move between messages.")
+
 (defvar rmail-summary-font-lock-keywords
   '(("^....D.*" . font-lock-string-face)			; Deleted.
     ("^....-.*" . font-lock-type-face)				; Unread.
@@ -994,7 +998,9 @@
 			(end-of-line)
 			(eobp)))
 		  (select-window rmail-summary-window)))
-	      (rmail-summary-next-msg (or dist 1))
+	      (if (not rmail-summary-scroll-between-messages)
+		  (error "End of buffer")
+		(rmail-summary-next-msg (or dist 1)))
 	    (let ((other-window-scroll-buffer rmail-buffer))
 	      (scroll-other-window dist)))
 	;; This forces rmail-buffer to be sized correctly later.
@@ -1019,7 +1025,9 @@
 		      (beginning-of-line)
 		      (bobp))
 		  (select-window rmail-summary-window)))
-	      (rmail-summary-previous-msg (or dist 1))
+	      (if (not rmail-summary-scroll-between-messages)
+		  (error "Beginning of buffer")
+		(rmail-summary-previous-msg (or dist 1)))
 	    (let ((other-window-scroll-buffer rmail-buffer))
 	      (scroll-other-window-down dist)))
 	;; This forces rmail-buffer to be sized correctly later.