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, 2 Mar 2023 17:45:05 +0200 Message-ID: <8eda4f1e-233e-4963-1b1d-75945eca01d4@yandex.ru> References: <04d7cb31-684c-07c0-ee7b-503514fc1a85@yandex.ru> <41c5671e-e9c3-33f3-6c9c-8a1a6fc527fb@yandex.ru> <83ttz8ils1.fsf@gnu.org> <8716b41c9716878d8cb9@heytings.org> <8716b41c97839d6a8b87@heytings.org> <7fee18a7-3307-b6de-1428-ae17d51c85af@yandex.ru> <9ac9271f1ee55a9b8bbf@heytings.org> <87a60y13ou.fsf@yahoo.com> <674e150e-fcbe-7d67-962e-214cfaec2ca0@yandex.ru> <875ybl1dii.fsf@yahoo.com> <2b249c97-db63-34e1-80c2-0c898005e31f@yandex.ru> <87zg8xyt0m.fsf@yahoo.com> <25c817d9-f969-8c24-6ed4-9b35fd6f27ad@yandex.ru> <87sfeozn8f.fsf@yahoo.com> <87o7pczlsq.fsf@yahoo.com> <43d50d6a-1eb0-cd42-0479-3f9d4d74904a@yandex.ru> <87ilfkyorf.fsf@yahoo.com> <8f4df0d7-eb1a-379a-db03-314f2c93743b@yandex.ru> <87a60vztad.fsf@yahoo.com> <14405ac4f8f101c35628@heytings.org> <60c92936-2a75-a254-145a-6a0a1656a645@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27487"; 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: 61667@debbugs.gnu.org, Eli Zaretskii To: Gregory Heytings , Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 02 16:46: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 1pXl8T-0006zU-3v for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Mar 2023 16:46:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXl8B-00024z-9j; Thu, 02 Mar 2023 10:46:07 -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 1pXl87-00024l-F5 for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 10:46:05 -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 1pXl87-0000iW-1c for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 10:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXl86-0004ut-I2 for bug-gnu-emacs@gnu.org; Thu, 02 Mar 2023 10:46: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, 02 Mar 2023 15:46: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.167777191518807 (code B ref 61667); Thu, 02 Mar 2023 15:46:02 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 2 Mar 2023 15:45:15 +0000 Original-Received: from localhost ([127.0.0.1]:58148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXl7L-0004tG-EM for submit@debbugs.gnu.org; Thu, 02 Mar 2023 10:45:15 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:35337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXl7K-0004t1-7N for 61667@debbugs.gnu.org; Thu, 02 Mar 2023 10:45:14 -0500 Original-Received: by mail-wr1-f45.google.com with SMTP id q16so16991243wrw.2 for <61667@debbugs.gnu.org>; Thu, 02 Mar 2023 07:45:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677771908; 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=pzeoBkPjAJ0WTVS7oF9CdYmUISx5DodTYrJv3DSkOWQ=; b=BPqa0XddJKmiMmZobImRR7CzNjckTkVJFl95yJtcE9VNbL7ylbTODxbtw0WtmgbNbw gZEzNHeSSp9v0rNOv6ZZ2jmvoczceeqwBz8gSAPQqkLDHyr9H32JqFCHp3rVnOn0/Nz2 LcLg/dxbBZ2jR4huvv0X5QwkStEaHwVxLaorHBgSdTc4mLYPBa/5cvPiW/1+1NAXlR3h wpuVT9LPzQRKEyEIwAEkX/WH5O0KjnnF2Fmq0VyZe2wtKqLNnzEK6qTgFPSUpqcICO1z J/B0loQJWn5c6G3/HJMuLvY2jzMkMMpcWmuyBZN0wVzJIEFnuLi3vsqFCk+Mxx1gPWgl oIRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677771908; 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=pzeoBkPjAJ0WTVS7oF9CdYmUISx5DodTYrJv3DSkOWQ=; b=jjWH5JfPrUxDRXjDVg1yeqbteFMXy7TX1+irHWS0iyprx4UkH0fMnnMogrIem57aol 6eu821Yplml3t8zUS5DQtasgv88wSOOLHn4IrZCQv3NyDTkvlHZDPpjBqtJLjm7jKWTG SwtSMXt5oZ7SFXF8muB5/Gg7R7D9LYGi+P1oQ95ePfxwB8MTm55/csnF2AfpXBG1pbKx YJyCSh1VTqko1rmdWUrNgGRm5GqS7a733ZwJQzD8WF+85HeGape4dXZWQhVUQY27b9Vk sDqVmGpOZifyV+uzrdaoYSSrCy6Cqp4kUP9X2zKP6fAZ7/JacY98zW2O3hJYvFQ/08ef Q0Ug== X-Gm-Message-State: AO0yUKUv0JbteVz+OJoGgQC+JjTY1vJw2KFFvlWUTSt5avJFjH/AaT18 8KsoU9UdgMnKx6Gn4LinmO0= X-Google-Smtp-Source: AK7set+CfLCcx9MKJSJ5TKlDmgvwMcL+FcNZviYhQDPJZfpIjU0ZAjOYu44vYjxFL9Viin4h5Xy87Q== X-Received: by 2002:adf:e5c1:0:b0:2c5:5d15:4e25 with SMTP id a1-20020adfe5c1000000b002c55d154e25mr7809313wrn.16.1677771907923; Thu, 02 Mar 2023 07:45:07 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id r14-20020adff70e000000b002c567881dbcsm15563433wrp.48.2023.03.02.07.45.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Mar 2023 07:45:07 -0800 (PST) Content-Language: en-US In-Reply-To: <60c92936-2a75-a254-145a-6a0a1656a645@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:257164 Archived-At: On 02/03/2023 15:39, Dmitry Gutov wrote: > On 02/03/2023 11:30, Gregory Heytings wrote: >> >>>> So... in both problematic cases is seems like there is a >>>> show_back_buffer call right after x_set_title, and yet it does not >>>> reflect on screen. Right? >>> >>> Yes. >>> >> >> How can you draw such a conclusion without knowing what the back >> buffer contains?  The fact that show_back_buffer is called doesn't >> imply that it contains what Dmitry expects to see, namely the contents >> of the xassociations.rb file. > > The problem here is that there is no subsequent show_back_buffer call > which corresponds to the "correct" frame contents. But the correct > contents do get displayed (albeit with delay). > > The only next (last) one is me pressing "C-x" in "C-x C-c", I think. I've done so further investigation. Started with trying to find out which part of x_set_name_internal causes the problem. Commented out this or that call, and none seemed to make a difference. So I commented out both existing calls to x_set_name_internal: in x_set_name and x_set_title. Recompiled -- and the problem still reproduces. Then I added --eval "(setq frame-title-format \"aaa\")" to the command line, which we previously identified as potential fix/workaround -- the problem _still_ reproduces. The frequency seems to be ~the same as without it, as long as the x_set_name_internal calls are commented out. With x_set_name_internal not commented out, (setq frame-title-format "aaa") seems to lower the frequency of the issue, which coupled with blink-cursor-mode (which was previously on, and which fires timers over regular intervals) made it rare enough for me to declare the problem absent. And also this addition, which now seems to make the problem _more_ likely to happen" --eval "(add-hook 'find-file-hook #'redisplay t) So I went back to the previous Emacs versions. This MRE: src/emacs -Q --eval "(tool-bar-mode -1)" --eval "(menu-bar-mode -1)" --eval "(scroll-bar-mode -1)" --eval "(global-set-key \"a\" (lambda () (interactive) (insert \"!\") (redisplay) (find-file \"xassociations.rb\") ))" --eval "(add-hook 'find-file-hook #'redisplay t)" --eval "(blink-cursor-mode -1 )" --eval "(setq frame-title-format \"aaa\")" Press 'a'. See if the buffer is displayed after a delay. reproduces (though a little less frequently) in Emacs 28, 27, 26 In 26 it happened ~5 times over 100 tries. It doesn't seem to reproduce in Emacs 25, though that version is pretty buggy here: it tends to hang during startup (around 1 in 6 times) and I have to pass --eval "(set-frame-size nil 40 18)" for its window to have a reasonable size. --eval "(modify-frame-parameters nil '((inhibit-double-buffering . t)))" still seems to be a reliable fix, so maybe Emacs 25 is by definition unaffected. --eval "(modify-frame-parameters nil '((undecorated . t)))", OTOH, we can also cross out from the list of fixes: the problem still happens with it, though seemingly less often (first repro at the 15th try).