aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-11-14 01:09:03 -0800
committerGlenn Morris2011-11-14 01:09:03 -0800
commit071c2340fd8a6018df4a370ada5429a7d47b7c9f (patch)
tree92da29cc01b20a2071a82ee9cca3dcf5d3833cb6
parent09e80d9fb9fe7239d0fa301973920845831366d3 (diff)
downloademacs-071c2340fd8a6018df4a370ada5429a7d47b7c9f.tar.gz
emacs-071c2340fd8a6018df4a370ada5429a7d47b7c9f.zip
* 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.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/mail/rmailsum.el3
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 65ab83e0204..b1bdd977551 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -4,6 +4,8 @@
4 (executable-make-buffer-file-executable-if-script-p): 4 (executable-make-buffer-file-executable-if-script-p):
5 Handle file-modes returning nil. 5 Handle file-modes returning nil.
6 6
7 * mail/rmailsum.el (rmail-new-summary): Preserve message number.
8
7 * mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator. 9 * mail/rmail.el (rmail-no-mail-p): Remove mode-line N/M indicator.
8 10
9 * mail/rmailsum.el (rmail-summary, rmail-new-summary) 11 * mail/rmailsum.el (rmail-summary, rmail-new-summary)
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index b95651d3b69..70d9fc653c5 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -411,7 +411,8 @@ nil for FUNCTION means all messages."
411 (with-current-buffer rmail-buffer 411 (with-current-buffer rmail-buffer
412 (setq rmail-summary-buffer (rmail-new-summary-1 desc redo func args) 412 (setq rmail-summary-buffer (rmail-new-summary-1 desc redo func args)
413 ;; r-s-b is buffer-local. 413 ;; r-s-b is buffer-local.
414 sumbuf rmail-summary-buffer)) 414 sumbuf rmail-summary-buffer
415 mesg rmail-current-message))
415 ;; Now display the summary buffer and go to the right place in it. 416 ;; Now display the summary buffer and go to the right place in it.
416 (unless was-in-summary 417 (unless was-in-summary
417 (if (and (one-window-p) 418 (if (and (one-window-p)