all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to fold any text as I want?
@ 2007-11-02  1:28 Magicloud Magiclouds
  2007-11-02 11:13 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Magicloud Magiclouds @ 2007-11-02  1:28 UTC (permalink / raw)
  To: help-gnu-emacs

Dear,
    Now emacs provides outline and hs modes for folding, I think. But 
they both need some "text hint" to do the hide/show. May I do the 
hide/show by line number? Like "M-x hs-hide-ln 10, 20".

Thanks.

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

* Re: How to fold any text as I want?
  2007-11-02  1:28 How to fold any text as I want? Magicloud Magiclouds
@ 2007-11-02 11:13 ` Bastien
  0 siblings, 0 replies; 3+ messages in thread
From: Bastien @ 2007-11-02 11:13 UTC (permalink / raw)
  To: help-gnu-emacs

Magicloud Magiclouds <magicloud.magiclouds@gmail.com> writes:

>    Now emacs provides outline and hs modes for folding, I think. But
> they both need some "text hint" to do the hide/show. May I do the
> hide/show by line number? Like "M-x hs-hide-ln 10, 20".

I can't speak for hs, which I don't know.  But for outline-mode, folding
is done along the *structure* of the document.  So it doesn't make sense
to fold according to a range of lines.  Actually, I think this would be
quite confusing... How would you know what lines are folded ?

-- 
Bastien

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

* Re: How to fold any text as I want?
       [not found] <mailman.2868.1193966938.18990.help-gnu-emacs@gnu.org>
@ 2007-11-02 13:53 ` Mathias Dahl
  0 siblings, 0 replies; 3+ messages in thread
From: Mathias Dahl @ 2007-11-02 13:53 UTC (permalink / raw)
  To: help-gnu-emacs

Magicloud Magiclouds <magicloud.magiclouds@gmail.com> writes:

> Now emacs provides outline and hs modes for folding, I think. But
> they both need some "text hint" to do the hide/show. May I do the
> hide/show by line number? Like "M-x hs-hide-ln 10, 20".

Take a look at hide-region.el. It lets you hide regions of text:

http://www.emacswiki.org/cgi-bin/wiki?HideRegion

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

end of thread, other threads:[~2007-11-02 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-02  1:28 How to fold any text as I want? Magicloud Magiclouds
2007-11-02 11:13 ` Bastien
     [not found] <mailman.2868.1193966938.18990.help-gnu-emacs@gnu.org>
2007-11-02 13:53 ` Mathias Dahl

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.