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: Mon, 12 Jul 2004 18:16:18 +0200 (CEST) [thread overview]
Message-ID: <20892.217.194.34.123.1089648978.squirrel@wwws.franken.de> (raw)
In-Reply-To: <61133.217.194.34.123.1089623439.squirrel@wwws.franken.de>
Hi Richard. (I've CC'ed emacs-devel again because of this possible bug..)
I said:
> Here is a new patch. With the funtion you suggested it is much simpler.
> diff -c buff-menu.el.\~1.66.\~ buff-menu.el
> *** buff-menu.el.\~1.66.\~ Mon Jul 12 11:01:15 2004
> --- buff-menu.el Mon Jul 12 11:08:58 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 mode file)
> (when Buffer-menu-use-header-line
> (let ((pos 0))
> ;; Turn spaces in the header into stretch specs so they work
> ***************
> *** 639,644 ****
> --- 639,647 ----
> (lambda (buffer)
> (with-current-buffer buffer
> (setq name (buffer-name)
> + mode (concat mode-name
> + (if mode-line-process
> + (format-mode-line mode-line-process)))
> file (buffer-file-name))
> (cond
> ;; Don't mention internal buffers.
> ***************
> *** 665,671 ****
> ?% ? )
> ;; Identify modified buffers.
> (if (buffer-modified-p) ?* ? ))
> ! name (buffer-size) mode-name file)))))
> (buffer-list))))
> (dolist (buffer
> (if Buffer-menu-sort-column
> --- 668,674 ----
> ?% ? )
> ;; Identify modified buffers.
> (if (buffer-modified-p) ?* ? ))
> ! name (buffer-size) mode file)))))
> (buffer-list))))
> (dolist (buffer
> (if Buffer-menu-sort-column
It does however not work correctly.. I suspect format-mode-line to be guilty but have
not yet looked at the c code..
format-mode-line returns different things depending on the buffer it was called from.
With this example the bug can be seen to.
emacs -q --no-site-init
M-x shell
M-; (with-current-buffer (get-buffer "*shell*")
(concat mode-name
(if mode-line-process
(format-mode-line mode-line-process))))
=> "Shell:run"
C-x C-b <RET> (you should be in *scratch* now)
M-; (with-current-buffer (get-buffer "*shell*")
(concat mode-name
(if mode-line-process
(format-mode-line mode-line-process))))
=> "Shell:no process"
Maybe someone can help me with this??
Stephan
--
Stephan Stahl
next prev parent reply other threads:[~2004-07-12 16:16 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
[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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20892.217.194.34.123.1089648978.squirrel@wwws.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.