bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47937: 27.1; Invisible text property updated only for a portion of b


From: Arthur Miller
Subject: bug#47937: 27.1; Invisible text property updated only for a portion of buffer
Date: Wed, 21 Apr 2021 20:40:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Arthur Miller <arthur.miller@live.com>
>> Date: Wed, 21 Apr 2021 20:14:04 +0200
>> 
>> load and eval attached file: ob-hide-markers.el
>> 
>> open attached test.org file and switch to it's buffer.
>> 
>> M-x org-babel-hide-markers-mode
>> 
>> Expected all babel source block markers should be hidden, in entire
>> buffer. 
>> 
>> For me, when scrolled down, after few screen pages, for me after ~ 3½
>> screen pages, block markers are for some reason not processed.
>
> They are not processed because there's no invisible property there.

Why does it work on visible portion of the buffer, but not on the rest?
Or why does it work if I scroll through the buffer first? Is it some
optimization kicking in, that does not add 'invisible text property for
text that isn't on the screen?

> So something is wrong here with the code that puts that property on
> the text you want to conceal.

I am using put-text-property for entire buffer, and entire test file is
machine generated, so all lines should work same.

> IOW, this problem has nothing to do with display or the invisible
> property itself.

Agree, I know. Problem is that part of buffer does not get invisible
property added. But if buffer is scrolled through, than all parts that
have been on the screen, get's the property updated. Seems to me.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]