# HG changeset patch # User Eli Zaretskii # Date 1089983641 0 # Node ID bc9ffd7cc15c44f7237db11e298c9f9c2677890d # Parent a11286d6cf944c1313a1b869bd768b9730d86d9f (list-buffers-noselect): Append the buffer's process status to its mode name. diff -r a11286d6cf94 -r bc9ffd7cc15c lisp/buff-menu.el --- a/lisp/buff-menu.el Fri Jul 16 10:42:43 2004 +0000 +++ b/lisp/buff-menu.el Fri Jul 16 13:14:01 2004 +0000 @@ -613,7 +613,7 @@ " " (Buffer-menu-make-sort-button "Mode" 4) mode-end (Buffer-menu-make-sort-button "File" 5) "\n")) - list desired-point name file) + list desired-point name mode file) (when Buffer-menu-use-header-line (let ((pos 0)) ;; Turn spaces in the header into stretch specs so they work @@ -638,8 +638,14 @@ (mapcar (lambda (buffer) (with-current-buffer buffer - (setq name (buffer-name) - file (buffer-file-name)) + (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))) (cond ;; Don't mention internal buffers. ((and (string= (substring name 0 1) " ") (null file))) @@ -665,7 +671,7 @@ ?% ? ) ;; Identify modified buffers. (if (buffer-modified-p) ?* ? )) - name (buffer-size) mode-name file))))) + name (buffer-size) mode file))))) (buffer-list)))) (dolist (buffer (if Buffer-menu-sort-column