From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gPtaC6O/2GElZQAAgWs5BA (envelope-from ) for ; Fri, 07 Jan 2022 23:33:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MFQsBKO/2GG6vgAAG6o9tA (envelope-from ) for ; Fri, 07 Jan 2022 23:33:07 +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 9521E2B417 for ; Fri, 7 Jan 2022 23:33:06 +0100 (CET) Received: from localhost ([::1]:37024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5xnF-0001eD-Bu for larch@yhetil.org; Fri, 07 Jan 2022 17:33:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5xh2-0002hS-UY for emacs-orgmode@gnu.org; Fri, 07 Jan 2022 17:26:41 -0500 Received: from [2a00:1450:4864:20::436] (port=33653 helo=mail-wr1-x436.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5xh0-0006iZ-Nn for emacs-orgmode@gnu.org; Fri, 07 Jan 2022 17:26:40 -0500 Received: by mail-wr1-x436.google.com with SMTP id r9so11864120wrg.0 for ; Fri, 07 Jan 2022 14:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew.cmu.edu; s=google-2021; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jYGToZaGwasrAF/eT9D/4id2l8wdwV/Sw0/gdGyAejQ=; b=JEYOKMjhewScWW9mIZyOhVE7TFtuWgQU0yDDCHIl4FJFerlwH89yzeCWqHqjXNzE5J TTRgynUHpL5zgIlye4PMOomPFIYTufGhosAnSE07ZKZWKfAGVqBR0fkc6oJrarqKFCde 5W9MAvZDKaXK/M9M9oPt2p7f1yjqblpA+ymGeMQf9WKp/ACxbU9iMiDRemRTX81kQUvn THpGFEdAWoK2ld899ZTqoMJul2kenD27M5IKFK5MxarTPPicJl/3kcbhi5/xjwnlpdSW 41GXIpMWo9DdjhRF2ByXry7ctEyc3c5Snq6KJq5OswRgbCdQoxBMkYXe5lKRC4RO37hl p1dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jYGToZaGwasrAF/eT9D/4id2l8wdwV/Sw0/gdGyAejQ=; b=1HtjvzTojImUUdBneBhheU+xUFpzysZcQZVDuA51uJ+W0WOK/ogKQE2p3zPZkbJEoP KG4DukUk7bGJg4EdwpLObvbn/ZerDtb/Virweyq706zUaA71L0sVhiOZcRUU1eEK37cj VjFH36UuRk3KgMa6Cn7ABgBr7Gg3QdN1lchxQiw9Lc+WEF0bjlUjv0/DPDuCmi6QyQiw yidrHIudCf65KEOobb8aUJEEztX4S04ivb2Lzp1NUPPAgy71yqPPN8RYmyMFJI4WwTTa zsV5ps7PY9pvkhneEnc7kqkSwZoz7nRPq1vYwnLxRXwMzUxZMb34Tr/nhd6/9J+AAmWO tdBg== X-Gm-Message-State: AOAM531Qup10CQKo3p8EjcNp23CmFwCeTMJM3JXI1AOUD4aoUt3EV18Q urfyIKXXJljN6s6KoOO3aZHSx+l0LIRU3t+SY84= X-Google-Smtp-Source: ABdhPJzU2aFUV4/N2v/LTh4IatyDZ1Ntvq2sUN0B7Uv7m59CCuU6yCmefTxWqS5izmedcsGMGJy9xm7UIbNumgVsUDQ= X-Received: by 2002:a5d:64cc:: with SMTP id f12mr54876722wri.679.1641594396433; Fri, 07 Jan 2022 14:26:36 -0800 (PST) MIME-Version: 1.0 References: <87pmp41nx1.fsf@eflor.net> In-Reply-To: <87pmp41nx1.fsf@eflor.net> From: John Kitchin Date: Fri, 7 Jan 2022 17:26:25 -0500 Message-ID: Subject: Re: Cannot set invisible text property To: Enrico Flor Content-Type: multipart/alternative; boundary="000000000000dd615d05d5057a64" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::436 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=johnrkitchin@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=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: org-mode-email 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=1641594786; 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=jYGToZaGwasrAF/eT9D/4id2l8wdwV/Sw0/gdGyAejQ=; b=iZJ26d83X/MAZTB7fXgiqXqIrTMZbuodC/wTXYBHC13ejwOm3b8/rnINSc6ttt5YnPh/IK byuFI6172CAxYy9Nqi5xK11tSAs9fJ+O779yWyRWJ75fYdmYTu/v77zu4AhtJ0XYHahyn+ 47+hIuSYS+/Cae7vzhbTSPNT+Nfalz5XVD2yWJVzLZB+jXvlaJaRWLcs7d9VCA181AV0Dk lIFOE4e64+QLqNLtxmv8XKPOuiRcEwNhrsUy1bsch5g48KgKbjjsv/049uNGad2hkM9k9u ljRn39cf2aAWtg0esOElhp5ogcJDBR2NfsNOWMvtGfUeRniN8096PRD9dOmv4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641594786; a=rsa-sha256; cv=none; b=iueLE6HQZqmikkG8LP83LYClmwpIx/OTMIMZySPy0iuoJ7LVFnlVcpn/3Ev/jS4AhGI+15 7AeyOwpBScYun+mnp4vJ9dWUSaSGlutxMNhZjfb0mt8lF2BKvO4Sydli1DlOVkx0vVKAJ6 XunoTByma2fFnZRLWl/CBSFuIYjwVtUOT98iB7h4YZsY9zeFI94FU2NrRW7Agj9URvsJFs cUNeqIG9QVCm6vUbByi2Z5LyHAXe3AGMPbNYIs+haZaeQb2Cin8UGEaBhy72b8qdMW356M VNgvL712TU9bLKVa6Ymqwf0sWhXllclUGT0Wy0jN2fyu0P7ayrrDNDa9SDZEyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=JEYOKMjh; dmarc=pass (policy=none) header.from=andrew.cmu.edu; 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: -5.30 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew.cmu.edu header.s=google-2021 header.b=JEYOKMjh; dmarc=pass (policy=none) header.from=andrew.cmu.edu; 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: 9521E2B417 X-Spam-Score: -5.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: l/x1vWtdvzcO --000000000000dd615d05d5057a64 Content-Type: text/plain; charset="UTF-8" Maybe try this instead (you added the symbol as a list, not just a symbol): 123 #+BEGIN_SRC emacs-lisp (add-text-properties 1 3 '(invisible hide-this-stuff)) (add-to-invisibility-spec 'hide-this-stuff) #+END_SRC #+RESULTS: : (hide-this-stuff (org-hide-block . t) (org-link) (outline . t) t) #+BEGIN_SRC emacs-lisp (remove-from-invisibility-spec 'hide-this-stuff) #+END_SRC #+RESULTS: : ((org-hide-block . t) (org-link) (outline . t) t) John ----------------------------------- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Thu, Jan 6, 2022 at 5:48 PM Enrico Flor wrote: > 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)) > > Any other text property I try to add does not give me any problem. > I have also tried to achieve the same by adding things to > buffer-invisibility-spec, but again, the following has no effect > whatsoever, if in org-mode: > > (add-text-properties 1 3 '(invisible hide-this-stuff)) > (add-to-invisibility-spec '(hide-this-stuff)) > > Can anyone give me a hint as to what is going on? > > Thank you. > --000000000000dd615d05d5057a64 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Maybe try this instead (you added the symbol as a list, no= t just a symbol):

123

#+BEGIN_SRC emacs-lisp
(= add-text-properties 1 3 '(invisible hide-this-stuff))
(add-to-invisi= bility-spec 'hide-this-stuff)
#+END_SRC

#+RESULTS:
: (hide= -this-stuff (org-hide-block . t) (org-link) (outline . t) t)

#+BEGIN= _SRC emacs-lisp
(remove-from-invisibility-spec 'hide-this-stuff)
= #+END_SRC

#+RESULTS:
: ((org-hide-block . t) (org-link) (outline = . t) t)


John

------------------------= -----------
Professor John Kitchin (he/him/his)
Doherty Hall A207FDepartment of Chemical Engineering
Carnegie Mellon University
Pittsb= urgh, PA 15213
412-268-7803

<= br>
On Thu,= Jan 6, 2022 at 5:48 PM Enrico Flor <enrico@eflor.net> wrote:
In a minor mode I wrote for myself, I use add-text-propert= ies to make
certain things invisible.=C2=A0 This does not work in org-mode, and I don&#= 39;t
understand why.=C2=A0 For instance, the following has no effect in when the=
buffer is in org-mode (and only when it's in org mode):

=C2=A0 =C2=A0 (add-text-properties 1 3 '(invisible t))

Any other text property I try to add does not give me any problem.
I have also tried to achieve the same by adding things to
buffer-invisibility-spec, but again, the following has no effect
whatsoever, if in org-mode:

=C2=A0 =C2=A0 (add-text-properties 1 3 '(invisible hide-this-stuff)) =C2=A0 =C2=A0 (add-to-invisibility-spec '(hide-this-stuff))

Can anyone give me a hint as to what is going on?

Thank you.
--000000000000dd615d05d5057a64--