From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#61667: 29.0.60; Failure to redisplay Date: Thu, 23 Feb 2023 21:12:42 +0200 Message-ID: <3d652eb5-339d-7185-b89f-fba49909aab4@yandex.ru> References: <04d7cb31-684c-07c0-ee7b-503514fc1a85@yandex.ru> <87a617eanz.fsf@yahoo.com> <4306cb76-a44c-3101-e43c-fd64afae4a51@yandex.ru> <871qmje2ws.fsf@yahoo.com> <83edqjtbss.fsf@gnu.org> <4e5e2a46-9b07-206a-6774-9f98f34cbd14@yandex.ru> <83y1orrolh.fsf@gnu.org> <83sfeyswdw.fsf@gnu.org> <877cwactgv.fsf@yahoo.com> <83mt55sxli.fsf@gnu.org> <8afe34f2-eeea-3be8-82ef-576a115beb6d@yandex.ru> <96b742a05da174ece02e@heytings.org> <25c48260-2edc-f062-8fef-52ff2fdd22e3@yandex.ru> <96b742a05dea855f9636@heytings.org> <853eca8f-5850-dd73-7601-4fad92613ab9@yandex.ru> <83lekopask.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28350"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Cc: luangruo@yahoo.com, 61667@debbugs.gnu.org, gregory@heytings.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 23 20:13:14 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pVH1k-0007Dx-6e for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 Feb 2023 20:13:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVH1c-0007uk-E5; Thu, 23 Feb 2023 14:13:04 -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 1pVH1a-0007u1-K0 for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 14:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVH1a-0000QA-Bg for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 14:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVH1a-0000RD-7G for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2023 14:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2023 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61667 X-GNU-PR-Package: emacs Original-Received: via spool by 61667-submit@debbugs.gnu.org id=B61667.16771795721665 (code B ref 61667); Thu, 23 Feb 2023 19:13:02 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 23 Feb 2023 19:12:52 +0000 Original-Received: from localhost ([127.0.0.1]:35373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVH1Q-0000Qn-Dy for submit@debbugs.gnu.org; Thu, 23 Feb 2023 14:12:52 -0500 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:42555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVH1P-0000Qb-2G for 61667@debbugs.gnu.org; Thu, 23 Feb 2023 14:12:51 -0500 Original-Received: by mail-wr1-f43.google.com with SMTP id j2so11385523wrh.9 for <61667@debbugs.gnu.org>; Thu, 23 Feb 2023 11:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=MKHPHOev/WzA3mKVjA3Zne8yK4khW3othd2sTcVrRGY=; b=drcJka3WOAcBh+EcUtdIiGdI7KsTn7sp25BS50WXHsGavzXzqnoSyLOZENHXKORZvX SF6us7sst/PK7ZpqZnH7WClwPLwW6ZKdQa9ctSWIR9CpZUXGonfvpqJDFNjao6iALyip 9cXdIPfgvckktzsgdvrZozXtbYFHmV3Mz7QlSxIUxvzY17pwzAtcptWptAJOIddkSCf8 O6tTLHuskKEBwZrymgWVqsP7uWckA1qShazdMXIV6tj6m8tQIGCa8F6m2wY5fOx+40te qKFESBJLRuZ4erWSOUuUeNhLiVv7v+kyvDk0TO44APHX0Hy3lzR+acXFN6bDq2LEI66a xovQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MKHPHOev/WzA3mKVjA3Zne8yK4khW3othd2sTcVrRGY=; b=ojHwTrdEkb8/tNNMYRU707KiSU2qj7XqYyk+DjzuZCGw941edH2i6h2MuBqHot3yx0 X4c2aXVR/6Kwx3edQcpM44POHZ3JpaL+LDFksughCjBh/0nHXszj1wznmh8wFJdQaT7c n/TDLx/dgzps1WIyObuER6Ru2j99tqPiPkAzDuB0SOPZJ1MfQdVNqZ6hIlKwyZXhi7Ad MGIUiZRTrn93dkPrAGBA1NHWdgCD4G8gXvqoxJYKeh8Onpod07MHIfXXNTDTsUgzmLCc ifve3QaT8rLCHQdyfRMFb4a0tDacIIEyDynaitdtXiAhc6Hg/alKrZenA+JvEEDQgUop K1Pg== X-Gm-Message-State: AO0yUKXpOcaWeb/g8nBuXLAOwgSlpzoiAktGFTlOt0uMMFuts32apc3G y8FnHmWnzGaGdMfAnLZd4rM= X-Google-Smtp-Source: AK7set/QskBY+j06ymIp535bExXzqKejQ97MQMiNlPxLvX2h5i43OTP0q7GVmJrqQNcYyS+WP955jg== X-Received: by 2002:a05:6000:10c9:b0:2c2:6541:7afc with SMTP id b9-20020a05600010c900b002c265417afcmr13011296wrx.64.1677179565015; Thu, 23 Feb 2023 11:12:45 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id i18-20020adfe492000000b002c56287bd2csm11476991wrm.114.2023.02.23.11.12.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Feb 2023 11:12:44 -0800 (PST) Content-Language: en-US In-Reply-To: <83lekopask.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256517 Archived-At: On 23/02/2023 19:10, Eli Zaretskii wrote: >> Here's one repro: >> >> emacs -Q --eval "(tool-bar-mode -1)" --eval "(menu-bar-mode -1)" --eval >> "(scroll-bar-mode -1)" --eval "(global-set-key \"a\" (lambda () >> (interactive) (find-file \"test.c\")))" >> >> Where "test.c" is the name of a file in the current dir. Different files >> can work, but for some the repro doesn't happen, like those, apparently, >> which start with a paren (which makes show-paren-mode trigger its own >> redisplay). >> >> So, to repro: >> >> - Run the command above >> - Press "a" >> - Look for the delay between the title bar and the window updates >> >> With the above 'emacs -Q' it's not as prominent as with my config, but >> it can reach what looks like 100-200ms. Once every 10 tries or so. > Isn't that the 100-ms delay we wait for the initial frame to finish > displaying, since that requires that we receive some messages from X? Probably not: in this scenario I usually wait for the frame to finish resizing, rendering, etc, and for *scratch* to be displayed properly, and then I press 'a'. But I might have misunderstood your question. > So I'm not sure this is the same problem. Unless, that is, in the > "problematic" cases we somehow miss the message which we are waiting > for? It might be related if there are similar timeouts for subsequent redisplay operations.