From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michal Nazarewicz Newsgroups: gmane.emacs.bugs Subject: bug#74876: 31.0.50; Force fringe refresh / force-window-update not affecting fringes Date: Sat, 14 Dec 2024 22:39:19 +0100 Message-ID: <40wpfj26bxd5k4i38c92e0sr@mina86.com> References: <7yl87cc0algqh3xvlrywg2z8@mina86.com> <86zfkyrovc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2184"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74876@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 14 22:41:25 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 1tMZt7-0000RV-4Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Dec 2024 22:41:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMZsm-0002zd-Ks; Sat, 14 Dec 2024 16:41:04 -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 1tMZsk-0002zK-KC for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 16:41: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 1tMZsk-0003Ow-Ba for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 16:41:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=GmTCuEHXR3SXsdA7BkZBrelaPaqNqTNqUZiVQ3C94Vs=; b=HcHCuus1f63XPynkv5w08y3q8taytkIchzwiRJXp2FwiXs01hYJdXCEnJF7q9mIyfGeO1DV5BQIRIHmDvlfMwnwHEYIPrZ0bb3A6Yp6h0k2b8HvhG9La7hl/lfUQOYhghPIpx/t6TRCwnQxU2T+Vu3epJhgkV7ApmnXbQef6i8Xlso7T7PtOGhF7DcqV621+TaG/kSXsKyGaupyaa/1m44zj6m4uJDESxrCa15RYqDbFIK/1Bcr1nimCgQ1kMvby3LoguQSFt+BUdmXS8kTBVjlsCpEKfhCcDm3MDlo4Deh+HA1uzg0CJTqlLSZfcRkbBXEnxRKy8VetZQgJ75OCEw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMZsk-0001Ho-5q for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 16:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michal Nazarewicz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2024 21:41:02 +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.17342124274868 (code B ref 74876); Sat, 14 Dec 2024 21:41:02 +0000 Original-Received: (at 74876) by debbugs.gnu.org; 14 Dec 2024 21:40:27 +0000 Original-Received: from localhost ([127.0.0.1]:48625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMZsA-0001GS-Kd for submit@debbugs.gnu.org; Sat, 14 Dec 2024 16:40:26 -0500 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:56404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMZs8-0001GJ-8a for 74876@debbugs.gnu.org; Sat, 14 Dec 2024 16:40:25 -0500 Original-Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5d3f65844deso4640546a12.0 for <74876@debbugs.gnu.org>; Sat, 14 Dec 2024 13:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734212362; x=1734817162; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:face :references:in-reply-to:subject:cc:to:from:sender:from:to:cc:subject :date:message-id:reply-to; bh=GmTCuEHXR3SXsdA7BkZBrelaPaqNqTNqUZiVQ3C94Vs=; b=Mkd43PxU3eo4Tyn2E5J1958ApwyXQy9Y04yXotBogwnWHZZtOB640hYPlO+Ey2Fypx Y9LJCswAzJOAh4C6xEqYzzsIT2wtRvt9HnAZ1XJ3cdrD3Bezm+kqWD8JbxV+/jH5KI/O 26AN5qX9LNVBqnI2/zWLxhA48tKGtwRs/QKIdYh2m9kVGqqc7CrY1QXXcRSC2TPCxN0R fUeT6PIifDflsrME2vnIIADvBl7qHTc8IMcjf4DEXY/MEnMRTmlXi0kN8+myIP5kSmrO kRnyD9oBDWh4OokMjp2qfKKpfxh7/Djn8NE8sQ2aGr97wdZLUp7TV/XQmg+V4RGRq0VM +twQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734212362; x=1734817162; h=content-transfer-encoding:mime-version:message-id:date:face :references:in-reply-to:subject:cc:to:from:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GmTCuEHXR3SXsdA7BkZBrelaPaqNqTNqUZiVQ3C94Vs=; b=oEOaCVMxA4fc3gFvzq5HCOFJ91ULqj8t1Ojt2DCOcM4Tv8uDQTwaKC6O68hEQd40Sp u8hlPEJawtUM5zajeubcTdKQRvqDsNLfc7FiRnYcnup5sHK7gP25Rez46Hu13EABEQEo Pau/RT6QqcEHXqk7A5YJ0GWds02fXR8NZEU14r0aVhN063Qy7QJ8tk6aUBFc16RuGHQH jjXmitTTnG+r5fsZPl3/UWI2/rmWUaYH5U4nggTEEgIZ8MUvE3jb3kiTWXvb1Gj44BlW 7LIn1xwtWEkS8EzKR6L2nLBkJD7XIfLM1K7aVkR79RqJXP9WqpQYP52QzkpAtsziauxB //Bg== X-Gm-Message-State: AOJu0YxqWDoCWFvYPH6bthrBHXdA9g7WVG+VZgEI3/NeI5IX5zx2TpwO fThA1OO23hMo6pBlTL+9fHuScOuPXc1GNNA8ccI6LXIBo+nFQ85Mc8lKsg== X-Gm-Gg: ASbGnctm2IkWeao1PsbKed0oZ2+Fjdrn5LBd4pHrxSFiKxKJuxfwESoU4LscY2C0xTN j/LD1EFLQ23fgeYRRRlLzSo5IlR1kVUkW6r08Ro45FQPLSk6lFSG2dqmWWpy9dsBcY268apM/8y mdXu0yHEpZXIZrYvazCnCvZdCNVms4Lxk3uy3P4jLiwD3qD+NONJxdfOrKG6R36eCDDfhSHrgmI zdQSEw6643bqVWGgGNPgq3av1B+K5l+hHJT3/ElyW5IIkk3frqdGH/d6yWqgcS2mn6INkLTUn7S Xu9BDA== X-Google-Smtp-Source: AGHT+IG9fZbRBmeo7AgjDVd+ZzL920Y975pi0xMfSpRRfXzNhyQT3wW9U4EyYmUuGwIjcSAM0KXNcw== X-Received: by 2002:a05:6402:270f:b0:5d0:bcdd:ffa8 with SMTP id 4fb4d7f45d1cf-5d63c2e7bcdmr5773355a12.1.1734212361809; Sat, 14 Dec 2024 13:39:21 -0800 (PST) Original-Received: from erwin (87-205-2-211.static.ip.netia.com.pl. [87.205.2.211]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d652ad1805sm1353491a12.27.2024.12.14.13.39.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Dec 2024 13:39:21 -0800 (PST) In-Reply-To: <86zfkyrovc.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWjgIPUupJ7V0jLrom4gmjPs42bY0MdFRLHgE5UPDCbfGm9mH6qmkAJAAACNUlEQVQ4y23SMW/aQBQHcKtb2Zx0abZeIxuTCSELJVmiinboRpGHJktloROQzUQcB2vUXFe35XBYUicRAiYUVSjfru/d+QwlnDz5p/97z+dnVcw5WVQ2zxpcdrQTTiIin3bB6lcaTnaBO5c8eoJG2yBl5El+Ob3fglMW3RUIkQ9xxQ8UBEFQafiVZ/5wZqWExM+LvwEegAY856xZO7MgQkq3jxpO56GXxO5VDQAjpVmWqPLYoSGvIahIuvAVHLeEEDd9DRYAkUcKzscAUgCQ0hwSKBOExuh7kvQQUskY4yjsHqeaCfFjLK6x1AzeeyiRD/C1JW5aGqw5IS5mZre+FVz0RVtoUGPJmBCP/4QPJGKUA1oEMJwAHIv+JljYZYCJi1FRQS2DaUw6sgsQTMfb0Fz9RvjyP3iR01x9RGj0N6HgcefS819CSjidDwIFPSFEDgRg1tUw2oBXAB33T2DV63XbM6AqhZzysm3ZcKZrKBAn5O7Q1rAqGoBKNGRsmUG1n0NKaJtd2RnscTWvnom6fGngDaNrCNl728A+c2gLQP8PFpkEjNWjlGqQfPEhWRqoInSyi2p+drsGDjhAeAeSQI8kfjSwbwCn8gblvIftInzT30HdQT2HlU4gwCbLSQ7VFqVEA0RCtjTwtnjdLlkasNjQwF7x02F2iQSL8XIGB8 VQ71WBKHHf5XCIgLUUtIcGSBPhdZIQorpEBrxsqT3GYgRpmicIqrsEgSZm3FG+iJbHYid0/wGj+iTGCXRsqQAAAABJRU5ErkJggg== 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:297077 Archived-At: On Sat, Dec 14 2024, Eli Zaretskii wrote: > Can you show a simple Lisp which could be used to investigate the > behavior and perhaps see how what you want could be enabled? ---- >% ---------------------------------------------------------------- (defvar-local adob-remapping nil) (put 'adob-remapping 'permanent-local nil) (defface adob-test '((t :background "red")) "Test") (defun adob-test-for-each-window (func) (save-current-buffer (dolist (frame (frame-list)) (dolist (wnd (window-list frame)) (set-buffer (window-buffer wnd)) (when (funcall func wnd) (force-window-update wnd)))))) (defun adob-test-update () (let ((face '(:filtered (:window adob-test t) adob-test)) (selected-window (selected-window))) (adob-test-for-each-window (lambda (wnd) (let ((val (eq wnd selected-window)) update) (unless adob-remapping (setq adob-remapping (face-remap-add-relative 'fringe face) update t)) (unless (eq val (window-parameter wnd 'adob-test)) (set-window-parameter wnd 'adob-test val) (setq update t)) update))))) (defun adob-test-on () (interactive) (adob-test-update) (add-hook 'post-command-hook #'adob-test-update)) (defun adob-test-off () (interactive) (remove-hook 'post-command-hook #'adob-test-update) (adob-test-for-each-window (lambda (wnd) (when adob-remapping (face-remap-remove-relative adob-remapping) (setq adob-remapping nil) t)))) ; (adob-test-on) to enable ; (adob-test-off) to disable ---- %< ---------------------------------------------------------------- 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. --=20 Best regards =E3=83=9F=E3=83=8F=E3=82=A6 =E2=80=9C=F0=9D=93=B6=F0=9D=93=B2=F0=9D=93=B7= =F0=9D=93=AA86=E2=80=9D =E3=83=8A=E3=82=B6=E3=83=AC=E3=83=B4=E3=82=A4=E3=83= =84 =C2=ABIf at first you don=E2=80=99t succeed, give up skydiving=C2=BB