help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code folding


From: Michael Powe
Subject: Re: code folding
Date: 29 Jan 2006 14:32:44 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

>>>>> "Colin" == Colin S Miller <no-spam-thank-you@csmiller.demon.co.uk> writes:

    Colin> Michael Powe wrote:
    >> Hello, I'm looking for folding.el or its current equivalent to
    >> do code/comment folding.  I can get by with just comment
    >> folding because hide-show doesn't work for comments.  It would
    >> be nice to have everything rolled up into a single package,
    >> though.  All of the google references for folding.el are to
    >> either discussions only or to expired pages and I can't find a
    >> download location.  I can't find any indication that it has
    >> been superceded by a new, improved item, either.  Thanks.  mp
    >> 

    Colin> Michael,

    Colin> hs-minor-mode (hide-show) can fold comments in C, C++ and
    Colin> elisp, and probably other languages. You didn't state which
    Colin> language you are using, perhaps the parser isn't set up
    Colin> correctly for you language.

It does hide the functions but not the C-style comments.  The language
is Javascript.  When the point is inside a comment block, nothing
happens when 'hide block' is invoked.  I didn't try it on C++ style
comments, which I only ever use for 1 or 2 line comments, anyway.

You could be right, though, and maybe it is just set up for that style
of comment.

Thanks.

mp

-- 
Michael Powe            michael@trollope.org            Naugatuck CT USA
It could have been an organically based disturbance of the brain --
perhaps a tumor or a metabolic deficiency -- but after a thorough
neurological exam it was determined that Byron was simply a jerk.  
-- Jeff Jahnke, runner-up, Bulwer-Lytton contest


reply via email to

[Prev in Thread] Current Thread [Next in Thread]