unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6950: Invisible parts and editing - reveal them?
@ 2010-08-30 18:08 Lennart Borgman
  2010-08-31  8:07 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2010-08-30 18:08 UTC (permalink / raw)
  To: 6950

In reveal-mode hidden parts gets shown when you found a hit there with
isearch. That is very useful.

However when you edit such parts they normally do not get visible even
if reveal-mode is on. This is a problem for example if you are using
viper and do "o" to open a new line below the current line when the
lines below are hidden. (I am sure there are other examples with
default Emacs commands. Please give examples.)

This hits quite often in org-mode.

Could we please add some mechanism to show the point when this happen?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6950: Invisible parts and editing - reveal them?
  2010-08-30 18:08 bug#6950: Invisible parts and editing - reveal them? Lennart Borgman
@ 2010-08-31  8:07 ` Stefan Monnier
  2010-09-01 11:28   ` Lennart Borgman
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2010-08-31  8:07 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: 6950

> However when you edit such parts they normally do not get visible even
> if reveal-mode is on.

reveal-mode should unhide the text, assuming that point is within it.

> This is a problem for example if you are using viper and do "o" to
> open a new line below the current line when the lines below
> are hidden.

Can you provide a recipe to reproduce the problem?

> Could we please add some mechanism to show the point when this happen?

That's what reveal-mode does, normally.


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6950: Invisible parts and editing - reveal them?
  2010-08-31  8:07 ` Stefan Monnier
@ 2010-09-01 11:28   ` Lennart Borgman
  2010-09-02 11:00     ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2010-09-01 11:28 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 6950

On Tue, Aug 31, 2010 at 10:07 AM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> However when you edit such parts they normally do not get visible even
>> if reveal-mode is on.
>
> reveal-mode should unhide the text, assuming that point is within it.

Eh, sorry, you are right. reveal-mode takes care of this. I thought I
had it on, but for some reason I had commented it out.

I think I got confused by the similar mechanism in isearch that is on
by default. That it is on by default seems good. What is the reason
reveal-mode is not on by default? (I have a feeling there was some
small problem, but I can't remember now.)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#6950: Invisible parts and editing - reveal them?
  2010-09-01 11:28   ` Lennart Borgman
@ 2010-09-02 11:00     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2010-09-02 11:00 UTC (permalink / raw)
  To: Lennart Borgman

> Eh, sorry, you are right. reveal-mode takes care of this. I thought I
> had it on, but for some reason I had commented it out.

Good, so I can close the bug.

> by default. That it is on by default seems good. What is the reason
> reveal-mode is not on by default? (I have a feeling there was some
> small problem, but I can't remember now.)

I suspect it could take some more work to make it robust enough to be ON
by default.  But I encourage everyone to (global-reveal-mode 1) in their
.emacs and post patches for the problems they encounter.


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-02 11:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30 18:08 bug#6950: Invisible parts and editing - reveal them? Lennart Borgman
2010-08-31  8:07 ` Stefan Monnier
2010-09-01 11:28   ` Lennart Borgman
2010-09-02 11:00     ` Stefan Monnier

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).