changeset 88304:cbad6e7dbf09

(rmail-next-message): Don't Call rmail-maybe-set-message-counters. Use with-current-buffer.
author Henrik Enberg <henrik.enberg@telia.com>
date Mon, 30 Jan 2006 21:24:42 +0000
parents e70350ac56a3
children 7d98f9b9bb70
files lisp/mail/rmail.el
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Mon Jan 30 11:31:22 2006 +0000
+++ b/lisp/mail/rmail.el	Mon Jan 30 21:24:42 2006 +0000
@@ -2280,9 +2280,8 @@
 With prefix arg N, moves forward N messages, or backward if N is
 negative."
   (interactive "p")
-  (set-buffer rmail-buffer)
-  (rmail-maybe-set-message-counters)
-  (rmail-show-message (+ rmail-current-message n)))
+  (with-current-buffer rmail-buffer
+    (rmail-show-message (+ rmail-current-message n))))
 
 (defun rmail-previous-message (n)
   "Show previous message whether deleted or not.