|
From: | LanX |
Subject: | Re: cperl-mode - outline minor mode - subroutines |
Date: | Wed, 21 Apr 2010 06:52:28 -0700 (PDT) |
User-agent: | G2/1.0 |
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 Maybe he is reading a willing to update his mode to allow a variable "cperl-outline-chunk-regexp" Anyway if can't add extra heading-comment to the code in questions all these efforts are useless! Hope its clear now...
[Prev in Thread] | Current Thread | [Next in Thread] |