From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Re: cperl-mode - how people outline their code? Date: Fri, 23 Apr 2010 20:49:18 +0000 (UTC) Organization: U.C. Berkeley Math. Department. 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 X-Trace: dough.gmane.org 1273014367 3702 80.91.229.12 (4 May 2010 23:06:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 23:06:07 +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:06:06 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 1O9RBj-0002w2-Q7 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 01:06:04 +0200 Original-Received: from localhost ([127.0.0.1]:35895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9RBj-0002Ww-2G for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 19:06:03 -0400 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Injection-Date: Fri, 23 Apr 2010 20:49:18 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="LlLjF8LevGdIZWbTvv+SXA"; logging-data="28482"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18l/Fr5S9ZL/W1iQVWt7Iew" User-Agent: slrn/0.9.8.1pl1 (Linux) Cancel-Lock: sha1:uwnhGbsP+9JiQaMdwv53lYqeJK8= Original-Xref: usenet.stanford.edu gnu.emacs.help:177848 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:73270 Archived-At: On 2010-04-21, LanX 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 this 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. Yours, Ilya