Mercurial > emacs
comparison lisp/textmodes/outline.el @ 39261:fc133c103640
(outline-regexp): Doc fix.
Initialize it in the defcustom, the usual way.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 12 Sep 2001 20:42:08 +0000 |
parents | 7370effcd55c |
children | 4f8e9cc04af5 |
comparison
equal
deleted
inserted
replaced
39260:2047dec7f46f | 39261:fc133c103640 |
---|---|
38 (defgroup outlines nil | 38 (defgroup outlines nil |
39 "Support for hierarchical outlining" | 39 "Support for hierarchical outlining" |
40 :prefix "outline-" | 40 :prefix "outline-" |
41 :group 'editing) | 41 :group 'editing) |
42 | 42 |
43 (defcustom outline-regexp nil | 43 (defcustom outline-regexp "[*\^L]+" |
44 "*Regular expression to match the beginning of a heading. | 44 "*Regular expression to match the beginning of a heading. |
45 Any line whose beginning matches this regexp is considered to start a heading. | 45 Any line whose beginning matches this regexp is considered to start a heading. |
46 Note that Outline mode only checks this regexp at the start of a line, | |
47 so the regexp need not (and usually does not) start with `^'. | |
46 The recommended way to set this is with a Local Variables: list | 48 The recommended way to set this is with a Local Variables: list |
47 in the file it applies to. See also `outline-heading-end-regexp'." | 49 in the file it applies to. See also `outline-heading-end-regexp'." |
48 :type '(choice regexp (const nil)) | 50 :type '(choice regexp (const nil)) |
49 :group 'outlines) | 51 :group 'outlines) |
50 | |
51 ;; Can't initialize this in the defvar above -- some major modes have | |
52 ;; already assigned a local value to it. | |
53 (or (default-value 'outline-regexp) | |
54 (setq-default outline-regexp "[*\^L]+")) | |
55 | 52 |
56 (defcustom outline-heading-end-regexp "\n" | 53 (defcustom outline-heading-end-regexp "\n" |
57 "*Regular expression to match the end of a heading line. | 54 "*Regular expression to match the end of a heading line. |
58 You can assume that point is at the beginning of a heading when this | 55 You can assume that point is at the beginning of a heading when this |
59 regexp is searched for. The heading ends at the end of the match. | 56 regexp is searched for. The heading ends at the end of the match. |