aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-07-13 00:57:31 +0000
committerKarl Heuer1996-07-13 00:57:31 +0000
commitd69006dfee6de646e2c80d3b3b3754d1cc6d139c (patch)
treec5bd84dd688c72d97c0f4b7a0069c4d2753cb6a9
parentd3e458b05384b5d7bd76a770815f012845165dc0 (diff)
downloademacs-d69006dfee6de646e2c80d3b3b3754d1cc6d139c.tar.gz
emacs-d69006dfee6de646e2c80d3b3b3754d1cc6d139c.zip
(rmail-summary-next-labeled-message)
(rmail-summary-previous-labeled-message): Call rmail-summary-goto-msg to move point in the summary.
-rw-r--r--lisp/mail/rmailsum.el18
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."
469 "Show next message with LABEL. Defaults to last labels used. 469 "Show next message with LABEL. Defaults to last labels used.
470With prefix argument N moves forward N messages with these labels." 470With prefix argument N moves forward N messages with these labels."
471 (interactive "p\nsMove to next msg with labels: ") 471 (interactive "p\nsMove to next msg with labels: ")
472 (save-excursion 472 (let (msg)
473 (set-buffer rmail-buffer) 473 (save-excursion
474 (rmail-next-labeled-message n labels))) 474 (set-buffer rmail-buffer)
475 (rmail-next-labeled-message n labels)
476 (setq msg rmail-current-message))
477 (rmail-summary-goto-msg msg)))
475 478
476(defun rmail-summary-previous-labeled-message (n labels) 479(defun rmail-summary-previous-labeled-message (n labels)
477 "Show previous message with LABEL. Defaults to last labels used. 480 "Show previous message with LABEL. Defaults to last labels used.
478With prefix argument N moves backward N messages with these labels." 481With prefix argument N moves backward N messages with these labels."
479 (interactive "p\nsMove to previous msg with labels: ") 482 (interactive "p\nsMove to previous msg with labels: ")
480 (save-excursion 483 (let (msg)
481 (set-buffer rmail-buffer) 484 (save-excursion
482 (rmail-previous-labeled-message n labels))) 485 (set-buffer rmail-buffer)
486 (rmail-previous-labeled-message n labels)
487 (setq msg rmail-current-message))
488 (rmail-summary-goto-msg msg)))
483 489
484(defun rmail-summary-next-same-subject (n) 490(defun rmail-summary-next-same-subject (n)
485 "Go to the next message in the summary having the same subject. 491 "Go to the next message in the summary having the same subject.