unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 47937@debbugs.gnu.org
Subject: bug#47937: 27.1; Invisible text property updated only for a portion of buffer
Date: Wed, 21 Apr 2021 20:40:31 +0200	[thread overview]
Message-ID: <AM9PR09MB4977D9FA0C06DC4509F3F7D996479@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <83sg3jpk3l.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Apr 2021 21:29:18 +0300")

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

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21 18:14 bug#47937: 27.1; Invisible text property updated only for a portion of buffer Arthur Miller
2021-04-21 18:29 ` Eli Zaretskii
2021-04-21 18:40   ` Arthur Miller [this message]
2021-04-21 19:02     ` Eli Zaretskii
2021-04-21 19:36       ` Eli Zaretskii
2021-04-21 20:10         ` Arthur Miller
2021-04-22  6:46           ` Eli Zaretskii
2021-04-21 22:43         ` bug#47937: [External] : " Drew Adams
2021-04-21 22:40       ` Drew Adams

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=AM9PR09MB4977D9FA0C06DC4509F3F7D996479@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=47937@debbugs.gnu.org \
    --cc=eliz@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).