aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-03-09 06:52:12 +0000
committerKarl Heuer1994-03-09 06:52:12 +0000
commit9f9d894124232c4028e0724abdffd01c1fb8cda7 (patch)
treea7a62cab80e144feef8c9eab080dafb6880d04da
parent589479d190e3567f3aaef9cd146a9a8990aa174f (diff)
downloademacs-9f9d894124232c4028e0724abdffd01c1fb8cda7.tar.gz
emacs-9f9d894124232c4028e0724abdffd01c1fb8cda7.zip
(outline-regexp): Initialize outside the defvar.
-rw-r--r--lisp/textmodes/ooutline.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/textmodes/ooutline.el b/lisp/textmodes/ooutline.el
index 3d35c224665..a9a6c959a24 100644
--- a/lisp/textmodes/ooutline.el
+++ b/lisp/textmodes/ooutline.el
@@ -34,11 +34,16 @@
34 34
35;; Jan '86, Some new features added by Peter Desnoyers and rewritten by RMS. 35;; Jan '86, Some new features added by Peter Desnoyers and rewritten by RMS.
36 36
37(defvar outline-regexp "[*\^l]+" 37(defvar outline-regexp nil
38 "*Regular expression to match the beginning of a heading. 38 "*Regular expression to match the beginning of a heading.
39Any line whose beginning matches this regexp is considered to start a heading. 39Any line whose beginning matches this regexp is considered to start a heading.
40The recommended way to set this is with a Local Variables: list 40The recommended way to set this is with a Local Variables: list
41in the file it applies to. See also outline-heading-end-regexp.") 41in the file it applies to. See also outline-heading-end-regexp.")
42
43;; Can't initialize this in the defvar above -- some major modes have
44;; already assigned a local value to it.
45(or (default-value 'outline-regexp)
46 (setq-default outline-regexp "[*\^L]+"))
42 47
43(defvar outline-heading-end-regexp "[\n\^M]" 48(defvar outline-heading-end-regexp "[\n\^M]"
44 "*Regular expression to match the end of a heading line. 49 "*Regular expression to match the end of a heading line.