From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: RFC: flicker-free double-buffered Emacs under X11 Date: Tue, 1 Nov 2016 02:03:53 +0200 Message-ID: References: <9e8ad090-a6a0-c807-95ae-7ec7c3f391cb@dancol.org> <83k2d2rssf.fsf@gnu.org> <831sz9sime.fsf@gnu.org> <83y41hqz94.fsf@gnu.org> <838tte5fzq.fsf@gnu.org> <740d34db48a1e4b711cb1cfa987423c9.squirrel@dancol.org> <1706d8c5-118b-7d68-bd25-1f95b1787aa2@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1477958770 3697 195.159.176.226 (1 Nov 2016 00:06:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2016 00:06:10 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:50.0) Gecko/20100101 Thunderbird/50.0 To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 01 01:06:00 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1MaS-0007l8-FK for ged-emacs-devel@m.gmane.org; Tue, 01 Nov 2016 01:05:56 +0100 Original-Received: from localhost ([::1]:39136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1MaU-0004JK-Je for ged-emacs-devel@m.gmane.org; Mon, 31 Oct 2016 20:05:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1MZb-0004IN-F5 for emacs-devel@gnu.org; Mon, 31 Oct 2016 20:05:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1MZW-0005p8-H2 for emacs-devel@gnu.org; Mon, 31 Oct 2016 20:05:03 -0400 Original-Received: from mail-wm0-f54.google.com ([74.125.82.54]:36288) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1MZW-0005o6-9N for emacs-devel@gnu.org; Mon, 31 Oct 2016 20:04:58 -0400 Original-Received: by mail-wm0-f54.google.com with SMTP id p190so177263450wmp.1 for ; Mon, 31 Oct 2016 17:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7VCzPVGsgD853WWYzftMBDxMgw4wcSKnzi/ltpsxa8M=; b=q81j8LcB5qpVrVWvkHm8eqhFT97IFeiaAGAe7p0iH9jZWc1JyMrd95ww4Y4aUiFzVV GMoQKE9BxtQubZ0Sl6BF7D/6I3wQFVA8R24xloRAbTe6CAzqTkcT5+U5pRIw8MiK3G/s AfpQDkI338hDD3iK+DIpEOeKeKKFYubG3UAIslqFZJAvTjWGqBeJ7+vjZt+1Z3AruiiO 5MiwnJlY1dNqxAqzyHxOvfyDCI1N8MknbHXgYC0Rf0NEGqRaxOBYH2q97CNblIG33vpg M2sneY3Xv1Nh4TBn+myxuW3aENqouRv8nveH6xWkJ59D0Ky1iPObdrhRwP5YLv7+30l+ tlDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7VCzPVGsgD853WWYzftMBDxMgw4wcSKnzi/ltpsxa8M=; b=c1093SHRqeIrWBzFYOjqku/8saO7vsZBm45vDBDDLRkPz23Bo8Ysi8FYhHMdtCeCeo 1b1PicNvkp8lvieiNeMv+baYdKyV4qjZ0zvIwXeUDDAXXBfGxgXFbpkeAmYt6KLBO1Ke tG8HVSsgOKHSfZrbIsuXBzLPWwbKNq0OCLP41ZXBL42suFj3HCYcSE2/I7xmU3p3Bjh6 mhG7Ku8qCV1xYTgcexgtIFDUFzbBdBXVx7dhE5Rlh+o6v8RPWIZyIjYpflhmYUsjzqrQ WwIWRIzhBzB7NJQEZMZ16ATHUoYu6i+MU3SBqiexV4Dro1iqkcaoJ6Ikd98UELQfMtpq /qng== X-Gm-Message-State: ABUngvdekIeMzw1wcpycVYLZtR/IW7SYC7ZhHUreYoNjtlHvc/QwgL8H09znwGVByUwM5g== X-Received: by 10.195.12.42 with SMTP id en10mr23093851wjd.126.1477958635261; Mon, 31 Oct 2016 17:03:55 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.173.41]) by smtp.googlemail.com with ESMTPSA id f3sm6802597wmf.10.2016.10.31.17.03.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 17:03:54 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.54 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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 Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209051 Archived-At: On 28.10.2016 16:14, Stefan Monnier wrote: >> I get a lot of flickering myself on Linux Mint with Gtk; often in font-lock >> heavy buffers or while M-x compile is running. This patch solves all of >> it :) > > I also welcome this patch, of course, but for the record, such > flickering should be solved by getting rid of those extra "spurious" > updates, rather than by hiding them behind double buffering. Spurious updates or not, according to a previous discussion, there's no reliable way to avoid flickers other than double-buffering: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=16621#38 Even if we could optimize them out in some cases. As such, I very much welcome this patch as well.