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.bugs Subject: bug#61667: 29.0.60; Failure to redisplay Date: Fri, 24 Feb 2023 17:08:11 +0200 Message-ID: <838rgnnlt0.fsf@gnu.org> 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> <0a7313f0-765c-aeca-ae50-6d8adbfb04ed@yandex.ru> <83cz5znpko.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38566"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 61667@debbugs.gnu.org, gregory@heytings.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 24 16:09:25 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 1pVZhM-0009vS-CR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 24 Feb 2023 16:09:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVZhE-0008B8-7j; Fri, 24 Feb 2023 10:09:16 -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 1pVZh0-00085n-Vg for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 10:09:08 -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 1pVZh0-0007Cu-5i for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 10:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pVZh0-0000YF-1W for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2023 10:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2023 15:09:01 +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.16772513132082 (code B ref 61667); Fri, 24 Feb 2023 15:09:01 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 24 Feb 2023 15:08:33 +0000 Original-Received: from localhost ([127.0.0.1]:37901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVZgW-0000XW-S4 for submit@debbugs.gnu.org; Fri, 24 Feb 2023 10:08:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pVZgV-0000XG-Ew for 61667@debbugs.gnu.org; Fri, 24 Feb 2023 10:08:31 -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 1pVZgO-0006Wh-Hr; Fri, 24 Feb 2023 10:08:24 -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=GRSBpVkcksQ6mse6/TyeUaLJshYGH8QRI5CnyVnq6Xs=; b=KXxg+UMf+/91 KXCzIUqhNKJgqGUmr2qQIFTRl5NtCp3HrvT5ErwXQzekjnJdUkTq4Z02KtbMdkSbWjKLl8TiyG4TK XwGszolJFbKRrzufU6XXym6/sGroW1eErMsI+S6bwv9AOdbT2rLBV20KAsMgv3vSxth1/d1gezh2q iYSD8G8oPNgZr+9fYO+pL9r18i9Gxw4TNaHPitA0nAWXc9/sPEKhQ0KY816X3hTlcDFBWHg6mWz7w HlgVMeGZHwdNnqWEDgUNM26gsw8K1FeU43HOi7NXJn8x2zvU3O+CC3zU4jXgbU1n1yjRj9owkIbXN LGYA6zQW/6lCq4g+P7i4bQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pVZgB-0003lE-5Y; Fri, 24 Feb 2023 10:08:24 -0500 In-Reply-To: (message from Dmitry Gutov on Fri, 24 Feb 2023 16:12:30 +0200) 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:256610 Archived-At: > Date: Fri, 24 Feb 2023 16:12:30 +0200 > Cc: luangruo@yahoo.com, 61667@debbugs.gnu.org, gregory@heytings.org > From: Dmitry Gutov > > >> - 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. > > How is this consistent with your previous finding that the problem > > exists in Emacs 25, 26, and 27. The change above is only present in > > Emacs 28. Does this mean that the problem 100-200ms delay and the > > original problem are two different problems? > > Easy: my configuration contains a customization for frame-title-format. > > It's set to > > (setq frame-title-format '(buffer-file-name "%f" ("%b"))) > > All the time I spend bisecting the config I didn't think to change it > (it's the very first line). And this makes the problem appear with Emacs > 27 and 26 too. So the hypothesis now is that changes in the frame's title, which cause Emacs to update the title by issuing GTK and/or X calls, somehow cause the problem, is that right? > > Anyway, if the changes in the frame's title are somehow related to > > this, their effect is to cause Emacs to call x_set_name_internal to > > display the new title. Could it be that this function takes such a > > long time to execute? Or does it have some strange effect on the WM? > > My vague (and likely wrong) guess would be that the WM knows it needs > some update from the Emacs window, gets it from the title bar before > everything else, and marks the update as completed. Can you please time that function anyway, if only to make sure the problem is elsewhere? How much time does it take x_set_name_internal since its call till it returns, when it actually changes the frame's title?