unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stephan Stahl <stahl@eos.franken.de>
Cc: emacs-devel@gnu.org
Subject: Re: M-x compile should tell its status (a little bit better)..
Date: 11 Jul 2004 03:43:50 +0200	[thread overview]
Message-ID: <87hdsfl3mx.fsf@eos.franken.de> (raw)
In-Reply-To: <408E8DBB.9050409@yahoo.com>

Hi Kevin.

Kevin Rodgers <ihs_4664@yahoo.com> writes:

> I think a better change would be to include mode-line-process in the
> *Buffer List* buffer:
> 
> 
> 2004-04-27  Kevin Rodgers  <ihs_4664@yahoo.com>
> 
> 	* buff-menu.el (list-buffers-noselect): Append the buffer's
> 	  process status to its mode name.

I tried to "port" your change to cvs emacs. I really like this
addition so maybe someone wants to include it in cvs emacs.

diff -c buff-menu.el.\~1.66.\~ buff-menu.el
*** buff-menu.el.~1.66.~	Thu Apr  1 03:23:36 2004
--- buff-menu.el	Sun Jul 11 03:37:11 2004
***************
*** 613,619 ****
  			 "  "
  			 (Buffer-menu-make-sort-button "Mode" 4) mode-end
  			 (Buffer-menu-make-sort-button "File" 5) "\n"))
! 	 list desired-point name file)
      (when Buffer-menu-use-header-line
        (let ((pos 0))
  	;; Turn spaces in the header into stretch specs so they work
--- 613,619 ----
  			 "  "
  			 (Buffer-menu-make-sort-button "Mode" 4) mode-end
  			 (Buffer-menu-make-sort-button "File" 5) "\n"))
! 	 list desired-point name process mode file)
      (when Buffer-menu-use-header-line
        (let ((pos 0))
  	;; Turn spaces in the header into stretch specs so they work
***************
*** 639,645 ****
  		   (lambda (buffer)
  		     (with-current-buffer buffer
  		       (setq name (buffer-name)
! 			     file (buffer-file-name))
  		       (cond
  			;; Don't mention internal buffers.
  			((and (string= (substring name 0 1) " ") (null file)))
--- 639,657 ----
  		   (lambda (buffer)
  		     (with-current-buffer buffer
  		       (setq name (buffer-name)
! 			     process (get-buffer-process buffer)
! 			     mode (concat mode-name
! 					  ;; is there a way to convert
! 					  ;; an arbitrary mode-line-format
! 					  ;; element to a string?
! 					  (cond ((stringp mode-line-process)
! 						 mode-line-process)
! 						(process ; emulate (":%s")
! 						 (concat ":"
! 							 (symbol-name
! 							  (process-status
! 							   process))))))
! 		       file (buffer-file-name))
  		       (cond
  			;; Don't mention internal buffers.
  			((and (string= (substring name 0 1) " ") (null file)))
***************
*** 665,671 ****
  					   ?% ? )
  				       ;; Identify modified buffers.
  				       (if (buffer-modified-p) ?* ? ))
! 			       name (buffer-size) mode-name file)))))
  		   (buffer-list))))
        (dolist (buffer
  	       (if Buffer-menu-sort-column
--- 677,683 ----
  					   ?% ? )
  				       ;; Identify modified buffers.
  				       (if (buffer-modified-p) ?* ? ))
! 			       name (buffer-size) mode file)))))
  		   (buffer-list))))
        (dolist (buffer
  	       (if Buffer-menu-sort-column

-- 
Stephan Stahl

  parent reply	other threads:[~2004-07-11  1:43 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-21  6:15 M-x compile should tell its status (a little bit better) Stephan Stahl
2004-04-22 17:40 ` Richard Stallman
2004-04-22 18:54   ` Stephan Stahl
2004-04-24 14:27     ` Richard Stallman
2004-04-23 18:01   ` Kevin Rodgers
2004-04-23 21:48     ` Stephan Stahl
2004-04-27 16:43       ` Kevin Rodgers
2004-04-29 18:13         ` Stephan Stahl
2004-04-29 19:44           ` Stefan Monnier
2004-07-11  1:43         ` Stephan Stahl [this message]
     [not found]           ` <E1Bjnft-0008Qk-JH@fencepost.gnu.org>
     [not found]             ` <61133.217.194.34.123.1089623439. squirrel@wwws.franken.de>
     [not found]             ` <61133.217.194.34.123.1089623439.squirrel@wwws.franken.de>
2004-07-12 16:16               ` Stephan Stahl
2004-07-12 17:20                 ` Stefan Monnier
2004-07-14  0:18                   ` Richard Stallman
2004-07-14  0:32                     ` David Kastrup
2004-07-14  6:55                       ` Stephan Stahl
2004-07-14  8:44                         ` David Kastrup
2004-07-14  9:38                           ` Stephan Stahl
2004-07-14 13:23                             ` Kim F. Storm
2004-07-15 13:17                             ` Richard Stallman
2004-07-14 14:08                     ` Stefan
2004-07-15 13:17                       ` Richard Stallman
2004-04-25 18:09     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hdsfl3mx.fsf@eos.franken.de \
    --to=stahl@eos.franken.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).