From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2BYfFRS20F6EOgAA0tVLHw (envelope-from ) for ; Fri, 29 May 2020 07:13:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aJLgEBS20F4rHgAAB5/wlQ (envelope-from ) for ; Fri, 29 May 2020 07:13:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CD62B9404C5 for ; Fri, 29 May 2020 07:13:23 +0000 (UTC) Received: from localhost ([::1]:55764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeZCj-0008CY-6E for larch@yhetil.org; Fri, 29 May 2020 03:13:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeZC1-00085U-3m for emacs-orgmode@gnu.org; Fri, 29 May 2020 03:12:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49883) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeZC0-0004UX-Hm; Fri, 29 May 2020 03:12:36 -0400 Received: from [176.228.60.248] (port=3031 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jeZBy-0000mU-SX; Fri, 29 May 2020 03:12:35 -0400 Date: Fri, 29 May 2020 10:12:27 +0300 Message-Id: <83pnanqko4.fsf@gnu.org> From: Eli Zaretskii To: =?iso-8859-1?Q?K=E9vin?= Le Gouguec In-Reply-To: <87a71rhm3i.fsf@gmail.com> (message from =?iso-8859-1?Q?K=E9v?= =?iso-8859-1?Q?in?= Le Gouguec on Thu, 28 May 2020 21:54:09 +0200) Subject: Re: bug#41584: 26.3; org-indent-mode's line-prefix text property flickers near overlays References: <87a71rhm3i.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 41584@debbugs.gnu.org, emacs-orgmode@gnu.org, dgutov@yandex.ru Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: RR84hay0lIVU > From: Kévin Le Gouguec > Date: Thu, 28 May 2020 21:54:09 +0200 > Cc: emacs-orgmode@gnu.org, Dmitry Gutov > > - emacs -Q > - C-x C-f repro.org > - M-x org-indent-mode > - M-: (insert "* heading\ntext") > - M-: > (let ((ov (make-overlay (point-at-bol) (point-at-bol))) > (val (propertize " " 'display '((left-fringe right-triangle))))) > (overlay-put ov 'before-string val)) > - RET > - a > > When "a" is inserted, org-indent-mode's line-prefix disappears on the > *previous* line ("text"). It remains gone as long as I type > self-inserting characters, until > > - I type certain commands, e.g. RET or C-j, or > > - I insert a closing delimiter that makes > blink-paren-post-self-insert-function blink the corresponding opening > delimiter, e.g. ')' or ']'. > > Then the line-prefix shows up again. In fact, it's enough to type "M-x". Which is a clear sign that some redisplay optimization kicks in where it shouldn't. And indeed, setting inhibit-try-window-id non-nil solves the problem. I will look into this when I have time, thanks for an easy reproducer.