Questions tagged [visibility]

The tag has no usage guidance.

2
votes
0answers
21 views

isearch with invisible text properties, not overlays?

Q: how can I get isearch to understand invisible text properties, not just overlays? I'm writing a major mode that uses text properties rather than overlays to toggle visibility. I'd like to use ...
1
vote
2answers
63 views

How to make an invisible overlay displaying other text clickable

I've been trying to add the ability to unfold with mouse by clicking on ellipsis in my json-mode, but after considerable time spent experimenting and looking through the Elisp manual, I can't figure ...
3
votes
2answers
80 views

Make region(s) invisible (not evaluated) to query-replacy and similar commands

Is there a way to make some regions of the buffer invisible (I mean not evaluated by) to query-replace and similar commands? Let me better explain with an example. Let's take a piece of LaTeX code .....
0
votes
1answer
39 views

Why do parts of my Emacs buffer turn invisible when I'm writing elisp?

When I'm writing elisp code, parts of the buffer that I press enter on turn invisible (i.e. they get the property invisible set to t). I haven't been able to reproduce this reliably, because it doesn'...
2
votes
1answer
23 views

bookmark-jump to a hidden part of a buffer

In elisp buffers, I use outline-mode in order to manage headings similarly as in org-mode. But when I jump to a bookmark which points to a hidden part of a buffer (because it is below a folded heading)...
0
votes
1answer
82 views

Folding headers containing source code blocks in an org file?

I always refer to org mode when I want to document anything, but what I am struggling with right now is how to make folding mechanism work when my headers contain source code blocks under a list ...
5
votes
1answer
86 views

Toggle text visibility

I would like to temporarily not be able to see what I am writing (counter-intuitive, I know, but sometimes it's helpful to not be able to immediately criticize what you are writing in order to ...
1
vote
0answers
43 views

org heading temporarily not visible when folding

Sometimes when I close all the folds in org mode one of my headings becomes invisible. It depends on where my cursor is at the time of the fold. But despite my testing I don't know a hard fast rule ...
2
votes
0answers
131 views

Add another level to org-mode visibility cycling

The way S-TAB (org-global-cycle) switches between "top headline -> all headlines -> all content" is great for showing an outline and provide overview, but acts on the full document. Using TAB (org-...
3
votes
1answer
263 views

org mode not showing all the text in my file?

I am new to Emacs and struggling to learn it. I have a test.org file: * Heading ** Sub-Heading *** Third-level When I open the file, the buffer just displays: * Heading... Where did all the ...
5
votes
1answer
123 views

How to prevent org-mode from repositioning text in the window when cycling visibility?

In org-mode, when I cycle through the visibility of the document via the TAB key (org-cycle), the text sometimes gets repositioned. If there is enough text below the headline such that it will not ...
2
votes
1answer
88 views

How can I tell if a buffer is already visible?

I'd like to have the following code in my library: (when (not (buffer-visible-p es-results-buffer)) (delete-other-windows) (view-buffer-other-window es-results-buffer)) However, I haven't been ...
0
votes
1answer
127 views

How to use outline-minor-mode to hide some exam class exercises in auctex

I use the exam document class in auctex to write exams for my students. I want to use the features provided by the outline-minor-mode to hide all the exercises I have finished and only show the one I ...
2
votes
1answer
1k views

Org mode initial visibility with #+STARTUP

What is the meaning of the possible values for #+STARTUP?
3
votes
1answer
506 views

Persistently hide cursor [evil-mode problem]

If I hide the cursor in a buffer with (setq cursor-type nil) it will reappear if I move it around. Is there a way for hiding the cursor all the time (only for one specific buffer)?
7
votes
1answer
87 views

Sane settings to show context when doing search and replace in org-mode

If I run certain functions like isearch-forward (with C-s) in an org-mode buffer, all content become temporarily visible. When I end the search, headings automagically collapse the way they were ...
1
vote
0answers
150 views

How do I change the visibility cycling in orgmode?

Currently when I press TAB it uses this: ,-> FOLDED -> CHILDREN -> SUBTREE --. But I would like it to behave like other outliners. If I press TAB once it should open the children. It I press TAB ...
1
vote
0answers
280 views

Headlines with “children” initial visibility reveals drawer names--why?

I would like to see all first-level children of my level 1 headlines when I open an org-mode file. I have assigned property values of :VISIBILITY: children to all my level 1 headlines. When I open the ...
8
votes
1answer
484 views

Hide comment in current buffer

Is their a way to hide comment whatever the language used? Like if I'm in cpp mode all /* ... */ should be hide and if I'm on LaTeX mode, all % ... will be hide.
4
votes
1answer
244 views

Copy text as it is rendered by Emacs

I have Emacs doing a bunch of smart things to display text for me. In particular, some text has the invisible property set, and I'm running adaptive-wrap with <!-- adaptive-wrap-extra-indent: 3 --&...