From: Arthur Miller <arthur.miller@live.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: bug#47937: 27.1; Invisible text property updated only for a portion of buffer
Date: Thu, 22 Apr 2021 14:36:03 +0200 [thread overview]
Message-ID: <AM9PR09MB497731162981DB2994EC441796469@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <83mttqq0j9.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Apr 2021 09:46:34 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Arthur Miller <arthur.miller@live.com>
>> Cc: 47937@debbugs.gnu.org
>> Date: Wed, 21 Apr 2021 22:10:45 +0200
>>
>> >> Because you have font-lock-mode turned on. And JIT font-lock begins
>> >> by wiping out all the text properties.
>> >
>> > I should clarify this, I guess: this is specific to Org buffers, see
>> > org-unfontify-region. And "all text properties" is an exaggeration:
>> > it removes many properties, but not all of them.
>>
>> Allright, thank you for the excellent clarification. I guess I should go
>> for custom visibility spec instead of plain invisible property, so that
>> my text property survive font lock.
>>
>> Please close the bug and thanks.
>
> I'm closing the bug, but I suggest to take this up with Org
> developers, because I think org-unfontify-region removes too many
> properties in a way that is too indiscriminate. They should ideally
> only remove the properties they themselves add.
I just today looked at the function, and I see docs says it should
remove fontification from links, which can partly be set to invisible
since org mode hide markup, so it is probably legit what they do. I am
not sure if that function runs on entire buffer. I'll CC this to
org-mail list so we can see what they say.
I am not really at home with font-lock and text properties, but as it
seems to me from this experience, is that proper way would be to use
visibility spec, and create custom property, since so many different
modes vill fight for default 'visibility property. However I was lazy,
so I just made sure to fontify entire buffer before I do my thing, but
it is not very robust approach :).
parent reply other threads:[~2021-04-22 12:42 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <83mttqq0j9.fsf@gnu.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9PR09MB497731162981DB2994EC441796469@AM9PR09MB4977.eurprd09.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=eliz@gnu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).