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#66922: 29.1; No redisplay of buffer, even after using `force-window-update' Date: Sat, 04 Nov 2023 09:13:25 +0200 Message-ID: <83r0l656ui.fsf@gnu.org> References: <8334xm7jsm.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36938"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66922@debbugs.gnu.org To: dalanicolai Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 04 08:14:43 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 1qzArj-0009RN-DG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Nov 2023 08:14:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qzArW-0005Pb-3P; Sat, 04 Nov 2023 03:14:30 -0400 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 1qzArT-0005PM-S8 for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 03:14:27 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qzArS-0008DA-6U for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 03:14:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qzAs2-0005ZW-6O for bug-gnu-emacs@gnu.org; Sat, 04 Nov 2023 03:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2023 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66922 X-GNU-PR-Package: emacs Original-Received: via spool by 66922-submit@debbugs.gnu.org id=B66922.169908205521339 (code B ref 66922); Sat, 04 Nov 2023 07:15:02 +0000 Original-Received: (at 66922) by debbugs.gnu.org; 4 Nov 2023 07:14:15 +0000 Original-Received: from localhost ([127.0.0.1]:60329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzArH-0005Y6-0f for submit@debbugs.gnu.org; Sat, 04 Nov 2023 03:14:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qzArE-0005Xq-2M for 66922@debbugs.gnu.org; Sat, 04 Nov 2023 03:14:12 -0400 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 1qzAqY-0007zv-Hy; Sat, 04 Nov 2023 03:13:30 -0400 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=4T6mr8m2mSWYdtuOCD8il2zrCL85/A5xTRPnUHnEwbc=; b=EuCHbg9Wtnbv FGY25DIcMjQJf39RaJk22kqBZpNZLeCiP8PCARm6Z3GAN+Tgj4loMzpRx8Kxa+16zT4gNrOaRG/3U QgSNh/nldW2hAZjBJWUkYZQrwG8xsj/iEEW1tMOoE9xVXNmjw5PXm5ATx6zTTrav6jwKwriX2qNbG 7IQvvQmqDX8YXwQMstifc1sN9Vk/TrGHmSjdoMfPAHSDS6JY4m+Mck1gwgIAaTnB+vmxlPsGhCO4q WCgiojnknfs76y0X1wPf0lxZoL7vTWRHgYRctm3zW10tcKFedpPRW2YBBtxbg8QEvWfFZ9ClDldC7 NWFQP/4nPFW2P2Tjh8Hjpg==; In-Reply-To: (message from dalanicolai on Sat, 4 Nov 2023 00:23:30 +0100) 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:273745 Archived-At: > From: dalanicolai > Date: Sat, 4 Nov 2023 00:23:30 +0100 > Cc: 66922@debbugs.gnu.org > > Sorry Eli, I don't know what you mean here. Over here the problem does > occur also in the GUI, and I am using the print to > 'external-debugging-output' because the lwarn is what causes the > problem. I explained in the bug report that the window-start does not > get updated when including the lwarn after the forced redisplay (the > point is at 11, but window-start is still at 1). Sorry, I didn't understand what you considered a "bug", because your original description has all but drowned that in the long description of what the code does. So I thought that "messes redisplay" is the problem, and that it alludes to the text from external-debugging-output that appears inside the window of the TTY frame. If your problem is with window-start, then the reason for that is simple: lwarn pops up the *Warnings* buffer, so the call to window-start returns the value for that buffer, not for the "example" buffer. If, after running the recipe, you do C-x b RET M-: (window-start) RET you will see that window-start in "example" is 11, as you expect. So I see no bug here. > (Also obviously, I can not use a normal print/message, when > 'investigating' redisplay issues) Of course, you can: use 'message', and then look in the *Messages* buffer.