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: Sun, 26 Feb 2023 15:44:30 +0200 Message-ID: <83ttz8ils1.fsf@gnu.org> References: <04d7cb31-684c-07c0-ee7b-503514fc1a85@yandex.ru> <96b742a05dea855f9636@heytings.org> <853eca8f-5850-dd73-7601-4fad92613ab9@yandex.ru> <0a7313f0-765c-aeca-ae50-6d8adbfb04ed@yandex.ru> <5002b0b34b1067395698@heytings.org> <628d9354-e334-0ad5-39c8-91081a5e9238@yandex.ru> <5002b0b34b1213122157@heytings.org> <5002b0b34b7a73483fe3@heytings.org> <5002b0b34b0ee4220ba5@heytings.org> <20e46a69-8b22-65b6-f725-4ab5e5ec41f0@yandex.ru> <5002b0b34bd381f6d1f9@heytings.org> <8716b41c97734e78145e@heytings.org> <8716b41c9757d7e81bd2@heytings.org> <1dafb35c-657c-037f-8244-4568b4e22fcd@yandex.ru> <8716b41c9708333e6bdb@heytings.org> <6f161919-7ee4-e461-e688-797c76fa6d74@yandex.ru> <83fsatj57m.fsf@gnu.org> <83356sk4jk.fsf@gnu.org> <2d674d22-fe8c-b7a3-115f-515a8a37b7e5@yandex.ru> <831qmck3qt.fsf@gnu.org> <41c5671e-e9c3-33f3-6c9c-8a1a6fc527fb@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7841"; 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 Sun Feb 26 14:45:24 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 1pWHL9-0001ur-Ti for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Feb 2023 14:45:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWHKr-00067r-NF; Sun, 26 Feb 2023 08:45: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 1pWHKp-00067f-7p for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 08:45: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 1pWHKo-0007sv-VO for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 08:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pWHKo-0008E9-Hn for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2023 08:45: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: Sun, 26 Feb 2023 13:45: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.167741907731577 (code B ref 61667); Sun, 26 Feb 2023 13:45:02 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 26 Feb 2023 13:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:42693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWHKP-0008DF-8Q for submit@debbugs.gnu.org; Sun, 26 Feb 2023 08:44:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pWHKL-0008D1-5u for 61667@debbugs.gnu.org; Sun, 26 Feb 2023 08:44:36 -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 1pWHKF-0007cG-38; Sun, 26 Feb 2023 08:44:27 -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=BlumnwtgrM10vc4QnQfIh1tJpg9SozceNjTutYyp5OI=; b=atX1KtXNVAob sLuwj2RQG45Cp4c5VCYj6RgC/A5fKPgzNf4a8W7OvSv31IEK3wG+2IT9mxv+Xu5+gP7Cw+alcTkja ZBIjV0goZj9A9f/cg7IjWSVALwSvJMfO0hxIvu2jp/ab6SGIWdx0XsV216sTuXVe4CMO3lB5VvJxt xDaaoVzK37CuyFyiW87/TR5Rv4haOt5RRFKaGBE7cKEGwaj+Cwvn7vfyUhhQcdYV302ZXrnAm2NfV ECCrWoWbWpXCGEwm8x7lJqncNE9HhrE9IiExjcTrz2KkNxT7Zat/zUR+SgWQWTEwB/yvsYUAoOx0E RVzRSY6TV9a9KQ5FNdYP3Q==; 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 1pWHKD-0006BP-Jp; Sun, 26 Feb 2023 08:44:26 -0500 In-Reply-To: <41c5671e-e9c3-33f3-6c9c-8a1a6fc527fb@yandex.ru> (message from Dmitry Gutov on Sun, 26 Feb 2023 15:21:40 +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:256800 Archived-At: > Date: Sun, 26 Feb 2023 15:21:40 +0200 > Cc: luangruo@yahoo.com, 61667@debbugs.gnu.org, gregory@heytings.org > From: Dmitry Gutov > > So I mean the delay between me either > > - Pressing 'a' in one scenario (the 'emacs -Q ...' one) > - Or pressing 'C-x b xas RET' (using Ido completion with my config) > > and the buffer's text being displayed. OK, thanks. So maybe to make it crystal clear this is not an Emacs problem, we should measure the time taken by these two scenarios, with and without double buffering, from the time Emacs starts and until Emacs sends the XFlush to the X server. If the times are approximately the same, and don't go anywhere near the delays you see, then the delay is not our problem. Po Lu, can you help Dmitry identify the place where we call XFlush after we finish updating the frame and add such a code there? To avoid this measurement affecting the delay itself, as we saw with printfs and trace-redisplay, the timings should be sent via pipe to a file, not to the screen.