emacs-devel
[Top][All Lists]
Advanced

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

Re: Q: Invisible text spec + define minor mode macro


From: Arthur Miller
Subject: Re: Q: Invisible text spec + define minor mode macro
Date: Wed, 21 Apr 2021 11:55:43 +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 10:04:17 +0200
>> 
>> I am not sure what is going on here. I have this minor mode defined,
>> as shown yesterday, where I just iterate through a buffer and try to
>> make certain lines invisible.
>> 
>> It seems that visibility property updates only for about 2 ~ 3 pages of
>> text. When I bring text into visible portion of screen and re-run the
>> mode, it is updated as it should. Does it have to do something with how
>> invisible text is rendered?
>
> In general, text being invisible or not has nothing to do with
> rendering it, it only has to do with the exact form of the invisible
> property and buffer's invisibility spec.

Ok, that is how I understood the docs. I haven't mixed with the
invisibility spec, I have just put 'visibility' property to 't' which
should with default spec make text invisible. It works, but just for a
part of text. If I scroll to the part of buffer where it didn't work,
and disable/enable mode then that part will work, inclusive all the
previously "seen" parts. I see no logic in that. You can check yourself
the code and test file I attached. It is embarassingly simple, I don't
understand what would be wrong there :-(, but maybe I missunderstand
something.



reply via email to

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