changeset 105888:de6b45f6c427

* mail/rmailsum.el (rmail-summary-rmail-update): Call linum-update by hand, if necessary (Bug#4878).
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 07 Nov 2009 18:09:05 +0000
parents c17b71571661
children f47d28b0dece
files lisp/ChangeLog lisp/mail/rmailsum.el
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Nov 06 19:15:25 2009 +0000
+++ b/lisp/ChangeLog	Sat Nov 07 18:09:05 2009 +0000
@@ -1,3 +1,8 @@
+2009-11-07  Chong Yidong  <cyd@stupidchicken.com>
+
+	* mail/rmailsum.el (rmail-summary-rmail-update): Call linum-update
+	by hand, if necessary (Bug#4878).
+
 2009-11-06  Chong Yidong  <cyd@stupidchicken.com>
 
 	* buff-menu.el (Buffer-menu-buffer+size): Use display property to
--- a/lisp/mail/rmailsum.el	Fri Nov 06 19:15:25 2009 +0000
+++ b/lisp/mail/rmailsum.el	Sat Nov 07 18:09:05 2009 +0000
@@ -965,7 +965,12 @@
 		    (select-window owin))
 		(if (buffer-name rmail-buffer)
 		    (with-current-buffer rmail-buffer
-		      (rmail-show-message msg-num t))))))
+		      (rmail-show-message msg-num t))))
+	      ;; In linum mode, the message buffer must be specially
+	      ;; updated (Bug#4878).
+	      (and (fboundp 'linum-update)
+		   (buffer-name rmail-buffer)
+		   (linum-update rmail-buffer))))
 	(rmail-summary-update-highlight nil)))))
 
 (defun rmail-summary-save-buffer ()