emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: bug#47937: 27.1; Invisible text property updated only for a portion of buffer
       [not found]           ` <83mttqq0j9.fsf@gnu.org>
@ 2021-04-22 12:36             ` Arthur Miller
  0 siblings, 0 replies; only message in thread
From: Arthur Miller @ 2021-04-22 12:36 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-orgmode

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 :).

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-22 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AM9PR09MB497780240F169562F2ED5C9F96479@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found] ` <83sg3jpk3l.fsf@gnu.org>
     [not found]   ` <AM9PR09MB4977D9FA0C06DC4509F3F7D996479@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]     ` <83r1j3pil1.fsf@gnu.org>
     [not found]       ` <83o8e7pgzj.fsf@gnu.org>
     [not found]         ` <DB9PR09MB498604DDFD00B987D14E484F96479@DB9PR09MB4986.eurprd09.prod.outlook.com>
     [not found]           ` <83mttqq0j9.fsf@gnu.org>
2021-04-22 12:36             ` bug#47937: 27.1; Invisible text property updated only for a portion of buffer Arthur Miller

Code repositories for project(s) associated with this public inbox


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).