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:54:00 +0200 Message-ID: <83pmmjf5x3.fsf@gnu.org> References: <87pmmjw9ru.fsf.ref@aol.com> <87pmmjw9ru.fsf@aol.com> <83sfrffb59.fsf@gnu.org> <20220318174252.xd33nalq4fdwpkeb@Ergus> <83r16zf6n9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3951"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54450@debbugs.gnu.org To: spacibba@aol.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 18 19:55:23 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 1nVHkw-0000sC-U3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 19:55:23 +0100 Original-Received: from localhost ([::1]:58704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVHkt-0002wD-P9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Mar 2022 14:55:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVHkc-0002tr-6W for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 14:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVHkb-0006FM-TK for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 14:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVHkb-000846-ST for bug-gnu-emacs@gnu.org; Fri, 18 Mar 2022 14:55:01 -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:55:01 +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.164762964930927 (code B ref 54450); Fri, 18 Mar 2022 18:55:01 +0000 Original-Received: (at 54450) by debbugs.gnu.org; 18 Mar 2022 18:54:09 +0000 Original-Received: from localhost ([127.0.0.1]:58393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVHjk-00082l-RX for submit@debbugs.gnu.org; Fri, 18 Mar 2022 14:54:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVHjj-00082D-5K for 54450@debbugs.gnu.org; Fri, 18 Mar 2022 14:54:07 -0400 Original-Received: from [2001:470:142:3::e] (port=58496 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 1nVHjd-00069S-Rv; Fri, 18 Mar 2022 14:54:01 -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=exf1jt3Of3+zZBEwcj7cjzcaH3SdB1X4i3OySxjjmzE=; b=FY/A4FCfkfuu Hsi9W35VHJRUso+xLBkJRPjxgDLZzCKwdJPNJsvz6s0FlEKdPWfCTrU27tmwdkLseCOqtH0MUwlWf BsWimntvDx497HRgzJT8SD/3EMt3O7H+zmCIRyj6RSOh6kWcfh2oWYgy3nj+94utGAFMo7XoiwFw1 NtVy0ue812xkumcI+AD69z7egaxb2gnoe3/IjHoI0CtA3R1iNoqJUFGjqj41Yumyx0d6MKrIf1EyF Bbillrx6C3KFPZovxGwrcOA3M2qmzbKxm2r3lWUJ4tI2+n932WeLPDK19LWxssVLr446HZ3YoHdXP BiY4kXhZAZyPM2B/qhicaQ==; Original-Received: from [87.69.77.57] (port=2319 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 1nVHjd-00086u-CJ; Fri, 18 Mar 2022 14:54:01 -0400 In-Reply-To: <83r16zf6n9.fsf@gnu.org> (message from Eli Zaretskii on Fri, 18 Mar 2022 20:38:18 +0200) 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:228569 Archived-At: > Date: Fri, 18 Mar 2022 20:38:18 +0200 > From: Eli Zaretskii > Cc: 54450@debbugs.gnu.org > > > 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. But before you do, please try the alternative patch below: diff --git a/src/xdisp.c b/src/xdisp.c index 5cb5839..6d8d4aa 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13211,7 +13211,8 @@ prepare_menu_bars (void) struct window *w = XWINDOW (this); if (w->redisplay || XFRAME (w->frame)->redisplay - || XBUFFER (w->contents)->text->redisplay) + || XBUFFER (w->contents)->text->redisplay + || w->last_point != marker_position (w->pointm)) { windows = Fcons (this, windows); }