mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
(outline-regexp): Doc fix.
Initialize it in the defcustom, the usual way.
This commit is contained in:
parent
1dc13f3a23
commit
89889a00ac
@ -40,19 +40,16 @@
|
|||||||
:prefix "outline-"
|
:prefix "outline-"
|
||||||
:group 'editing)
|
:group 'editing)
|
||||||
|
|
||||||
(defcustom outline-regexp nil
|
(defcustom outline-regexp "[*\^L]+"
|
||||||
"*Regular expression to match the beginning of a heading.
|
"*Regular expression to match the beginning of a heading.
|
||||||
Any line whose beginning matches this regexp is considered to start a heading.
|
Any line whose beginning matches this regexp is considered to start a heading.
|
||||||
|
Note that Outline mode only checks this regexp at the start of a line,
|
||||||
|
so the regexp need not (and usually does not) start with `^'.
|
||||||
The recommended way to set this is with a Local Variables: list
|
The recommended way to set this is with a Local Variables: list
|
||||||
in the file it applies to. See also `outline-heading-end-regexp'."
|
in the file it applies to. See also `outline-heading-end-regexp'."
|
||||||
:type '(choice regexp (const nil))
|
:type '(choice regexp (const nil))
|
||||||
:group 'outlines)
|
:group 'outlines)
|
||||||
|
|
||||||
;; Can't initialize this in the defvar above -- some major modes have
|
|
||||||
;; already assigned a local value to it.
|
|
||||||
(or (default-value 'outline-regexp)
|
|
||||||
(setq-default outline-regexp "[*\^L]+"))
|
|
||||||
|
|
||||||
(defcustom outline-heading-end-regexp "\n"
|
(defcustom outline-heading-end-regexp "\n"
|
||||||
"*Regular expression to match the end of a heading line.
|
"*Regular expression to match the end of a heading line.
|
||||||
You can assume that point is at the beginning of a heading when this
|
You can assume that point is at the beginning of a heading when this
|
||||||
|
Loading…
Reference in New Issue
Block a user