From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: CVS Emacs list-buffer-noselect calls set-window-buffer, displays every buffer briefly! Date: Wed, 08 Sep 2004 10:20:56 -0600 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <413F3168.8090502@yahoo.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094660506 24723 80.91.224.253 (8 Sep 2004 16:21:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 16:21:46 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 08 18:21:26 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 1C55CH-0007Ga-00 for ; Wed, 08 Sep 2004 18:21:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C55HZ-0003sh-4V for ged-emacs-devel@m.gmane.org; Wed, 08 Sep 2004 12:26:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C55HR-0003sb-Pt for emacs-devel@gnu.org; Wed, 08 Sep 2004 12:26:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C55HQ-0003sO-9O for emacs-devel@gnu.org; Wed, 08 Sep 2004 12:26:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C55HQ-0003sL-5y for emacs-devel@gnu.org; Wed, 08 Sep 2004 12:26:44 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C55Bt-0008C8-HQ for emacs-devel@gnu.org; Wed, 08 Sep 2004 12:21:01 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1C55Bp-0005JL-00 for ; Wed, 08 Sep 2004 18:20:59 +0200 Original-Received: from 170.207.1.200 ([170.207.1.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Sep 2004 18:20:57 +0200 Original-Received: from ihs_4664 by 170.207.1.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Sep 2004 18:20:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 170.207.1.200 User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us 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:26892 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26892 Francis Litterio wrote: > 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. Would it be reasonable for list-buffers-noselect to let-bind window-scroll-functions to nil? -- Kevin Rodgers