From: "Stephan Stahl" <stahl@eos.franken.de>
Cc: Kevin Rodgers <ihs_4664@yahoo.com>, emacs-devel@gnu.org
Subject: Re: CVS Emacs list-buffer-noselect calls set-window-buffer, displays every buffer briefly!
Date: Thu, 9 Sep 2004 10:23:38 +0200 (CEST) [thread overview]
Message-ID: <18773.217.194.34.123.1094718218.squirrel@wwws.franken.de> (raw)
In-Reply-To: <uacw0ehfb.fsf@world.std.com>
(I did not include emacs-develand the others in my reply..
so here it goes again)
Hi Francis.
Francis Litterio said:
> RMS's patch adds a BUFFER argument to format-mode-line, which makes it
> possible to avoid calling set-window-buffer in list-buffers-noselect, as
> follows:
>
> --- buff-menu.el 02 Sep 2004 10:36:13 -0400 1.67
> +++ buff-menu.el 08 Sep 2004 14:32:06 -0400
> @@ -641,10 +641,10 @@
> (save-window-excursion
> (setq name (buffer-name)
> mode (progn
> - (set-window-buffer (selected-window) buffer)
> - (concat (format-mode-line mode-name)
> + (concat (format-mode-line mode-name nil nil buffer)
> (if mode-line-process
> - (format-mode-line mode-line-process))))
> + (format-mode-line mode-line-process nil nil
> + buffer))))
> file (buffer-file-name)))
> (cond
> ;; Don't mention internal buffers.
Could you please try to verify if this really works? I tried the same
thing but i did not get the right results. My testcase was M-x shell,
M-x rename-uniquely, M-x shell, exit. Now i have two shell buffers,
one running, one not. C-x C-b from the running shell adds ":run" to
both buffers in the buffer-list. The same thing from the finished
shell adds ":exit [0]" to both. I have not found time to take a
closer look at why Richards patch does not seem to work for me. And
yes i applied Richards patch and recompiled emacs ;-).
Oh with this simpler patch the progn could be omitted.
Stephan
--
Stephan Stahl
next prev parent reply other threads:[~2004-09-09 8:23 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-05 5:12 CVS Emacs list-buffer-noselect calls set-window-buffer, displays every buffer briefly! Richard Stallman
2004-09-07 15:42 ` Francis Litterio
2004-09-08 0:22 ` Richard Stallman
2004-09-08 14:36 ` Francis Litterio
2004-09-09 4:02 ` Richard Stallman
2004-09-09 15:46 ` Francis Litterio
2004-09-08 15:02 ` Francis Litterio
2004-09-08 16:20 ` Kevin Rodgers
2004-09-08 18:21 ` Francis Litterio
2004-09-09 4:03 ` Richard Stallman
2004-09-09 8:23 ` Stephan Stahl [this message]
2004-09-09 15:41 ` Francis Litterio
2004-09-09 16:13 ` Stephan Stahl
2004-09-09 15:45 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2004-09-02 18:59 Francis Litterio
2004-09-02 19:57 ` Stefan Monnier
2004-09-02 20:07 ` Francis Litterio
2004-09-02 20:48 ` Stefan Monnier
2004-09-03 6:27 ` Stephan Stahl
2004-09-03 11:49 ` Francis Litterio
2004-09-04 3:28 ` Richard Stallman
2004-09-03 18:54 ` Kevin Rodgers
2004-09-04 8:42 ` Stephan Stahl
2004-09-04 19:40 ` Francis Litterio
2004-09-04 22:12 ` Richard Stallman
2004-09-03 19:15 ` Francis Litterio
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=18773.217.194.34.123.1094718218.squirrel@wwws.franken.de \
--to=stahl@eos.franken.de \
--cc=emacs-devel@gnu.org \
--cc=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 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.