(setq rmail-summary-buffer nil)
(save-excursion
(let ((rbuf (current-buffer))
+ (vbuf rmail-view-buffer)
(total rmail-total-messages))
(set-buffer sumbuf)
;; Set up the summary buffer's contents.
(make-local-variable 'minor-mode-alist)
(setq minor-mode-alist (list (list t (concat ": " description))))
(setq rmail-buffer rbuf
+ rmail-view-buffer vbuf
rmail-summary-redo redo-form
rmail-total-messages total))))
(setq rmail-summary-buffer sumbuf))
?\- ?\ )))
line))
+;;;###autoload
+(defvar rmail-summary-line-decoder (function identity)
+ "*Function to decode summary-line.
+
+By default, `identity' is set.")
+
(defun rmail-make-summary-line-1 (msg)
(goto-char (rmail-msgbeg msg))
(let* ((lim (save-excursion (forward-line 2) (point)))
(insert "Summary-line: " line)))
(setq pos (string-match "#" line))
(aset rmail-summary-vector (1- msg)
- (concat (format "%4d " msg)
- (substring line 0 pos)
- labels
- (substring line (1+ pos))))))
+ (funcall rmail-summary-line-decoder
+ (concat (format "%4d " msg)
+ (substring line 0 pos)
+ labels
+ (substring line (1+ pos)))))
+ ))
(defun rmail-make-basic-summary-line ()
(goto-char (point-min))
non-del-msg-found)))
(setq count (1- count))))
(beginning-of-line)
- (display-buffer rmail-buffer))
+ (display-buffer rmail-view-buffer)
+ )
(defun rmail-summary-previous-msg (&optional number)
(interactive "p")
(setq buffer-read-only t)
(set-syntax-table text-mode-syntax-table)
(make-local-variable 'rmail-buffer)
+ (make-local-variable 'rmail-view-buffer)
(make-local-variable 'rmail-total-messages)
(make-local-variable 'rmail-current-message)
(setq rmail-current-message nil)
(setq rmail-summary-put-back-unseen nil))
(or (eq rmail-current-message msg-num)
- (let ((window (get-buffer-window rmail-buffer))
+ (let ((window (get-buffer-window rmail-view-buffer))
(owin (selected-window)))
(if isearch-mode
(save-excursion
(interactive "P")
(if (eq dist '-)
(rmail-summary-scroll-msg-down nil)
- (let ((rmail-buffer-window (get-buffer-window rmail-buffer)))
+ (let ((rmail-buffer-window (get-buffer-window rmail-view-buffer)))
(if rmail-buffer-window
(if (let ((rmail-summary-window (selected-window)))
(select-window rmail-buffer-window)
(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))
+ (let ((other-window-scroll-buffer rmail-view-buffer))
(scroll-other-window dist)))
;; If it isn't visible at all, show the beginning.
(rmail-summary-beginning-of-message)))))