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#54450: 29.0.50; redisplay--pre-redisplay-functions issue Date: Fri, 18 Mar 2022 20:38:18 +0200 Message-ID: <83r16zf6n9.fsf@gnu.org> References: <87pmmjw9ru.fsf.ref@aol.com> <87pmmjw9ru.fsf@aol.com> <83sfrffb59.fsf@gnu.org> <20220318174252.xd33nalq4fdwpkeb@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5574"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54450@debbugs.gnu.org To: Ergus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 18 19:39:28 2022 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 1nVHVY-0001GX-A6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 19:39:28 +0100 Original-Received: from localhost ([::1]:41536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVHVX-0006ke-5R for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 14:39:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVHV8-0006YP-UQ for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 14:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36242) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVHV8-000441-LM for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 14:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVHV8-0007ao-FA for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 14:39: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: Fri, 18 Mar 2022 18:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54450 X-GNU-PR-Package: emacs Original-Received: via spool by 54450-submit@debbugs.gnu.org id=B54450.164762870929143 (code B ref 54450); Fri, 18 Mar 2022 18:39:02 +0000 Original-Received: (at 54450) by debbugs.gnu.org; 18 Mar 2022 18:38:29 +0000 Original-Received: from localhost ([127.0.0.1]:58372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVHUb-0007Zy-24 for submit@debbugs.gnu.org; Fri, 18 Mar 2022 14:38:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVHUZ-0007Zj-Fi for 54450@debbugs.gnu.org; Fri, 18 Mar 2022 14:38:27 -0400 Original-Received: from [2001:470:142:3::e] (port=58254 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVHUU-00041U-6d; Fri, 18 Mar 2022 14:38:22 -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=JM4GHLuc7TbrGdu/P748YaDnzrtF38rRiseXVR7DLz4=; b=f1DQrG3aYeQU rOG86iC5xbL92HOhpmEiiVDYP6YAh4ZdIGpRpKF++Cnpocho8iJTx3Ufwj/aBxuFpsbWQY20TTzVI okSYMr834hg1VekkuPA1MYCwkj5l8pfez5/geipV9H2nxygxoragrRe6WIchmlPwgrED9FZkAgc3G Qgfuisk/QG0TumETQEh01WzholY78oI2cCXozxsDNbt9KX6BbvgiejAQCzemg639hccWtbzYW/JUb WmPRepuCv7vU2AwpuxQsR0YgnXG6tsBsZ1EMVv9q9i3d95Ft4PL3xZ3hNFiyOIQnjknuiyf1kVw9q uBEkoAvWRy8t9YPXUcP3jA==; Original-Received: from [87.69.77.57] (port=1365 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 1nVHUR-0006ho-W7; Fri, 18 Mar 2022 14:38:22 -0400 In-Reply-To: <20220318174252.xd33nalq4fdwpkeb@Ergus> (message from Ergus on Fri, 18 Mar 2022 18:42:52 +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" Xref: news.gmane.io gmane.emacs.bugs:228567 Archived-At: > Date: Fri, 18 Mar 2022 18:42:52 +0100 > From: Ergus > Cc: 54450@debbugs.gnu.org > > >+ if (highlight_nonselected_windows > >+ && !NILP (Vtransient_mark_mode) > >+ && !NILP (BVAR (current_buffer, mark_active))) > >+ bset_redisplay (current_buffer); > >+ > > /* Set TO to the interval containing the char after CHARPOS, > > and TOPREV to the interval containing the char before CHARPOS. > > Either one may be null. They may be equal. */ > > Hi Eli: > > Yes, this could solve the issue for the region, but not in general for > redisplay--update-cursor-face-highlight which was the initial problem > with Juri's code. Same for any other function that goes into the > pre-redisplay-functions hook. I asked for a test case, and this is what you gave me. If there's another test case, please show it. > The region example reported in this issue was only the simplest way I > found to give you a simple reproducible snippet, but the issue is a bit > more general. > > With the cursor-face we may have a similar issue cause such hook works > in the same way, so this condition will need to be extended and extended > and extended on every case for every function in > pre-redisplay-functions hook. I need to understand the more general case in practical terms. Then I can think about a solution.