unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Q: Invisible text spec + define minor mode macro
Date: Wed, 21 Apr 2021 11:55:43 +0200	[thread overview]
Message-ID: <AM9PR09MB49772595D5E8201D898531BF96479@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <83eef4q9or.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Apr 2021 12:16:36 +0300")

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	other threads:[~2021-04-21  9:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21  8:04 Q: Invisible text spec + define minor mode macro Arthur Miller
2021-04-21  9:16 ` Eli Zaretskii
2021-04-21  9:55   ` Arthur Miller [this message]
2021-04-21 17:19   ` Arthur Miller
2021-04-21 17:46     ` Eli Zaretskii
2021-04-21 19:25     ` Tassilo Horn
2021-04-21 20:14       ` Arthur Miller
2021-04-21  9:36 ` Joost Kremers
2021-04-21 10:02   ` Arthur Miller

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM9PR09MB49772595D5E8201D898531BF96479@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@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.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).