From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: cperl-mode - outline minor mode - subroutines Date: Wed, 21 Apr 2010 06:52:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: <347cd78d-941a-4a4c-a50b-19df69abdf3b@y17g2000yqd.googlegroups.com> References: <547e499c-4ece-4f8a-b4d7-30fca1a17e9c@8g2000yqz.googlegroups.com> <1f20519e-8129-4b8b-933e-f890d7581f70@n5g2000yqh.googlegroups.com> <8e392a81-3544-4e6a-a92d-5cc3acb060b5@s7g2000vbk.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1273012948 31929 80.91.229.12 (4 May 2010 22:42:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 22:42:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 00:42:27 2010 connect(): No such file or directory Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9Qor-0001sr-I9 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 00:42:26 +0200 Original-Received: from localhost ([127.0.0.1]:37134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9Qoq-0001Dv-Bf for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:42:24 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!y17g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 188.97.71.165 Original-X-Trace: posting.google.com 1271857949 341 127.0.0.1 (21 Apr 2010 13:52:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 21 Apr 2010 13:52:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y17g2000yqd.googlegroups.com; posting-host=188.97.71.165; posting-account=zOOXDwgAAAAi0tA6rMyFDghoWI7QL8B_ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.18) Gecko/2010021502 Ubuntu/8.10 (intrepid) Firefox/3.0.18,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177815 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:73250 Archived-At: 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...