From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yPmOCZ8G0WPyRwAAbAwnHQ (envelope-from ) for ; Wed, 25 Jan 2023 11:38:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +FhpCZ8G0WP5MAEAauVa8A (envelope-from ) for ; Wed, 25 Jan 2023 11:38:23 +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 D73901640A for ; Wed, 25 Jan 2023 11:38:22 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKd9r-0006l4-Sa; Wed, 25 Jan 2023 05:37:35 -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 1pKd9p-0006kR-EL for emacs-orgmode@gnu.org; Wed, 25 Jan 2023 05:37:33 -0500 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKd9m-0008Sd-C6 for emacs-orgmode@gnu.org; Wed, 25 Jan 2023 05:37:33 -0500 Received: by mail-ej1-x62a.google.com with SMTP id mg12so46412717ejc.5 for ; Wed, 25 Jan 2023 02:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4YBZRCxo2dnetJni5F3BQEHY1OLA5+AHdQfyAD5AKdQ=; b=FFuHFbby1tYfCrtyXE3LKwrAsi9c8wq52Qbe7OEJizgWaMv0Z27OIHhMUKyL/JtVHw aAA3UaH4dSkVlP/30FWJwtiN9+TRvD4fEPfrkGwvtLnRkHX2B80vM6nn1I0iL2KCJKTo QYDGDeyoi7TUP/pwkwIYbx9C9WA3TKWklzc1AKhlGxGztrncRxjwgXoTjSJglm9evsnj dmXpDNRIPRy6UflJXfNIZ4kJWAos8Di5gvuxUJZrSLBlt+7GyttF3xn+vXEblxjgnrl6 0NR8HiCS6hkRK9k3nKrd32qhtolCjPhQCn6+QQQEIenBsLu7mFiSfssJEe+Q4nAypaeT knZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4YBZRCxo2dnetJni5F3BQEHY1OLA5+AHdQfyAD5AKdQ=; b=A+aZMIvOkUkuXTo1gAfHxMYpg7XT53vzCR0exN4kfpQJncS394trdqnTBpNOCA3xdI RVnEdZh1f5GvuCPUH7qq3JK6vpax0QEeVjNL0/MuXcsmyMXbf2aQuay+tHwqOalN8ABF yGTLyiiO1CEGYVr1vFqdt9RqXRz9L0qidO4m/6Bit/5nzsoVqPtrIaX0RoKOxRZI+T9l ocf+AKceys1DVXIZ+Q7BiknvrOf8LcT1iyiEph8mwDn5JOt/L2Q9mspxX7glYBrw5VRW ruDZztNd/umX7X1e9OGfDJMPr1PxBcTe1iWMdYijREo5SMoLkrpqg6VTCoA1pXUdDAfm mSJw== X-Gm-Message-State: AFqh2kr8hJZr3J9QcoWnyVCmOQtlHKDoMbvWNK4DphnrN3zMJRF1palI StAJW0AnxDHsQHHCre9ROVw= X-Google-Smtp-Source: AMrXdXvCng5msZTHM30MbwWxTz78qv/K+gMo/NiEwITcGXbE16v79cO9bnKX9Vy1kyYZrvDagmYwKg== X-Received: by 2002:a17:906:9495:b0:7c1:6fc:6048 with SMTP id t21-20020a170906949500b007c106fc6048mr30967731ejx.24.1674643048642; Wed, 25 Jan 2023 02:37:28 -0800 (PST) Received: from [192.168.178.58] (55d41dee.access.ecotel.net. [85.212.29.238]) by smtp.gmail.com with ESMTPSA id w22-20020aa7cb56000000b004847513929csm2203527edt.72.2023.01.25.02.37.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Jan 2023 02:37:28 -0800 (PST) Message-ID: Date: Wed, 25 Jan 2023 11:37:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [Bug] 'org-font-lock-extra-keywords' appear next to the parent heading when its subtree is folded. To: Ihor Radchenko Cc: "emacs-orgmode@gnu.org" References: <875ycw5fpu.fsf@localhost> <6595faf6-08d8-bffc-de28-a46dc46923e3@gmail.com> <87pmb3olzg.fsf@localhost> Content-Language: de-DE From: Philipp Kiefer In-Reply-To: <87pmb3olzg.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=phil.kiefer@gmail.com; helo=mail-ej1-x62a.google.com X-Spam_score_int: -31 X-Spam_score: -3.2 X-Spam_bar: --- X-Spam_report: (-3.2 / 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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-1.148, RCVD_IN_DNSWL_NONE=-0.0001, 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=1674643102; a=rsa-sha256; cv=none; b=N/SOdP+/Eo1CeWNwtejphwJKrkLNP/QT+Kn2VrwjoMAX29x+qSrjMrK5JLSGrwCPiPHKZh XlZcGtZQl/V5h12nOt6AcDcNqv+nU5swyeuYHefdur6gKkdYh6ced6IBq5AwUzJYcqq/BK XbL/CA7aygRY/DmgEgA70L/FCJbRkiGPd55vmiNKcTpi0d50XknpHOmZmG6tRrNPFRtO14 XJom4OjpyemTZ5Gj4tdQlZgclFOdb/RVejLZ/QG1mGFTEGrZnW7GablFsaMso3UEYAhGXx qLpbeqy9oagh9sPclaujeyweAA1lkerCCPGORGkd/oItdgMhTZ/5D0iAcbWZjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674643102; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=4YBZRCxo2dnetJni5F3BQEHY1OLA5+AHdQfyAD5AKdQ=; b=NO67DYZJ+XUIdR78jwnMuINdrcBNTV20RtpUqXQS2T5smnjyVz4xZ64N9yCCvJff85vXV2 vs1leL5Gd4/xIU4PXSdBUPkX/BmhQutra34qg7okVMVOil+Xu/OdI/UN/nhuTfb8MUUE3u 2pn1MR/BGYXfcgwKo2mbgjWlMiOHYqVwqcRF6vrSvPh/LKxZ5ia+faAEATQvIBmeWq9QCG T1Jyaxf0teMNBIjkLHNf3hvrCNFTgscL990KRTkTs60QXbMf1RDxf7vO2QYwqmkH55zzqi 8dA6+UMgGR1Twp65Aka4+Hvh8pSIG93qkPtcZbVD8F/WgzEcUMSQUhz6ZiMCpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FFuHFbby; 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=gmail.com X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -8.55 X-Spam-Score: -8.55 X-Migadu-Queue-Id: D73901640A Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FFuHFbby; 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=gmail.com X-TUID: /ArrKTmMLagv On 24.01.2023 18:56, Ihor Radchenko wrote: > 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. Thank you very much, that fixed it for me. > 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. I chose this option to make it easier to remove emphasis markers but have now set up functions to do this for me automatically and have set 'invisible to true.