From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: Emacs flickers periodically Date: Sat, 17 Jun 2017 21:21:12 +0300 Message-ID: References: <8760fvamxg.fsf@gmail.com> <4db8168a-f397-3ac7-2a6f-a1f2255bab49@yandex.ru> <87wp8bey1z.fsf@debian.uxu> <8691587e-2d96-d668-e5b6-8ee9c3a823db@yandex.ru> <83r2yizy7b.fsf@gnu.org> <6210966a-07cc-f16d-b63f-7b91616713e9@yandex.ru> <83o9tmzpiw.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1497723718 18046 195.159.176.226 (17 Jun 2017 18:21:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2017 18:21:58 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:54.0) Gecko/20100101 Thunderbird/54.0 To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 17 20:21:51 2017 Return-path: Envelope-to: geh-help-gnu-emacs@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 1dMIM3-000480-72 for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Jun 2017 20:21:51 +0200 Original-Received: from localhost ([::1]:35924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMIM5-0002P1-5l for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Jun 2017 14:21:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMILY-0002Ok-BS for help-gnu-emacs@gnu.org; Sat, 17 Jun 2017 14:21:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMILV-0002lh-8Q for help-gnu-emacs@gnu.org; Sat, 17 Jun 2017 14:21:20 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:37261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMILV-0002l6-25; Sat, 17 Jun 2017 14:21:17 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id d73so45110881wma.0; Sat, 17 Jun 2017 11:21:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FZgLsTSW+d+lhv4uH3pLonOYnYP1j8TANBtjh6euYBI=; b=N3kYQXI4BdKGmRgljh9TrW0Clbamw7YSNU/GeICL93zob4bK2xn4EAoXWDb1k2XFeE RwE4dURQlbRUziFoY8kcLN1MSFXXfAmEa0GF4bz6awAZaq2UxUrO3udNSWM8wmTdufdJ 5uWyY8KzswPg1LUBS/JUBSltJKY9ERUfbVzfDqYJjc9Z21QxGRCPHtwHTATZZ5Myn1HN C6asBHzcGlWLEWsU4BXY5ZP3JtIHTy56hQNvJ9Sqxy7sPC6/caO3sPWVGyCAtCixj5UC fqjiaItxA99luGIYqcn/Zk6ovLytSlQPIO6B2jw0zq1GIKk8TjcGI/ZLjlH2nEzn5OCK leSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=FZgLsTSW+d+lhv4uH3pLonOYnYP1j8TANBtjh6euYBI=; b=J+NH7CTUjuor2gQJZYk2P+u5LeGL+aEF2RHJUryg/r+kO5Z/X5BJ4OiGoEM0YGCKyL 2cyHsqpXBtg4uOeVAbuAI32jos1LpjmTHvAva3aTSVwY3bh35FGTzrBj9wZh+7NsZypi FJ8o4szKH6bjyWF2RmB1CQMCHRKTawhqp1BrNls7AdfgDofawrklDdV4psgAefVRe/7c v+3mYDEqTxXWO4NWw+cmjLBPkaiNV5lmE08opYeSap6eoRwFFjE5UWPZ9Tv5dOqp0Y2b MYDVUdDLNK2+Qhp610Uzch0urt+X+aK7tPF0Mt0igmEr8UomjYRJRu0GYQO1VYSrPCiS GjZA== X-Gm-Message-State: AKS2vOyiJZq83ts39bo3eO3ncBtNbEXX0WKmGHpVOnvA3RTzRN4SoaWl prmc4UmHJaD0SlgjNrE= X-Received: by 10.28.207.133 with SMTP id f127mr10591759wmg.84.1497723675634; Sat, 17 Jun 2017 11:21:15 -0700 (PDT) Original-Received: from [192.168.1.3] ([185.105.174.193]) by smtp.googlemail.com with ESMTPSA id p87sm8714471wma.2.2017.06.17.11.21.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Jun 2017 11:21:14 -0700 (PDT) In-Reply-To: <83o9tmzpiw.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22b X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113516 Archived-At: On 6/17/17 4:56 PM, Eli Zaretskii wrote: >>> Actually, Emacs flickers on a TTY more frequently than in GUI frames, >>> because certain changes on display require that the entire TTY frame >>> be redrawn. >> >> Couldn't that actually be beneficial? > > Beneficial in what sense? Users are generally annoyed by flickering, > especially when most or all of the display doesn't change. In the "eliminating bugs" sense, bugs to which you referred later. I can't say I have a clear idea how, except by eliminating certain optimizations which you refer to in bug#16621). And also, terminal emulators might have their own display synchronization logic. Still, I've never tried the test cases for the two bugs mentioned below in the terminal. Maybe someone should do that and report back. >> As long as it's never redrawn in an inconsistent state. > > AFAIK, Emacs never redraws display in inconsistent state (barring > bugs, of course). But that's the effect that the double-buffering patch brings: limiting redrawing to consistent states only. So maybe those were bugs (like 12363 and 16621), but they went unfixed until Daniel's patch.