unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: emacs-devel@gnu.org
Subject: Q: Invisible text spec + define minor mode macro
Date: Wed, 21 Apr 2021 10:04:17 +0200	[thread overview]
Message-ID: <AM9PR09MB4977B58F697384012D6C37FA96479@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)

[-- Attachment #1: ob-hide-markers.el --]
[-- Type: application/emacs-lisp, Size: 3424 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: test.org --]
[-- Type: text/x-org, Size: 9299 bytes --]

* Test
** Block 1
#+begin_src emacs-lisp

#+end_src
** Block 2
#+begin_src emacs-lisp

#+end_src
** Block 3
#+begin_src emacs-lisp

#+end_src
** Block 4
#+begin_src emacs-lisp

#+end_src
** Block 5
#+begin_src emacs-lisp

#+end_src
** Block 6
#+begin_src emacs-lisp

#+end_src
** Block 7
#+begin_src emacs-lisp

#+end_src
** Block 8
#+begin_src emacs-lisp

#+end_src
** Block 9
#+begin_src emacs-lisp

#+end_src
** Block 10
#+begin_src emacs-lisp

#+end_src
** Block 11
#+begin_src emacs-lisp

#+end_src
** Block 12
#+begin_src emacs-lisp

#+end_src
** Block 13
#+begin_src emacs-lisp

#+end_src
** Block 14
#+begin_src emacs-lisp

#+end_src
** Block 15
#+begin_src emacs-lisp

#+end_src
** Block 16
#+begin_src emacs-lisp

#+end_src
** Block 17
#+begin_src emacs-lisp

#+end_src
** Block 18
#+begin_src emacs-lisp

#+end_src
** Block 19
#+begin_src emacs-lisp

#+end_src
** Block 20
#+begin_src emacs-lisp

#+end_src
** Block 21
#+begin_src emacs-lisp

#+end_src
** Block 22
#+begin_src emacs-lisp

#+end_src
** Block 23
#+begin_src emacs-lisp

#+end_src
** Block 24
#+begin_src emacs-lisp

#+end_src
** Block 25
#+begin_src emacs-lisp

#+end_src
** Block 26
#+begin_src emacs-lisp

#+end_src
** Block 27
#+begin_src emacs-lisp

#+end_src
** Block 28
#+begin_src emacs-lisp

#+end_src
** Block 29
#+begin_src emacs-lisp

#+end_src
** Block 30
#+begin_src emacs-lisp

#+end_src
** Block 31
#+begin_src emacs-lisp

#+end_src
** Block 32
#+begin_src emacs-lisp

#+end_src
** Block 33
#+begin_src emacs-lisp

#+end_src
** Block 34
#+begin_src emacs-lisp

#+end_src
** Block 35
#+begin_src emacs-lisp

#+end_src
** Block 36
#+begin_src emacs-lisp

#+end_src
** Block 37
#+begin_src emacs-lisp

#+end_src
** Block 38
#+begin_src emacs-lisp

#+end_src
** Block 39
#+begin_src emacs-lisp

#+end_src
** Block 40
#+begin_src emacs-lisp

#+end_src
** Block 41
#+begin_src emacs-lisp

#+end_src
** Block 42
#+begin_src emacs-lisp

#+end_src
** Block 43
#+begin_src emacs-lisp

#+end_src
** Block 44
#+begin_src emacs-lisp

#+end_src
** Block 45
#+begin_src emacs-lisp

#+end_src
** Block 46
#+begin_src emacs-lisp

#+end_src
** Block 47
#+begin_src emacs-lisp

#+end_src
** Block 48
#+begin_src emacs-lisp

#+end_src
** Block 49
#+begin_src emacs-lisp

#+end_src
** Block 50
#+begin_src emacs-lisp

#+end_src
** Block 51
#+begin_src emacs-lisp

#+end_src
** Block 52
#+begin_src emacs-lisp

#+end_src
** Block 53
#+begin_src emacs-lisp

#+end_src
** Block 54
#+begin_src emacs-lisp

#+end_src
** Block 55
#+begin_src emacs-lisp

#+end_src
** Block 56
#+begin_src emacs-lisp

#+end_src
** Block 57
#+begin_src emacs-lisp

#+end_src
** Block 58
#+begin_src emacs-lisp

#+end_src
** Block 59
#+begin_src emacs-lisp

#+end_src
** Block 60
#+begin_src emacs-lisp

#+end_src
** Block 61
#+begin_src emacs-lisp

#+end_src
** Block 62
#+begin_src emacs-lisp

#+end_src
** Block 63
#+begin_src emacs-lisp

#+end_src
** Block 64
#+begin_src emacs-lisp

#+end_src
** Block 65
#+begin_src emacs-lisp

#+end_src
** Block 66
#+begin_src emacs-lisp

#+end_src
** Block 67
#+begin_src emacs-lisp

#+end_src
** Block 68
#+begin_src emacs-lisp

#+end_src
** Block 69
#+begin_src emacs-lisp

#+end_src
** Block 70
#+begin_src emacs-lisp

#+end_src
** Block 71
#+begin_src emacs-lisp

#+end_src
** Block 72
#+begin_src emacs-lisp

#+end_src
** Block 73
#+begin_src emacs-lisp

#+end_src
** Block 74
#+begin_src emacs-lisp

#+end_src
** Block 75
#+begin_src emacs-lisp

#+end_src
** Block 76
#+begin_src emacs-lisp

#+end_src
** Block 77
#+begin_src emacs-lisp

#+end_src
** Block 78
#+begin_src emacs-lisp

#+end_src
** Block 79
#+begin_src emacs-lisp

#+end_src
** Block 80
#+begin_src emacs-lisp

#+end_src
** Block 81
#+begin_src emacs-lisp

#+end_src
** Block 82
#+begin_src emacs-lisp

#+end_src
** Block 83
#+begin_src emacs-lisp

#+end_src
** Block 84
#+begin_src emacs-lisp

#+end_src
** Block 85
#+begin_src emacs-lisp

#+end_src
** Block 86
#+begin_src emacs-lisp

#+end_src
** Block 87
#+begin_src emacs-lisp

#+end_src
** Block 88
#+begin_src emacs-lisp

#+end_src
** Block 89
#+begin_src emacs-lisp

#+end_src
** Block 90
#+begin_src emacs-lisp

#+end_src
** Block 91
#+begin_src emacs-lisp

#+end_src
** Block 92
#+begin_src emacs-lisp

#+end_src
** Block 93
#+begin_src emacs-lisp

#+end_src
** Block 94
#+begin_src emacs-lisp

#+end_src
** Block 95
#+begin_src emacs-lisp

#+end_src
** Block 96
#+begin_src emacs-lisp

#+end_src
** Block 97
#+begin_src emacs-lisp

#+end_src
** Block 98
#+begin_src emacs-lisp

#+end_src
** Block 99
#+begin_src emacs-lisp

#+end_src
** Block 100
#+begin_src emacs-lisp

#+end_src
** Block 101
#+begin_src emacs-lisp

#+end_src
** Block 102
#+begin_src emacs-lisp

#+end_src
** Block 103
#+begin_src emacs-lisp

#+end_src
** Block 104
#+begin_src emacs-lisp

#+end_src
** Block 105
#+begin_src emacs-lisp

#+end_src
** Block 106
#+begin_src emacs-lisp

#+end_src
** Block 107
#+begin_src emacs-lisp

#+end_src
** Block 108
#+begin_src emacs-lisp

#+end_src
** Block 109
#+begin_src emacs-lisp

#+end_src
** Block 110
#+begin_src emacs-lisp

#+end_src
** Block 111
#+begin_src emacs-lisp

#+end_src
** Block 112
#+begin_src emacs-lisp

#+end_src
** Block 113
#+begin_src emacs-lisp

#+end_src
** Block 114
#+begin_src emacs-lisp

#+end_src
** Block 115
#+begin_src emacs-lisp

#+end_src
** Block 116
#+begin_src emacs-lisp

#+end_src
** Block 117
#+begin_src emacs-lisp

#+end_src
** Block 118
#+begin_src emacs-lisp

#+end_src
** Block 119
#+begin_src emacs-lisp

#+end_src
** Block 120
#+begin_src emacs-lisp

#+end_src
** Block 121
#+begin_src emacs-lisp

#+end_src
** Block 122
#+begin_src emacs-lisp

#+end_src
** Block 123
#+begin_src emacs-lisp

#+end_src
** Block 124
#+begin_src emacs-lisp

#+end_src
** Block 125
#+begin_src emacs-lisp

#+end_src
** Block 126
#+begin_src emacs-lisp

#+end_src
** Block 127
#+begin_src emacs-lisp

#+end_src
** Block 128
#+begin_src emacs-lisp

#+end_src
** Block 129
#+begin_src emacs-lisp

#+end_src
** Block 130
#+begin_src emacs-lisp

#+end_src
** Block 131
#+begin_src emacs-lisp

#+end_src
** Block 132
#+begin_src emacs-lisp

#+end_src
** Block 133
#+begin_src emacs-lisp

#+end_src
** Block 134
#+begin_src emacs-lisp

#+end_src
** Block 135
#+begin_src emacs-lisp

#+end_src
** Block 136
#+begin_src emacs-lisp

#+end_src
** Block 137
#+begin_src emacs-lisp

#+end_src
** Block 138
#+begin_src emacs-lisp

#+end_src
** Block 139
#+begin_src emacs-lisp

#+end_src
** Block 140
#+begin_src emacs-lisp

#+end_src
** Block 141
#+begin_src emacs-lisp

#+end_src
** Block 142
#+begin_src emacs-lisp

#+end_src
** Block 143
#+begin_src emacs-lisp

#+end_src
** Block 144
#+begin_src emacs-lisp

#+end_src
** Block 145
#+begin_src emacs-lisp

#+end_src
** Block 146
#+begin_src emacs-lisp

#+end_src
** Block 147
#+begin_src emacs-lisp

#+end_src
** Block 148
#+begin_src emacs-lisp

#+end_src
** Block 149
#+begin_src emacs-lisp

#+end_src
** Block 150
#+begin_src emacs-lisp

#+end_src
** Block 151
#+begin_src emacs-lisp

#+end_src
** Block 152
#+begin_src emacs-lisp

#+end_src
** Block 153
#+begin_src emacs-lisp

#+end_src
** Block 154
#+begin_src emacs-lisp

#+end_src
** Block 155
#+begin_src emacs-lisp

#+end_src
** Block 156
#+begin_src emacs-lisp

#+end_src
** Block 157
#+begin_src emacs-lisp

#+end_src
** Block 158
#+begin_src emacs-lisp

#+end_src
** Block 159
#+begin_src emacs-lisp

#+end_src
** Block 160
#+begin_src emacs-lisp

#+end_src
** Block 161
#+begin_src emacs-lisp

#+end_src
** Block 162
#+begin_src emacs-lisp

#+end_src
** Block 163
#+begin_src emacs-lisp

#+end_src
** Block 164
#+begin_src emacs-lisp

#+end_src
** Block 165
#+begin_src emacs-lisp

#+end_src
** Block 166
#+begin_src emacs-lisp

#+end_src
** Block 167
#+begin_src emacs-lisp

#+end_src
** Block 168
#+begin_src emacs-lisp

#+end_src
** Block 169
#+begin_src emacs-lisp

#+end_src
** Block 170
#+begin_src emacs-lisp

#+end_src
** Block 171
#+begin_src emacs-lisp

#+end_src
** Block 172
#+begin_src emacs-lisp

#+end_src
** Block 173
#+begin_src emacs-lisp

#+end_src
** Block 174
#+begin_src emacs-lisp

#+end_src
** Block 175
#+begin_src emacs-lisp

#+end_src
** Block 176
#+begin_src emacs-lisp

#+end_src
** Block 177
#+begin_src emacs-lisp

#+end_src
** Block 178
#+begin_src emacs-lisp

#+end_src
** Block 179
#+begin_src emacs-lisp

#+end_src
** Block 180
#+begin_src emacs-lisp

#+end_src
** Block 181
#+begin_src emacs-lisp

#+end_src
** Block 182
#+begin_src emacs-lisp

#+end_src
** Block 183
#+begin_src emacs-lisp

#+end_src
** Block 184
#+begin_src emacs-lisp

#+end_src
** Block 185
#+begin_src emacs-lisp

#+end_src
** Block 186
#+begin_src emacs-lisp

#+end_src
** Block 187
#+begin_src emacs-lisp

#+end_src
** Block 188
#+begin_src emacs-lisp

#+end_src
** Block 189
#+begin_src emacs-lisp

#+end_src
** Block 190
#+begin_src emacs-lisp

#+end_src
** Block 191
#+begin_src emacs-lisp

#+end_src
** Block 192
#+begin_src emacs-lisp

#+end_src
** Block 193
#+begin_src emacs-lisp

#+end_src
** Block 194
#+begin_src emacs-lisp

#+end_src
** Block 195
#+begin_src emacs-lisp

#+end_src
** Block 196
#+begin_src emacs-lisp

#+end_src
** Block 197
#+begin_src emacs-lisp

#+end_src
** Block 198
#+begin_src emacs-lisp

#+end_src
** Block 199
#+begin_src emacs-lisp

#+end_src
** Block 200
#+begin_src emacs-lisp

#+end_src

[-- Attachment #3: Type: text/plain, Size: 974 bytes --]


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? I think it shouldn't but I don't understand
what is going on here? The search seems to properly find all src markers
in entire buffer, and all lines are "equal" (machine generated), so
there is no reason why some parts should work and others dont.

Another issue is with minor mode definition. I am trying to use
mode-variable to toggle on/off as I understand the docs it should be
used, but I have to call it twice in org file. Do I need to use
another boolean value to check on, or could I use mode-variable for this
purpose? I thought it was ment for this.



             reply	other threads:[~2021-04-21  8:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-21  8:04 Arthur Miller [this message]
2021-04-21  9:16 ` Q: Invisible text spec + define minor mode macro Eli Zaretskii
2021-04-21  9:55   ` Arthur Miller
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=AM9PR09MB4977B58F697384012D6C37FA96479@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --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).