From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: BUG: which-func-mode Date: Tue, 11 Mar 2003 13:36:10 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200303101828.h2AISIrs027316@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1047407913 440 80.91.224.249 (11 Mar 2003 18:38:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 11 Mar 2003 18:38:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 11 19:38:31 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18socf-0008KB-00 for ; Tue, 11 Mar 2003 19:37:09 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18sozX-0002iW-00 for ; Tue, 11 Mar 2003 20:00:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18socj-0000sP-09 for emacs-devel@quimby.gnus.org; Tue, 11 Mar 2003 13:37:13 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18socE-0000f1-00 for emacs-devel@gnu.org; Tue, 11 Mar 2003 13:36:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18socA-0000af-00 for emacs-devel@gnu.org; Tue, 11 Mar 2003 13:36:38 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sobj-0000LQ-00 for emacs-devel@gnu.org; Tue, 11 Mar 2003 13:36:11 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18sobi-0006tW-00; Tue, 11 Mar 2003 13:36:10 -0500 Original-To: "Stefan Monnier" In-reply-to: <200303101828.h2AISIrs027316@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) Original-cc: lewang@yahoo.com X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12280 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12280 > 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 * window.el (save-selected-window): Save and restore selected windows of all frames. If this doesn't fix te problem, why doesn't it?