help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cperl-mode - outline minor mode - subroutines


From: Terrence Brannon
Subject: Re: cperl-mode - outline minor mode - subroutines
Date: Mon, 19 Apr 2010 11:02:57 -0700 (PDT)
User-agent: G2/1.0

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]