home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.lucid-emacs.help:254 gnu.emacs.help:3713
- Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!ogicse!reed!nelson
- From: nelson@reed.edu (Nelson Minar)
- Newsgroups: alt.lucid-emacs.help,gnu.emacs.help
- Subject: Re: hiding and exposing text
- Message-ID: <1992Aug13.043435.15775@reed.edu>
- Date: 13 Aug 92 04:34:35 GMT
- References: <MCCLEN.92Aug12205450@alder.uswest.com>
- Organization: Reed College, Portland, OR
- Lines: 27
-
- In article <MCCLEN.92Aug12205450@alder.uswest.com> mcclen@uswest.com ( Chris McClenaghan) writes:
- >I'm looking for a package of emacs lisp code that allows hiding
- >of regions of text and subsequent exposure of the hidden text.
-
- look at the documentation on selective-display. This is the only emacs
- facility I know of for hiding text. It's a little weird, but it does
- work.
-
- There are various folding modes for emacs, also. They allow you to
- mark sections of text to be hidden or displayed. There's a fold.el
- (comes with emacs-18.58?) - is very minimal. I have had good luck with
- folding.el by Jamie Lokier for a fuller origami editor. folding.el
- should be in the elisp archives.
-
- >As an example, I'd like to collapse the body of a while statement
- >in C or C++ leaving just the while and condition with some sort
- >of ellipsis mark that could be selected for exposing the text.
-
- I've been thinking of writing some C++/C syntax sensitive folding
- code. Ie: fold the defun, fold the current sexp, fold this arbitrary
- block of text. They're all fairly easy, really.
-
- Has anyone taken the time to write that folds your source code along
- obvious syntactic boundaries?
- --
- __
- nelson@reed.edu \/ Delicious & Nutritious breakfast cereals shot from guns!
-