changeset 57030:ed12a363c849

(list-buffers-noselect): Call format-mode-line with the buffer as argument.
author Richard M. Stallman <rms@gnu.org>
date Thu, 09 Sep 2004 01:34:59 +0000
parents eacc7685bff6
children 0730ef55b4d8
files lisp/buff-menu.el
diffstat 1 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/buff-menu.el	Thu Sep 09 01:30:38 2004 +0000
+++ b/lisp/buff-menu.el	Thu Sep 09 01:34:59 2004 +0000
@@ -638,14 +638,11 @@
 		  (mapcar
 		   (lambda (buffer)
 		     (with-current-buffer buffer
-		       (save-window-excursion
-			 (setq name (buffer-name)
-			       mode (progn
-				      (set-window-buffer (selected-window) buffer)
-				      (concat (format-mode-line mode-name)
-					      (if mode-line-process
-						  (format-mode-line mode-line-process))))
-			       file (buffer-file-name)))
+		       (setq name (buffer-name)
+			     mode (concat (format-mode-line mode-name nil nil buffer)
+					  (if mode-line-process
+					      (format-mode-line mode-line-process nil nil buffer)))
+			     file (buffer-file-name))
 		       (cond
 			;; Don't mention internal buffers.
 			((and (string= (substring name 0 1) " ") (null file)))