changeset 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 2047dec7f46f
children 4e43db05a77f
files lisp/textmodes/outline.el
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/outline.el	Wed Sep 12 20:41:52 2001 +0000
+++ b/lisp/textmodes/outline.el	Wed Sep 12 20:42:08 2001 +0000
@@ -40,19 +40,16 @@
   :prefix "outline-"
   :group 'editing)
 
-(defcustom outline-regexp nil
+(defcustom outline-regexp "[*\^L]+"
   "*Regular expression to match the beginning of 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
 in the file it applies to.  See also `outline-heading-end-regexp'."
   :type '(choice regexp (const nil))
   :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"
   "*Regular expression to match the end of a heading line.
 You can assume that point is at the beginning of a heading when this