unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Editing of invisible text
@ 2008-10-26 13:32 Lennart Borgman
  2008-10-27  2:22 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Lennart Borgman @ 2008-10-26 13:32 UTC (permalink / raw)
  To: Emacs Devel

Emacs lets you edit invisible text. That is perhaps not bad, but it is
bad that you can't see what you are doing when you are editing
invisible text. Here is a suggestion on how to make this better:

- Implement a minor mode that make all invisible text visible but with
a special face (or background color) that tells the user this is
really invisible text.

- Ask the user if she/he want to turn on this minor mode for the
buffer when invisible text is going to be changed.

- Of course add a variable to override this behaviour when needed ;-)




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

* Re: Editing of invisible text
  2008-10-26 13:32 Editing of invisible text Lennart Borgman
@ 2008-10-27  2:22 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2008-10-27  2:22 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Emacs Devel

> Emacs lets you edit invisible text. That is perhaps not bad, but it is
> bad that you can't see what you are doing when you are editing
> invisible text. Here is a suggestion on how to make this better:

> - Implement a minor mode that make all invisible text visible but with
> a special face (or background color) that tells the user this is
> really invisible text.

> - Ask the user if she/he want to turn on this minor mode for the
> buffer when invisible text is going to be changed.

> - Of course add a variable to override this behaviour when needed ;-)

I'm not sure which scenario you have in mind, but:
- editing invisible text is not a normal occurrence, since point is
  normally moved outside of compositions, images, and invisible text
  at the end of every toplevel command.
- reveal-mode was meant as a way to do just what you want (tho it was
  also meant as a way to use outline-minor-mode differently and this
  is how it evolved more than as a way to handle editing of invisible
  text).


-- Stefan




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

end of thread, other threads:[~2008-10-27  2:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-26 13:32 Editing of invisible text Lennart Borgman
2008-10-27  2:22 ` 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).