My curiosity having been piqued by the comment hiding discussion, I did
a little more digging - it seems that folding mode is the easiest way to
achieve a view with exclusion of comments. By default, you'll have to use
'{{{' and '}}}' to delimit sections you want to fold up.  With jdok now a
part of the core JDE, you could easily add these tokens to your javadoc
templates using custom.

With a little more effort, you can add a hook to folding mode that
changes the fold marks to some other token, say, /** and */. Haven't
tried it myself.

Folding mode lives here
<ftp://ftp.csd.uu.se/pub/users/andersl/emacs/folding.el>

And is described as follows:

;; Preface
;;
;;      This package provides a minor mode, compatible with all major
;;      editing modes, for folding (hiding) parts of the edited text or
;;      program.
;;
;;      Folding mode handles a document as a tree, where each branch is
;;      bounded by special markers `{{{' and `}}}'.  A branch can be placed
;;      inside another branch, creating a complete hierarchical structure.
;;
;;      Folding mode can CLOSE a fold, leaving only the initial `{{{'
;;      and possibly a comment visible.
;;
;;      It can also ENTER a fold, which means that only the current fold
;;      will be visible, all text above `{{{' and below `}}}' will be
;;      invisible.
;;


In message <3E6A3F18095BD311B13200105A6B24A4A0C2DF@ALPHA>, James Sinnamon write
s:
: Dear all, 
: 
: Thanks, also, from this relatively new user of JDE to 
: Paul and other contributers. 
: 
: View with exclusion of comments a good idea
: --------------------------------------------
: 
: Randy Howe wrote:
: 
: > I find that sometimes I just don't
: > want to see the comments when examining my code. 
: > Anybody else every wished for something like that?
: 
: 
: I could certainly use a feature that would allow
: a view of the buffer, which is being edited, which 
: excluded comments in particular, and/or whatever else 
: did not take your interest at the time.  
: 
: The editor (called TSO I think(?)) on the 
: IBM MVS mainframe environment, did something like 
: this rather well.  It was like being applying to 
: apply grep (or a reverse grep) to the current buffer 
: whilst allowing you to edit the buffer at the same 
: time.
: 
: Outline view
: -------------
: 
: I would also say that an outline view would (possibly
: similar to what is use in word processers) as mentioned
: by another contributor, would also be useful for be.
: 
: Just possibly, this could work quite well in 
: conjunction with the 'comment exclusion view' idea 
: mentioned above.
: 
: Thanks again,
: 
: regards,
: 
: James Sinnamon
: 

Reply via email to