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: Fri, 24 Feb 2023 15:12:53 +0200 Message-ID: <0a7313f0-765c-aeca-ae50-6d8adbfb04ed@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> 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="20095"; 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: Po Lu , 61667@debbugs.gnu.org, Eli Zaretskii To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 24 14:14:22 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 1pVXu2-00050N-9e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Feb 2023 14:14:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVXtl-00065M-AV; Fri, 24 Feb 2023 08:14:05 -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 1pVXtj-000657-In for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 08:14:03 -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 1pVXtj-0001o2-1G for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 08:14:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVXti-0005Vs-Lq for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 08:14: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: Fri, 24 Feb 2023 13:14: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.167724438521113 (code B ref 61667); Fri, 24 Feb 2023 13:14:02 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 24 Feb 2023 13:13:05 +0000 Original-Received: from localhost ([127.0.0.1]:36280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVXsm-0005US-Mg for submit@debbugs.gnu.org; Fri, 24 Feb 2023 08:13:05 -0500 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:40589) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVXsk-0005Tw-1p for 61667@debbugs.gnu.org; Fri, 24 Feb 2023 08:13:03 -0500 Original-Received: by mail-wr1-f43.google.com with SMTP id t15so13976676wrz.7 for <61667@debbugs.gnu.org>; Fri, 24 Feb 2023 05:13:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=JglWd0QbsCZrzvVwfo6rGsELYCP6ffErTNgXBzF8rmM=; b=cONs3bAxD5KGlMvSRaTa5OvVK07MPbCJrMaZh/AFYzhdMBV9+9J5eb1tJH8mav2yae I9no1mFviTUIE51sOjOkagLmweezzsd0qRziTK04xgaCxCi6iTuGhnKu16ztWvRz8ExQ G8AZZ9E0ZbZBdu9pOS4ucpJWrjwikVoobanA8PQeklWK1/FCksdnfXfCPdh10lrUTzmf AjzQfjJRhwcdS+ug+i8xGR5Wa68N+H5+/jAQjlH1+e/QM78azsdfW0PF/YQdTKVhTaAX g1maiVSj6c2gat6Wa2yPB5dEz2QhUXokVE0E6HomXLPfhxgMCp1XGMuXongQOg8Vgw0w OMxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :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=JglWd0QbsCZrzvVwfo6rGsELYCP6ffErTNgXBzF8rmM=; b=wzn1A1tciYe7IdpSvji5P8q2uwquQDZ0I2M2LtZ2zHmbo/xMQRn8PiYJL4Ti72+37N y4jZBbwLQN4sHAmRjsJQ8qpgBQVwRL8hbapsRCJhCy+VeO++4NFMeccHhN0s+JyVEihV tqt6/EnVwXYZKeZSlK2bHBkcmyvGnssMGTh8tTeardXQBeJZ1PjemXzTEU4dKLz9iCbY bzngxRMvXwDQ+hwLE5WMvlb5EBf/FQQN7+z4pTks1Y0yC4fs3lFA8dDrtODvYL+MoZWg o3k9Qr21b6pAj0Puy9KYoX7gRDCshE+tl/anDQzYHmilNxN5xeZWltwR/sPFTWZltpob rLQw== X-Gm-Message-State: AO0yUKVFlBWlGod3UChGidSTQU8Z7Lb1eqMyzgJluxOu3PGBUa0tX/JC g2Q8nX2m3/VBBQw9mMwy0ZM= X-Google-Smtp-Source: AK7set9MDATxzmrlSXtsXCnnfWfeV+RTLR6uKNab6VsDVHPZ5pYssIrNNBWWg8+ujffnwEhLgfupzQ== X-Received: by 2002:adf:f3ca:0:b0:2c7:832:8fc0 with SMTP id g10-20020adff3ca000000b002c708328fc0mr9084254wrp.3.1677244375877; Fri, 24 Feb 2023 05:12:55 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id h5-20020a5d4305000000b002c559405a1csm14238968wrq.20.2023.02.24.05.12.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Feb 2023 05:12:55 -0800 (PST) Content-Language: en-US In-Reply-To: <853eca8f-5850-dd73-7601-4fad92613ab9@yandex.ru> 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:256588 Archived-At: On 23/02/2023 18:46, Dmitry Gutov 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. > > This particular scenario, however, I haven't been able to repro with > Emacs 25 or 26 or 27. It does reproduce with Emacs 28 and 29. So, I finished bisecting, at it points to: 817dd546497aadefbe9acc8762e3f7190799c5e6 is the first bad commit commit 817dd546497aadefbe9acc8762e3f7190799c5e6 Author: Stefan Kangas Date: Sun Sep 13 18:24:31 2020 +0200 Improve frame-title-format and icon-title-format * src/xdisp.c (syms_of_xdisp): Replace 'invocation-name' with the text "%b - GNU Emacs" and replace "@" with " at ". (Bug#41147) * etc/NEWS: Announce the above change. etc/NEWS | 11 +++++++++++ src/xdisp.c | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) Triple-checked that as well: the commit before it doesn't reproduce the above scenario, and this one does. Looking at the commit, there is another difference in behavior too: - With this commit, all is as described previously: I press 'a', window title changes, there is a delay (randomly), then the window contents change. - Before this commit: the window title doesn't change, it's always emacs@hostname. But when I press 'a' (bound to 'find-file' lambda), there never is a noticeable delay before the window contents change. The buffer is displayed instantly.