diff options
author | Karl Heuer <kwzh@gnu.org> | 1996-07-13 00:57:31 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1996-07-13 00:57:31 +0000 |
commit | d69006dfee6de646e2c80d3b3b3754d1cc6d139c (patch) | |
tree | c5bd84dd688c72d97c0f4b7a0069c4d2753cb6a9 /lisp/mail | |
parent | d3e458b05384b5d7bd76a770815f012845165dc0 (diff) | |
download | emacs-d69006dfee6de646e2c80d3b3b3754d1cc6d139c.tar.gz |
(rmail-summary-next-labeled-message)
(rmail-summary-previous-labeled-message):
Call rmail-summary-goto-msg to move point in the summary.
Diffstat (limited to 'lisp/mail')
-rw-r--r-- | lisp/mail/rmailsum.el | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index f9152447733..b8637ce20ab 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el @@ -469,17 +469,23 @@ messages, or backward if NUMBER is negative." "Show next message with LABEL. Defaults to last labels used. With prefix argument N moves forward N messages with these labels." (interactive "p\nsMove to next msg with labels: ") - (save-excursion - (set-buffer rmail-buffer) - (rmail-next-labeled-message n labels))) + (let (msg) + (save-excursion + (set-buffer rmail-buffer) + (rmail-next-labeled-message n labels) + (setq msg rmail-current-message)) + (rmail-summary-goto-msg msg))) (defun rmail-summary-previous-labeled-message (n labels) "Show previous message with LABEL. Defaults to last labels used. With prefix argument N moves backward N messages with these labels." (interactive "p\nsMove to previous msg with labels: ") - (save-excursion - (set-buffer rmail-buffer) - (rmail-previous-labeled-message n labels))) + (let (msg) + (save-excursion + (set-buffer rmail-buffer) + (rmail-previous-labeled-message n labels) + (setq msg rmail-current-message)) + (rmail-summary-goto-msg msg))) (defun rmail-summary-next-same-subject (n) "Go to the next message in the summary having the same subject. |