]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-next-message): Don't Call
authorHenrik Enberg <henrik.enberg@telia.com>
Mon, 30 Jan 2006 21:25:07 +0000 (21:25 +0000)
committerHenrik Enberg <henrik.enberg@telia.com>
Mon, 30 Jan 2006 21:25:07 +0000 (21:25 +0000)
rmail-maybe-set-message-counters. Use with-current-buffer.

lisp/mail/ChangeLog
lisp/mail/rmail.el

index 4767387341d32c9ec7ae295e6b11a142be19fcb3..69d6c37e0f9d7873ea68300c319613976fa92730 100644 (file)
@@ -1,5 +1,8 @@
 2006-01-30  Henrik Enberg  <enberg@printf.se>
 
+       * rmail.el (rmail-next-message): Don't Call
+       rmail-maybe-set-message-counters. Use with-current-buffer.
+
        * rmailkwd.el (rmail-next-labeled-message): Don't call
        rmail-maybe-set-message-counters.  Use with-current-buffer.
 
index 7af14d3d79f09c5472a9da2765f25c8b09de048a..2448d323fad00c94dc731fb1cbe74a258af1a779 100644 (file)
@@ -2280,9 +2280,8 @@ Called when a new message is displayed."
 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.