From: Terrence Brannon <metaperl@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: cperl-mode - outline minor mode - subroutines
Date: Mon, 19 Apr 2010 11:02:57 -0700 (PDT) [thread overview]
Message-ID: <a4665b0e-7c69-41c5-813f-caa8e648d5ca@v20g2000yqv.googlegroups.com> (raw)
In-Reply-To: 1f20519e-8129-4b8b-933e-f890d7581f70@n5g2000yqh.googlegroups.com
On Apr 19, 12:41 pm, LanX <lanx.p...@googlemail.com> 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]*\\)*\\|=head\\([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?
next prev parent reply other threads:[~2010-04-19 18:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 15:12 cperl-mode - outline minor mode - subroutines Terrence Brannon
2010-04-19 16:16 ` LanX
2010-04-19 16:39 ` Terrence Brannon
2010-04-19 16:49 ` LanX
2010-04-21 18:28 ` Terrence Brannon
2010-04-22 1:25 ` LanX
2010-04-19 16:41 ` LanX
2010-04-19 18:02 ` Terrence Brannon [this message]
2010-04-20 8:22 ` LanX
2010-04-20 19:10 ` Terrence Brannon
2010-04-21 13:52 ` LanX
2010-04-21 18:36 ` David Rogoff
2010-04-23 20:49 ` cperl-mode - how people outline their code? Ilya Zakharevich
2010-04-23 23:09 ` LanX
2010-04-25 2:07 ` Ilya Zakharevich
2010-04-25 10:15 ` LanX
2010-04-25 11:36 ` LanX
2010-04-27 4:13 ` Ilya Zakharevich
2010-05-04 14:59 ` LanX
2010-07-01 16:16 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a4665b0e-7c69-41c5-813f-caa8e648d5ca@v20g2000yqv.googlegroups.com \
--to=metaperl@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).