From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Emacs GTK scroll-bar flickering Date: Thu, 27 Mar 2003 19:06:25 +0100 (CET) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303271910.h2RJAdbL026412@stubby.bodenonline.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048789430 2204 80.91.224.249 (27 Mar 2003 18:23:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2003 18:23:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 27 19:23:49 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 18yc2G-0000YH-00 for ; Thu, 27 Mar 2003 19:23:32 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18yc4E-0001fk-00 for ; Thu, 27 Mar 2003 19:25:35 +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 18ybya-0002EC-04 for emacs-devel@quimby.gnus.org; Thu, 27 Mar 2003 13:19:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18yby0-0001u6-00 for emacs-devel@gnu.org; Thu, 27 Mar 2003 13:19:08 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18ybxn-0001jg-00 for emacs-devel@gnu.org; Thu, 27 Mar 2003 13:19:01 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ybxR-0001Ad-00; Thu, 27 Mar 2003 13:18:33 -0500 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) h2RJAdbL026412; Thu, 27 Mar 2003 20:10:39 +0100 In-Reply-To: "from Miles Bader at Mar 27, 2003 10:22:22 am" Original-To: Miles Bader 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:12665 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12665 > "Jan D." writes: > > It turns out that since the container widget Emacs uses isn't double > > buffered, all the children (scroll bars) does not get double buffering > > either. > > > > I have checked in a fix for this (actually a couple a days ago, but it was > > incomplete), hopefully it finally fixes this problem (hey, one can hope :-). > > Yes, this seems to have fixed the flickering problem completely > (there are still some rough updates when the emacs window configuration > changes, but that's a relatively rare event, and I guess this sort of > thing is probably never going to be perfect, given that GTK is somewhat > bolted onto emacs). There are some issues I know about, for example the tool bar does not behave at startup. There are more redraws of GTK widgets than what is optimal. > BTW, I find that I can get better scrolling behavior with emacs/GTK if I > set `redisplay-dont-pause' to t -- otherwise, if I e.g., hold down a > scroll key (say C-v), scrolling updates the scroll bar smoothly, but the > text window only gets updated when I stop scrolling. Any comment on > this? [My processor seems to be fast enough to keep up when > redisplay-dont-pause is t] It must be that the redisplay code decided to delay the redisplay because of other input (keys or X events). I can hardly see any difference when I set redisplay-dont-pause to t but I imagine redisplay-dont-pause fills the same job as "smooth-scroll" in xterm. In that case what you see is the intended behaviour, less redisplay to use less CPU-time. Jan D.