From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel Subject: Re: CVS Emacs list-buffer-noselect calls set-window-buffer, displays every buffer briefly! Date: Wed, 08 Sep 2004 11:02:57 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094656396 10812 80.91.224.253 (8 Sep 2004 15:13:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 15:13:16 +0000 (UTC) Cc: Stephan Stahl , Kevin Rodgers , Richard Stallman , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 08 17:12:45 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C547o-0007zZ-00 for ; Wed, 08 Sep 2004 17:12:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C54D5-0000rJ-Oa for ged-emacs-devel@m.gmane.org; Wed, 08 Sep 2004 11:18:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C54Cq-0000np-B2 for emacs-devel@gnu.org; Wed, 08 Sep 2004 11:17:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C54Co-0000nR-OQ for emacs-devel@gnu.org; Wed, 08 Sep 2004 11:17:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C54Co-0000nH-LK for emacs-devel@gnu.org; Wed, 08 Sep 2004 11:17:54 -0400 Original-Received: from [192.74.137.143] (helo=TheWorld.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C547R-0003iX-91; Wed, 08 Sep 2004 11:12:22 -0400 Original-Received: from lt371-fran.theworld.com (root@shell01.theworld.com [192.74.137.71]) by TheWorld.com (8.12.8p1/8.12.8) with ESMTP id i88F6Tje011764; Wed, 8 Sep 2004 11:06:31 -0400 Original-To: emacs-devel@gnu.org In-Reply-To: (Richard Stallman's message of "Sun, 05 Sep 2004 01:12:50 -0400") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (windows-nt) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26890 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26890 I wrote: > 1. list-buffers-noselect calls set-window-buffer once for every buffer. > > 2. set-window-buffer calls the functions on window-scroll-functions. > > 3. The problem only happens when I'm running ERC (the Emacs IRC client). > > 4. ERC adds the function erc-scroll-to-bottom to window-scroll-functions > (locally in each ERC buffer). > > 5. erc-scroll-to-bottom calls recenter. In fact, erc-scroll-to-bottom calls (sit-for 0), and sit_for calls redisplay_preserve_echo_area. I think this solves the puzzle, though we have to decide if list-buffers-noselect should continue to call set-window-buffer, given that set-window-buffer calls the hooks on window-scroll-functions. -- Francis Litterio franl@world.std.com http://world.std.com/~franl/ GPG and PGP public keys available on keyservers.