From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: M-x compile should tell its status (a little bit better)..
Date: Tue, 27 Apr 2004 10:43:39 -0600 [thread overview]
Message-ID: <408E8DBB.9050409@yahoo.com> (raw)
In-Reply-To: 87oepiqsb9.fsf@eos.franken.de
Stephan Stahl wrote:
> Kevin Rodgers <ihs_4664@yahoo.com> writes:
>>Richard Stallman wrote:
>>>Could you say more precisely what change you have in mind in the
>>>mode line contents?
>>>
>>I think the idea is not to change the mode line, but to change the
>>mode name so that the status is apparent from `M-x list-buffers'. I
>>think the following provides the desired effect, but it's just for
>>illustration:
>
> Yes that was my idea. I hope my example in an earlier mail was also
> helpful to understand what i had in mind.
>
> Do you think such a change would be good? And which other modes could
> benefit from such a visual feedback? Maybe all modes that use an
> (longrunning) inferior process..
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.
*** emacs-21.3/lisp/buff-menu.el.orig Wed Aug 29 08:53:31 2001
--- emacs-21.3/lisp/buff-menu.el Tue Apr 27 10:38:25 2004
***************
*** 503,512 ****
this-buffer-read-only
(this-buffer-size (buffer-size buffer))
this-buffer-mode-name
this-buffer-directory)
(with-current-buffer buffer
! (setq this-buffer-read-only buffer-read-only
! this-buffer-mode-name mode-name)
(unless file
;; No visited file. Check local value of
;; list-buffers-directory.
--- 503,523 ----
this-buffer-read-only
(this-buffer-size (buffer-size buffer))
this-buffer-mode-name
+ (this-buffer-process (get-buffer-process buffer))
this-buffer-directory)
(with-current-buffer buffer
! (setq this-buffer-read-only buffer-read-only)
! (setq this-buffer-mode-name
! (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)
! (this-buffer-process ; emulate (":%s")
! (concat ":"
! (symbol-name
! (process-status
! this-buffer-process)))))))
(unless file
;; No visited file. Check local value of
;; list-buffers-directory.
--
Kevin Rodgers
next prev parent reply other threads:[~2004-04-27 16: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 [this message]
2004-04-29 18:13 ` Stephan Stahl
2004-04-29 19:44 ` Stefan Monnier
2004-07-11 1:43 ` Stephan Stahl
[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=408E8DBB.9050409@yahoo.com \
--to=ihs_4664@yahoo.com \
/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).