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 - how people outline their code? Date: Fri, 23 Apr 2010 16:09:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: 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> <347cd78d-941a-4a4c-a50b-19df69abdf3b@y17g2000yqd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273014597 4338 80.91.229.12 (4 May 2010 23:09:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 23:09:57 +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 01:09:55 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 1O9RFM-0004GJ-PJ for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 01:09:49 +0200 Original-Received: from localhost ([127.0.0.1]:44895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9RFM-0007Cy-2s for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 19:09:48 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!j17g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: 188.97.79.76 Original-X-Trace: posting.google.com 1272064172 27540 127.0.0.1 (23 Apr 2010 23:09:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 23 Apr 2010 23:09:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j17g2000yqa.googlegroups.com; posting-host=188.97.79.76; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd 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:177852 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:73273 Archived-At: Hi Ilya > 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. =A0Given thi= s > 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. I can only tell how I'm doing it, I'm not "the USERS" and I'm still confused about the whishes of Terrence/Metaperl (hs-minor-mode simply folds at all blocks "{"blocks"}" ) Chunks of code line - normally but not necessarily paragraphs - get a leading comment line like --------------------------- sub do_data { #- fetching data open my $fh,"<","txt"; $data=3Dslurp $fh; #- processing data ... #- returning data ... } -------------------------- to be able to fold these with outline minor mode I add an extra hyphen to distinguish these line comments from others. (I don't think it's possible to design a regex that only folds single comment lines on tops of code chunks.) more folding on =3Dpods would be nice, too. But I'm not sure if outline or hide-show is the better choice. If you want a more representative answer you should maybe ask at perlmonks.org Cheers Rolf