From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mC+dNsUb0GMSKQEAbAwnHQ (envelope-from ) for ; Tue, 24 Jan 2023 18:56:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UK9gNsUb0GN/ZgEAauVa8A (envelope-from ) for ; Tue, 24 Jan 2023 18:56:21 +0100 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 8CD1B20C99 for ; Tue, 24 Jan 2023 18:56:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKNWJ-0008GH-W9; Tue, 24 Jan 2023 12:55:44 -0500 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 1pKNWG-0008Fs-PD for emacs-orgmode@gnu.org; Tue, 24 Jan 2023 12:55:42 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKNWE-0004we-2I for emacs-orgmode@gnu.org; Tue, 24 Jan 2023 12:55:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1A668240318 for ; Tue, 24 Jan 2023 18:55:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1674582935; bh=2HgHUVOJGqd4n16hZ7puO+z70L2g7vQwMJVi+LwUnWI=; h=From:To:Cc:Subject:Date:From; b=HjT8pH55yRWtEaf5I56r91kTAw2jIO8pIReGBKSus/FJU5mxZ2Nt+jefqa4M/MAjR AEAFfGlsrkq/hXJNqfBrrS7HTgIn1J7IXFo9WVSSdYNUi+JPVqnkmZiW0xdT8p/UZa IU1I9egIoZnbobzq2Wroux6XijNwuM/+9OT5bpRIGam2OGhJemILgsild449VmCSiG 3QMJBlGjK7n+bZ6i2dyXk55o37J+i+adLyInkMzPncQqwtXj0HUYYLi3UwzybjgSLO gaBXFLtHuT+qtKZ2JzfFt3Q3z4TQUsQkDOK/jhOKpP23nrvhYGsX+qsebRs4XINMAV t9Hs6Rxj91f3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4P1ZPy26Zdz6tnJ; Tue, 24 Jan 2023 18:55:34 +0100 (CET) From: Ihor Radchenko To: Philipp Kiefer Cc: "emacs-orgmode@gnu.org" Subject: Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded. In-Reply-To: <6595faf6-08d8-bffc-de28-a46dc46923e3@gmail.com> References: <875ycw5fpu.fsf@localhost> <6595faf6-08d8-bffc-de28-a46dc46923e3@gmail.com> Date: Tue, 24 Jan 2023 17:56:03 +0000 Message-ID: <87pmb3olzg.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674582981; a=rsa-sha256; cv=none; b=kbNmQTo+ZOWMV9aytemhmwguZbD6ygNxo/ScPyZGhSmUDnyTY/i8U1wceDowARpUNhUhHC Uil4ijRbfY+mkDVROXSpeDF5dOr0ZWWNm5/9CuE9Ff1JGZqnkLVTVOf0p50E1bCT8eu3BR wN9okr1IfqHhn55XU/64psbVZg9ks1aaOcT5SBlPNcF5OUWb53/b8XLoUbhVMLFC6tlOX9 pV8miRZL9mj+we4YoclDEQLwEEgu1Oxqe20tkPPZ4xCoCrdzjgj7bSkXToM+zZJ77eQYaL ccWsGFAXB4MycTuA/kl8lZU+AddBtj7Tftwyzlhnb9t+SpRKB+d4M0+ov+C+HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674582981; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=iA5jE2AxocmCBdM/SYTmXvf3ejd/3BYC6PCGDOdXJtQ=; b=vD11ozeqDWgFJnMu0FVL6+/wqQJdaSh24u8P9chUdzHMeW0JcaEmcXoKEVD9v/BHB5gpVR dO7HEGUeDXvYw0NhY8eca7KyEFgYWyroM1t/d6k3L4lpAc8hJ8gL4tBtZoWbzF1GmRFmYR loLb5gk/du0n3rVxbx3LAc482MVvMIRbnOOIKLuVxNi5WZX0g/O/9uhtokO457kyYq/KLD AEww0xtbgGxS8z9U8okyhn8dmLqFti9gojw/15ecyg90LSCeRIjAQrQNi8owGzz7cUcijT i5ajtKVGQa84JQ9NynkT4+TCVa/9Wv5aNjgWs+UJ3iQbXYHkOXByFrEq1K5VTw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HjT8pH55; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -8.05 X-Spam-Score: -8.05 X-Migadu-Queue-Id: 8CD1B20C99 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=HjT8pH55; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: ZrovhHPYTWeG Philipp Kiefer writes: >> You set 'invisible text property to nil, which tells Emacs - make the >> text visible. Emacs obeys. > > Well, with Orgmode version 9.5, Emacs was never *this* obedient, i. e. > this problem only began after I updated Orgmode to 9.6, which is why I > considered it a bug in the first place. I am aware I have set the > keywords to be visible but would not expect them to appear at the end of > the parent heading for a folded subtree! (see the screenshots and the > explanatory .org file). Showing them there does not make any sense in my > opinion. I would expect Orgmode to hide these keywords when they are in > a collapsed subtree, regardless of the 'invisible text' setting, which > is how it was handled pre 9.6 unless I'm much mistaken. Org may or may not do it, depending on the implementation details. What you are seeing is because we changed the way Org is folding text to use text properties instead of overlays (see https://orgmode.org/Changes.html). You may get the old behavior back by (1) Setting `org-fold-core--optimise-for-huge-buffers' to '(grab-invisible); (2) Setting `org-fold-core-style' to 'overlays before loading Org. I do not consider what you report as a bug. There were ways to break Org folding in the past (for example, by using overlays with high priority). Actually, I am not sure why you even need to set 'invisible to nil in your font-lock-keywords. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at