[EMACS-PERL] Fwd: cperl-mode - how people outline their code?

Skip to first unread message


Apr 24, 2010, 7:40:32 AM4/24/10
to emacs-perl-intersection
Hi guys

maybe this discussion in gnu.emacs.help is of interest for you?



---------- Forwarded message ----------
From: Ilya Zakharevich <nospam-ab...@ilyaz.org>
Date: 23 Apr., 22:49
Subject: cperl-mode - how people outline their code?
To: gnu.emacs.help

On 2010-04-21, LanX <rolf.langsd...@googlemail.com> wrote:

> There plenty of questions you didn't answer.

> Once again "outline-minor-mode" works on headlines like "sub {" and
> "package"  so if you wanna fold chunks you have to mark them by  a
> leading headline like "  #- Chunk to be folded\n".

> But only appending ".*#- " to "cperl-outline-regexp" which is matching
> these headlines isn't enough!

> You have also to change the function "cperl-outline-level" such that
> the folding levels don't get confused.

> I have no big idea or time to fiddle out how to do this without
> hacking into Ilya's code

Myself, I have not used outline mode more than a time or two.

So all I can suggest is for you people giving me suggestions how the
USERS may want/need to add their own "extra" outline levels.  Given
information, I might be able to incorporate something into the CPerl's
puny outline support...

> Maybe he is reading a willing to update his mode to allow a variable
> "cperl-outline-chunk-regexp"

... only if I know some examples of what people like to do.

Reply all
Reply to author
0 new messages