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

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

Re: how to set outline-minor-mode heading levels in outline-regexp


From: Michael Heerdegen
Subject: Re: how to set outline-minor-mode heading levels in outline-regexp
Date: Tue, 24 Mar 2015 07:57:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Qiang Fang <godblessfq@gmail.com> writes:

>     (setq outline-regexp (concat comment-start " [*]\\{1,8\\}\\|"
> outline-regexp)))

(setq outline-regexp (concat some-regexp... outline-regexp)) doesn't make
sense to me.  Why do you append the old binding of the variable to your
new setting?

Also, you usage of `comment-start' is not correct.  This regexp does not
necessarily match the complete comment start delimiter.  For example, in
Emacs Lisp, `comment-start' is bound to ";", so your setting of
`outline-regexp' will not work for comments starting with more than one
semicolon.  AFAICT, `comment-start' can even be nil for some modes.


HTH,

Michael.



reply via email to

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