aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2004-07-16 13:15:09 +0000
committerEli Zaretskii2004-07-16 13:15:09 +0000
commitb6fdd1efe6c347beda90d7d37bda4daf2b612727 (patch)
tree17e4ba22edf90708115f392c75989c3ba04e93b0
parentf9253326af7800854e57e82d0a4b66529664dc2c (diff)
downloademacs-b6fdd1efe6c347beda90d7d37bda4daf2b612727.tar.gz
emacs-b6fdd1efe6c347beda90d7d37bda4daf2b612727.zip
(list-buffers-noselect): Append the buffer's process status to its mode name.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/buff-menu.el14
2 files changed, 15 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8bd1b75edf3..6b2d3eb4145 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12004-07-16 Stephan Stahl <stahl@eos.franken.de> (tiny change)
2
3 * buff-menu.el (list-buffers-noselect): Append the buffer's
4 process status to its mode name.
5
12004-07-16 Kim F. Storm <storm@cua.dk> 62004-07-16 Kim F. Storm <storm@cua.dk>
2 7
3 * simple.el (inhibit-mark-movement): New defvar. 8 * simple.el (inhibit-mark-movement): New defvar.
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index da1c8ed586e..1ccaab1c6a3 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -613,7 +613,7 @@ For more information, see the function `buffer-menu'."
613 " " 613 " "
614 (Buffer-menu-make-sort-button "Mode" 4) mode-end 614 (Buffer-menu-make-sort-button "Mode" 4) mode-end
615 (Buffer-menu-make-sort-button "File" 5) "\n")) 615 (Buffer-menu-make-sort-button "File" 5) "\n"))
616 list desired-point name file) 616 list desired-point name mode file)
617 (when Buffer-menu-use-header-line 617 (when Buffer-menu-use-header-line
618 (let ((pos 0)) 618 (let ((pos 0))
619 ;; Turn spaces in the header into stretch specs so they work 619 ;; Turn spaces in the header into stretch specs so they work
@@ -638,8 +638,14 @@ For more information, see the function `buffer-menu'."
638 (mapcar 638 (mapcar
639 (lambda (buffer) 639 (lambda (buffer)
640 (with-current-buffer buffer 640 (with-current-buffer buffer
641 (setq name (buffer-name) 641 (save-window-excursion
642 file (buffer-file-name)) 642 (setq name (buffer-name)
643 mode (progn
644 (set-window-buffer (selected-window) buffer)
645 (concat (format-mode-line mode-name)
646 (if mode-line-process
647 (format-mode-line mode-line-process))))
648 file (buffer-file-name)))
643 (cond 649 (cond
644 ;; Don't mention internal buffers. 650 ;; Don't mention internal buffers.
645 ((and (string= (substring name 0 1) " ") (null file))) 651 ((and (string= (substring name 0 1) " ") (null file)))
@@ -665,7 +671,7 @@ For more information, see the function `buffer-menu'."
665 ?% ? ) 671 ?% ? )
666 ;; Identify modified buffers. 672 ;; Identify modified buffers.
667 (if (buffer-modified-p) ?* ? )) 673 (if (buffer-modified-p) ?* ? ))
668 name (buffer-size) mode-name file))))) 674 name (buffer-size) mode file)))))
669 (buffer-list)))) 675 (buffer-list))))
670 (dolist (buffer 676 (dolist (buffer
671 (if Buffer-menu-sort-column 677 (if Buffer-menu-sort-column