Commit 071c2340 authored by Glenn Morris's avatar Glenn Morris

* mail/rmailsum.el (rmail-new-summary): Preserve message number.

Nothing was setting the local variable `mesg'.
Eg when looking at message 10, pressing h to get a summary would
send you to message 1.
parent 09e80d9f
......@@ -4,6 +4,8 @@
(executable-make-buffer-file-executable-if-script-p):
Handle file-modes returning nil.
* mail/rmailsum.el (rmail-new-summary): Preserve message number.
* mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.
* mail/rmailsum.el (rmail-summary, rmail-new-summary)
......
......@@ -411,7 +411,8 @@ nil for FUNCTION means all messages."
(with-current-buffer rmail-buffer
(setq rmail-summary-buffer (rmail-new-summary-1 desc redo func args)
;; r-s-b is buffer-local.
sumbuf rmail-summary-buffer))
sumbuf rmail-summary-buffer
mesg rmail-current-message))
;; Now display the summary buffer and go to the right place in it.
(unless was-in-summary
(if (and (one-window-p)
......
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