From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aDqCMLbw3mFmZAEAgWs5BA (envelope-from ) for ; Wed, 12 Jan 2022 16:16:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MLbwLbbw3mEdvQAA9RJhRA (envelope-from ) for ; Wed, 12 Jan 2022 16:16:06 +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 59CAF16AEA for ; Wed, 12 Jan 2022 16:16:06 +0100 (CET) Received: from localhost ([::1]:50924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7fM5-0000Rp-9p for larch@yhetil.org; Wed, 12 Jan 2022 10:16:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7eBG-0004OF-ED for emacs-orgmode@gnu.org; Wed, 12 Jan 2022 09:00:55 -0500 Received: from [2607:f8b0:4864:20::62d] (port=46797 helo=mail-pl1-x62d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7eBE-0003SH-V4 for emacs-orgmode@gnu.org; Wed, 12 Jan 2022 09:00:50 -0500 Received: by mail-pl1-x62d.google.com with SMTP id w7so4158633plp.13 for ; Wed, 12 Jan 2022 06:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=To/H2JPZQxhkBB2q+jnDOJe64h70uENEmRZDI8XSo/s=; b=ThVJssbuO9PEgShgySQmY/WnUWvlKcLI7t0Fm7kk2ONgyEyhfgqe3Jc9yDaO9BLmn0 ZihH7OaBl6Y3U4qqd3oqZrzn09E/k3mVFobjXA3kkG0BT871SWD+AYz9u3uG1aoV4xsh 7KZpZscHx4sITIMRH7mpHA3Bl9s1/jCIpb7wAd8CcORUoogKblnMv2ZwAseGx7RjwGob eu+ZKwfH3fuAHroL28B0EfGY8rOW3hhQ+2CLs5OM82G6BwKUtXR0Q9uAKokCnZVZ2GPo wUz+BkAHAYQ2Niv848rV7per5XXfFFNCULsMHKaLs3uQvqoy+6rp+7D431HzWKiC/6FT G2PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=To/H2JPZQxhkBB2q+jnDOJe64h70uENEmRZDI8XSo/s=; b=DFu/4T5ELn4e+BVN9KEp1GmQCfeEMKM/y3F5Pet5mkq3giaroZoQenL0xhtnYuV7Qd +VwjxhB/4NKJX02NDhlLsf3Goxz1b6wYfY9qFIOKXtewf99WhmcusmGgMaGedmBoGCVC p7QgkGRgp/WR9UQa/hlDgyIH2bj3wArQ9h7zAu+206nG1ZN51NNTLvLP/EAllRc3+yTJ AvR7+CFlM3+0KGgmSnp0j62Q7eNJFpfr65N7Etc4ej6qvpfDEVrDKkRqlTQhoPjlmllp bInO3i29mroMuO7Qt7Kh2fPYOPmEcbQW0YH9yIQGzP3RGmGj6FB42+c8wDtv35EyG474 WpKw== X-Gm-Message-State: AOAM533TQyK4OrnzEzRmEVw3QUlyyrEQxbHgIo3RPZaNttYQxok7tDGE x1TolXTB1cES90RYV5VSIEc2cDTOJwjJag== X-Google-Smtp-Source: ABdhPJzN6CXEiUEsbHd3Rhx73NyvUuQ4RG1ikbTAmD7GTgEjCQb0hYBSDzay3rQGFRHkDfrmPHM19w== X-Received: by 2002:a17:902:bd94:b0:149:c926:7c26 with SMTP id q20-20020a170902bd9400b00149c9267c26mr9544428pls.64.1641996045597; Wed, 12 Jan 2022 06:00:45 -0800 (PST) Received: from localhost ([103.125.234.210]) by smtp.gmail.com with ESMTPSA id g11sm3063573pgn.26.2022.01.12.06.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 06:00:45 -0800 (PST) From: Ihor Radchenko To: Enrico Flor Subject: Re: Cannot set invisible text property In-Reply-To: <87pmp41nx1.fsf@eflor.net> References: <87pmp41nx1.fsf@eflor.net> Date: Wed, 12 Jan 2022 22:05:08 +0800 Message-ID: <87fsptoxrf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::62d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642000566; 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=To/H2JPZQxhkBB2q+jnDOJe64h70uENEmRZDI8XSo/s=; b=n1ISBgODT9Yrm8lGAhMXh6udG88+ULMwGzNhJOpZZRHXaddqsu2amFmkTOpvYuLRJLNSF0 hhWt3xKkcObR9uCLuTYEJtYrIunZf8NKDW5p9vpBf+12Cx5HAFm2ma06p+Ar+rNhPDfH1y LGkmSCTuopVpjnBI8rIKNvF/wRMDL4SwomQWmIlD0X1lW4RdtV4gFHGjY8E0GQJ/Xr4dMo 7QyDe2JJxDMCM2cMNukKxJw6uVsDc51S/2KPk17cU5haqc8teweBwO3K1MT+R0Z07EqQxw l5hk+8kOa+33pexZp/2uwgO189zVVcvbYWbsTODXt1qbV8Tez5ZH2hncicDa1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642000566; a=rsa-sha256; cv=none; b=uzc+t/GghG69FkVpSTWLUQ0Nn0ZiR/4BvkSA5sYrlFQTmrSC+L/P0toSfc7wK/ECHFnrAc GeDwpRJHfKWqp0QTiFHgX8OVjkfXgMTbWPfWEEunASbjmydbdLnfd+rd7dfwtAfk3VNj2H n3TL5McrIYc+27MoeDjKW7auYSEySTXi3r8gQK9ijw7fxECTJqYYODTbMsqZrecKwbK1Gt ZGBXTQX1tEvMKtYkfKtKpcxSXWY/JRCpwMEoo5LwAxS+hDNASGKzJuxCcZ9k81pUYusP1n 91FO7d0n67iPi8g2OIqP9x0rXQAuxoDfG2dkVpefQUCOJSP0ay8sYjBvajMqKg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ThVJssbu; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.82 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=ThVJssbu; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 59CAF16AEA X-Spam-Score: -3.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: JJNzpF5s2ghO Enrico Flor writes: > In a minor mode I wrote for myself, I use add-text-properties to make > certain things invisible. This does not work in org-mode, and I don't > understand why. For instance, the following has no effect in when the > buffer is in org-mode (and only when it's in org mode): > > (add-text-properties 1 3 '(invisible t)) This is because Org makes use of invisible text property during fontification. You should either apply invisibility in Org through font-lock, or do it temporarily until next re-fontification via (with-silent-modifications (add-text-properties 1 3 '(invisible t))) Best, Ihor