all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: Stefan Monnier <monnier+gnu/emacs@rum.cs.yale.edu>
Subject: Re: BUG: which-func-mode
Date: Tue, 11 Mar 2003 14:07:35 -0500	[thread overview]
Message-ID: <200303111907.h2BJ7ZHv012258@rum.cs.yale.edu> (raw)
In-Reply-To: E18sobi-0006tW-00@fencepost.gnu.org

>     > It turned out that `which-func-mode' was using `walk-windows' to update the
>     > mode-lines in all windows.  It selects each window and forces a mode-line
>     > update in it.  But by selecting the window, it silently disrupts the
>     > `buffer-list'.  This is the bug.
> 
> I tried to fix this in one way last fall, by changing select-window
> not to alter the frame-selected-window in some cases.  That caused
> other problems.  So in December I undid that change
> and tried another fix:
> 
>     2002-12-23  Richard M. Stallman  <rms@gnu.org>
> 
> 	* window.el (save-selected-window): Save and restore
> 	selected windows of all frames.
> 
> If this doesn't fix te problem, why doesn't it?

In his case, it seems the problem is not that the frame's selected
window is changed (which was the problem you're referring to), but
that the buffer-list is changed because Fselect_window calls
`select_window_1 (window, 1)' where the second arg causes select_window_1
to call `record_buffer (w->buffer)'.


	Stefan

  reply	other threads:[~2003-03-11 19:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-05  0:36 BUG: which-func-mode Le Wang
2003-03-10 18:28 ` Stefan Monnier
2003-03-11 18:36   ` Richard Stallman
2003-03-11 19:07     ` Stefan Monnier [this message]
2003-03-13  7:48       ` Richard Stallman
2003-03-14 23:46         ` Stefan Monnier
2003-03-16  7:47           ` Richard Stallman
2003-03-16  8:02             ` Stefan Monnier
2003-03-16 12:48               ` Robert J. Chassell
2003-03-16 22:37                 ` Stefan Monnier
2003-03-17 12:51                   ` Robert J. Chassell
2003-03-18 13:22                     ` Richard Stallman
2003-03-17  4:51               ` Richard Stallman
2003-03-17 15:30                 ` Stefan Monnier
2003-03-17 23:24                   ` Richard Stallman
2003-03-18  0:53                     ` Stefan Monnier
2003-03-19  8:49                       ` 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=200303111907.h2BJ7ZHv012258@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    /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.