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#74876: 31.0.50; Force fringe refresh / force-window-update not affecting fringes Date: Sun, 15 Dec 2024 09:06:55 +0200 Message-ID: <86seqps9v4.fsf@gnu.org> References: <7yl87cc0algqh3xvlrywg2z8@mina86.com> <86zfkyrovc.fsf@gnu.org> <40wpfj26bxd5k4i38c92e0sr@mina86.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13766"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74876@debbugs.gnu.org To: Michal Nazarewicz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 15 08:08:29 2024 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 1tMijt-0003S7-1h for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 15 Dec 2024 08:08:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMijT-0005sj-QD; Sun, 15 Dec 2024 02:08:03 -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 1tMijS-0005sX-7j for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 02:08:02 -0500 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 1tMijR-0002Cu-VP for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 02:08:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=Nxqbg29dTCKAWJPb4RnHdx/Uu5TRhGoFHvmbyqiurUU=; b=o1i54GvlIPCDIlci9+99Ov6eX6xH/2OrAPd8c9mCW/Lqr3vqo1H2vQPr8JHPBJ+QgWJX2WTQk48nxEyz26FgVq0t3qkqJlhMczSAoAHU/szd1xH4JGiDvqaqanPyewKTqOhlpp9CDLQ/QXr33W3DIKjIDDWKQ1YfL4DGaG8bjipRqF/MvJBqQqSKRag3BAfgNLYKhKbgeVTAldjBAMYZ9SUNzGPa+ehszuJBYORH4Jf7uuNYol/ev0VUf8eq2H2rt/MFb+BU5Zw4Iq7/ThjWvWmcTOzpqhkHs8G2sPgiaHVirIBuNPeLrGwbmPLF62al4Iq0/DQ1C8HT6ohhofyHug==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMijR-0004c4-Pi for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2024 02:08:01 -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, 15 Dec 2024 07:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74876 X-GNU-PR-Package: emacs Original-Received: via spool by 74876-submit@debbugs.gnu.org id=B74876.173424643417656 (code B ref 74876); Sun, 15 Dec 2024 07:08:01 +0000 Original-Received: (at 74876) by debbugs.gnu.org; 15 Dec 2024 07:07:14 +0000 Original-Received: from localhost ([127.0.0.1]:49412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMiie-0004ah-Vd for submit@debbugs.gnu.org; Sun, 15 Dec 2024 02:07:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMiiY-0004a2-Hn for 74876@debbugs.gnu.org; Sun, 15 Dec 2024 02:07:10 -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 1tMiiR-00028C-J1; Sun, 15 Dec 2024 02:07:00 -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=Nxqbg29dTCKAWJPb4RnHdx/Uu5TRhGoFHvmbyqiurUU=; b=cqOd13Vwcxlb k8Ly13LIp+ydrnNbvbxZyjmouwM9pwMgGbnhLo31IJEkbmGxoWRT+/6p9cTQNiymMrJCccYrTQ1QP ip3wxPWCHjZ+QQzjxyrEA9NlPvajUmIYtsk6bjS+ksrK8lOMVZD5tu97MwyKEPfDl7qKlnHyou9pM F8Q3RO9rFeoMY41Hs7AIU3p0pqsJPwkO+g9pJtGMseeD1FxR+LT8sMblKVLFuMFBZS8RD4GhyiU++ Gr3k/w4C5N+ZrFHpzWenaZkzN+WU8Ns7tg9uQvD/Shcj0g/DJeLirv06dvdn/1Wwxl03i5H8J8Y96 0dAfzwVzZZc+aZRhbx5sWA==; In-Reply-To: <40wpfj26bxd5k4i38c92e0sr@mina86.com> (message from Michal Nazarewicz on Sat, 14 Dec 2024 22:39:19 +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:297086 Archived-At: > From: Michal Nazarewicz > Cc: 74876@debbugs.gnu.org > Date: Sat, 14 Dec 2024 22:39:19 +0100 > > 1. Open two windows with two long buffers. > 2. M-x adob-test-on RET > 3. Scroll current window with M-v. > 4. Switch to the other window with C-x o. > 4. Scroll other window with C-M-v. > > Expected: at all times, the fringes of the selected window are red while > fringes of the other window are grey. > > Observed: Fringes are updated only when window is scrolled and new lines > are shown. Thanks. I don't think what you want can possibly work, unless we completely redesign how the fringes are updated. The current design is that we update the fringes only on the screen lines where redisplay changed something. Since redisplay goes out of its way to try not to redraw screen lines that don't need redrawing, this means that you cannot reliably force the entire fringe of a window to be redrawn, unless you (almost) completely change what is shown in the window. You can see this if, for example, after step 1 you move the cursor with C-n until point goes out of the window and Emacs scrolls and recenters the window: only the lower half of the window gets its fringes displayed in the red color. That's because the upper part was not redrawn, just scrolled on the screen. Sorry.