home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / alt / lucidem / help / 254 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.7 KB

  1. Xref: sparky alt.lucid-emacs.help:254 gnu.emacs.help:3713
  2. 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
  3. From: nelson@reed.edu (Nelson Minar)
  4. Newsgroups: alt.lucid-emacs.help,gnu.emacs.help
  5. Subject: Re: hiding and exposing text
  6. Message-ID: <1992Aug13.043435.15775@reed.edu>
  7. Date: 13 Aug 92 04:34:35 GMT
  8. References: <MCCLEN.92Aug12205450@alder.uswest.com>
  9. Organization: Reed College, Portland, OR
  10. Lines: 27
  11.  
  12. In article <MCCLEN.92Aug12205450@alder.uswest.com> mcclen@uswest.com ( Chris McClenaghan) writes:
  13. >I'm looking for a package of emacs lisp code that allows hiding
  14. >of regions of text and subsequent exposure of the hidden text.
  15.  
  16. look at the documentation on selective-display. This is the only emacs
  17. facility I know of for hiding text. It's a little weird, but it does
  18. work.
  19.  
  20. There are various folding modes for emacs, also. They allow you to
  21. mark sections of text to be hidden or displayed. There's a fold.el
  22. (comes with emacs-18.58?) - is very minimal. I have had good luck with
  23. folding.el by Jamie Lokier for a fuller origami editor. folding.el
  24. should be in the elisp archives.
  25.  
  26. >As an example, I'd like to collapse the body of a while statement
  27. >in C or C++ leaving just the while and condition with some sort
  28. >of ellipsis mark that could be selected for exposing the text.
  29.  
  30. I've been thinking of writing some C++/C syntax sensitive folding
  31. code. Ie: fold the defun, fold the current sexp, fold this arbitrary
  32. block of text. They're all fairly easy, really.
  33.  
  34. Has anyone taken the time to write that folds your source code along
  35. obvious syntactic boundaries?
  36. -- 
  37.                 __
  38. nelson@reed.edu \/   Delicious & Nutritious breakfast cereals shot from guns!
  39.