all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Hiding text
@ 2007-02-17  3:03 thorne
  2007-02-17  3:21 ` Matthew Flaschen
  2007-02-17  4:56 ` Stefan Monnier
  0 siblings, 2 replies; 7+ messages in thread
From: thorne @ 2007-02-17  3:03 UTC (permalink / raw)
  To: help-gnu-emacs


Hello, i am wanting to have something akin to enriched mode that will
allow me to type some text marked up with underscores (or similar) and
in the buffer it will not show the underscores but will show the
enclosed text underlined.

I could use enriched mode for this, but i don't want the buffer saved
with the text/enriched header or with all its extra linebreaks.
Basically, what i am looking for is a wysiwyg treatment of
underlining, but such that i can easily go through later and do a
replace-regexp and turn it into some other kind of markup.

I think maybe gnus does something like this with underscores, but i'm
not sure.

I tried doing this with font-lock, and was able to do everything i
wanted, except that the underscores--which i make invisible--leave a
blank space instead of completely disappearing.

So, maybe a more focused version of my question would be: is there a
way to selectively hide strings of text in a buffer such that they
still exist if you kill the region they are in and yank it somewhere
else?  I've read references to `folding' and `outlining' and
`narrowing' and so-forth, but i'm not sure where to start.

-- 
þ    theron tlax    þ

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

end of thread, other threads:[~2007-02-17  6:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-17  3:03 Hiding text thorne
2007-02-17  3:21 ` Matthew Flaschen
2007-02-17  3:24   ` Matthew Flaschen
     [not found]   ` <mailman.4638.1171682684.2155.help-gnu-emacs@gnu.org>
2007-02-17  5:28     ` thorne
2007-02-17  4:56 ` Stefan Monnier
2007-02-17  5:48   ` thorne
2007-02-17  6:34   ` Matthew Flaschen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.