summaryrefslogtreecommitdiff
path: root/lisp/outline.el
diff options
context:
space:
mode:
authorBastien Guerry <bzg@gnu.org>2013-02-20 14:05:24 +0100
committerBastien Guerry <bzg@gnu.org>2013-02-20 14:05:24 +0100
commitd8d2d18a7d85663f42d9d6f9859079e629428913 (patch)
treec993b6a2a03582bd7f6701b3835f9746ef7a5a8c /lisp/outline.el
parent1e56f8ef3495d015ee992930da1d6cc76532de68 (diff)
* outline.el (outline-regexp, outline-heading-end-regexp): Use
variables, not options (bug#13731). Setting this as a global option is likely to be useless, because it is unlikely that all outline file will use the modified regexp. Additionnally, if one of these variables if set through customize and the outline keybindings don't work in a standard outline file, it is hard to know why. Thanks to T. V. Raman for reporting this.
Diffstat (limited to 'lisp/outline.el')
-rw-r--r--lisp/outline.el12
1 files changed, 4 insertions, 8 deletions
diff --git a/lisp/outline.el b/lisp/outline.el
index 24f25fd2fb7..0ec5227a286 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -43,25 +43,21 @@
:prefix "outline-"
:group 'wp)
-(defcustom outline-regexp "[*\^L]+"
+(defvar 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 'regexp
- :group 'outlines)
+in the file it applies to. See also `outline-heading-end-regexp'.")
;;;###autoload(put 'outline-regexp 'safe-local-variable 'stringp)
-(defcustom outline-heading-end-regexp "\n"
+(defvar 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
regexp is searched for. The heading ends at the end of the match.
The recommended way to set this is with a `Local Variables:' list
-in the file it applies to."
- :type 'regexp
- :group 'outlines)
+in the file it applies to.")
;;;###autoload(put 'outline-heading-end-regexp 'safe-local-variable 'stringp)
(defvar outline-mode-prefix-map