Commit b37767e7 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(rmail-summary-expunge-and-save): Do save-buffer last.

Use two separate save-excursion calls.
(rmail-summary-input): Use pop-to-buffer.
(rmail-summary-get-new-mail): Gobble rmail-current-message;
later go to that message.
(rmail-summary-next-msg): Start at end of line, if moving forward.
Move to beginning of line, after the loop.
(rmail-new-summary): Fix format of elt in minor-mode-alist.
parent 60f9aad3
......@@ -186,7 +186,7 @@ nil for FUNCTION means all messages."
(setq buffer-read-only t)
(make-local-variable 'minor-mode-alist)
(setq minor-mode-alist (list ": " description))
(setq minor-mode-alist (list '(t (concat ": " description))))
(setq rmail-buffer rbuf
rmail-summary-redo redo-form
rmail-total-messages total))))
......@@ -362,7 +362,7 @@ With optional prefix argument NUMBER, moves forward this number of non-deleted
messages, or backward if NUMBER is negative."
(interactive "p")
(forward-line 0)
(and (> number 0) (forward-line 1))
(and (> number 0) (end-of-line))
(let ((count (if (< number 0) (- number) number))
(search (if (> number 0) 're-search-forward 're-search-backward))
(non-del-msg-found nil))
......@@ -370,6 +370,7 @@ messages, or backward if NUMBER is negative."
(or (funcall search "^.....[^D]" nil t)
(setq count (1- count))))
(display-buffer rmail-buffer))
(defun rmail-summary-previous-msg (&optional number)
......@@ -677,24 +678,30 @@ Instead, all of the Rmail Mode commands are available, plus:
(set-buffer rmail-buffer)
(set-buffer rmail-buffer)
(defun rmail-summary-get-new-mail ()
"Get new mail and recompute summary headers."
(set-buffer rmail-buffer)
(let (msg)
(set-buffer rmail-buffer)
;; Get the proper new message number.
(setq msg rmail-current-message))
;; Make sure that message is displayed.
(rmail-summary-goto-msg msg)))
(defun rmail-summary-input (filename)
"Run Rmail on file FILENAME."
(interactive "FRun rmail on RMAIL file: ")
(set-buffer rmail-buffer)
(rmail filename)))
;; We switch windows here, then display the other Rmail file there.
(pop-to-buffer rmail-buffer)
(rmail filename))
(defun rmail-summary-first-message ()
"Show first message in Rmail file from summary buffer."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment