From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Removing redisplay-dont-pause Date: Sun, 01 Dec 2024 17:20:03 +0200 Message-ID: <86y10z4eho.fsf@gnu.org> References: <86ed3awd16.fsf@gnu.org> <86v7w582ms.fsf@gnu.org> <9E402D0E-43D9-458F-8C51-043F9F398DD9@gmail.com> <86bjxv67ha.fsf@gnu.org> <874j3nr8d6.fsf@localhost> <865xo35uwe.fsf@gnu.org> <871pyrqwyz.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29614"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattias.engdegard@gmail.com, emacs-devel@gnu.org, gerd.moellmann@gmail.com, monnier@iro.umontreal.ca To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 01 16:21:56 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tHllk-0007Vp-62 for ged-emacs-devel@m.gmane-mx.org; Sun, 01 Dec 2024 16:21:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHlkW-0002cY-Uv; Sun, 01 Dec 2024 10:20:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHlkM-0002R8-N3 for emacs-devel@gnu.org; Sun, 01 Dec 2024 10:20:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHlkK-0000ia-JL; Sun, 01 Dec 2024 10:20:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4Y/KCI/LY4aYF67fuXULa2IJccR5ZSf0qWT0HenUL5g=; b=gynTTPa4OFU4 U5EyyATo+Ak7awzh2ZffQbOQza5g0hENabt4XeIGm9QfluZfb96dzlv56xm1riSTuCr9FZyW0FGca XE2oHPqXFnPrxNV5PYFKPXKoTFbcoZShj9hhZmCKdaLrF/YPDdSCNC/RmWPv/mUkiEtCZWLTsS25A Y8E4zfIC3RlNMAkb0SpQN3045P1IuP5cOu+YqNQqTC83ggcWZJeXW3K04ekbLDwH7LF3GSk5G09Gy CavKnIjJ9ach3BrU+9CH3rzGM6DyaRbQS6DIMnIi1msu2FMyz3c9+UYXCSlNwk3QvUwIQRDQ1oNE9 28ovjnR8DjDeiv9E8TngNw==; In-Reply-To: <871pyrqwyz.fsf@localhost> (message from Ihor Radchenko on Sun, 01 Dec 2024 14:49:56 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325922 Archived-At: > From: Ihor Radchenko > Cc: mattias.engdegard@gmail.com, emacs-devel@gnu.org, > gerd.moellmann@gmail.com, monnier@iro.umontreal.ca > Date: Sun, 01 Dec 2024 14:49:56 +0000 > > >> The problem with redisplay hangs keeps surfacing again and again, so I > >> do expect that a number of people will try to use it as soon as they > >> learn that such variable exists. > > > > The hangs you have in mind cannot be helped by this variable. > > I was replying about your example with scrolling. I also tested setting > this variable when typing in an Org buffer with many large invisible > regions, and setting the variable does help typing speed. I imagined that. Most of the time spent by redisplay in those cases is in the part that isn't interrupted when this variable is nil, because it is consulted when all the invisible regions were already scanned. I don't understand how it could help typing speed, unless typing in those cases has dramatic effect on what is shown on the glass (as opposed to what typing usually does: affects at most one or two screen lines).