From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Terrence Brannon Newsgroups: gmane.emacs.help Subject: Re: cperl-mode - outline minor mode - subroutines Date: Mon, 19 Apr 2010 11:02:57 -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> 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 1273011523 27457 80.91.229.12 (4 May 2010 22:18:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 22:18:43 +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:18:42 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 1O9QRt-0007pH-Iq for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 00:18:41 +0200 Original-Received: from localhost ([127.0.0.1]:33426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9QRs-0005wm-Md for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 18:18:40 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!v20g2000yqv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 208.55.254.110 Original-X-Trace: posting.google.com 1271700178 25589 127.0.0.1 (19 Apr 2010 18:02:58 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 19 Apr 2010 18:02:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v20g2000yqv.googlegroups.com; posting-host=208.55.254.110; posting-account=GDJYuQoAAACvR3VU3OOyv8hdViWomHUu User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177789 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:73230 Archived-At: On Apr 19, 12:41=A0pm, LanX wrote: > i Terrance Hi, outline-regexp's value is "^\\(\\([ ]*package\\(\\([ \n]\\|#[^\n]*\n\\)+\\([a-zA-Z_0-9:']+\\)\ \)?\\)\\|[ ]*sub\\(\\([ \n]\\|#[^\n]*\n\\)+\\(::[a-zA-Z_0-9:']+\\|[a- zA-Z_'][a-zA-Z_0-9:']*\\)\\)\\([ \n]*\\(#[^\n]*\n[ \n]*\\)*\\ (([^()]*)\\)\\)?\\([ \n]*\\(#[^\n]*\n[ \n]*\\)*\\(:[^:]\\)\\)?[ \n]* \\(#[^\n]*\n[ \n]*\\)*\\|=3Dhead\\([1-4]\\)[ ]+\\([^\n]+\\)$\\)\\|\\`" > > changing the ending of outline-regexp to "\\|.*#---\\|\\`" helped > folding on comments starting with 3 minus. Programmatically: (let ( (some-string "some-extension-of-regexp")) (setq outline-regexp (concat some-string outline-regexp)) ) What would you set some-string to for changing the ending as you suggest? And how would the code look? Could you create sections and subsections and subsubsections?