aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2011-03-04 00:40:00 -0800
committerGlenn Morris2011-03-04 00:40:00 -0800
commit015bea8f8f6a62f81ee03863666bca7e1cceb820 (patch)
treef2a4c36c789511d61f35fd2ad17b1851ecec8df1
parent9d9827395a41ab7b87755447ca8a9bf4a163e697 (diff)
downloademacs-015bea8f8f6a62f81ee03863666bca7e1cceb820.tar.gz
emacs-015bea8f8f6a62f81ee03863666bca7e1cceb820.zip
outline.el fix for bug#7619.
It turns out the use of nil in the :type of outline regexp was for very hysterical raisons. Prior to 2001-09-12T20:42:08Z!rms@gnu.org, the default value was nil, then it was initialized afterwards. Everywhere in the code assumes it cannot be nil, so no need to allow that any more. * lisp/outline.el (outline-regexp): No longer allow nil. (outline-heading-end-regexp): Add safety predicate.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/outline.el5
2 files changed, 6 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c550cd4e852..094143343fb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-03-04 Glenn Morris <rgm@gnu.org> 12011-03-04 Glenn Morris <rgm@gnu.org>
2 2
3 * outline.el (outline-regexp): No longer allow nil.
4 (outline-heading-end-regexp): Add safety predicate. (Bug#7619)
5
3 * net/browse-url.el (browse-url): 6 * net/browse-url.el (browse-url):
4 Handle deleted default-directory. (Bug#6077) 7 Handle deleted default-directory. (Bug#6077)
5 8
diff --git a/lisp/outline.el b/lisp/outline.el
index d43afd94a3c..cedc55b3336 100644
--- a/lisp/outline.el
+++ b/lisp/outline.el
@@ -50,9 +50,9 @@ Note that Outline mode only checks this regexp at the start of a line,
50so the regexp need not (and usually does not) start with `^'. 50so the regexp need not (and usually does not) start with `^'.
51The recommended way to set this is with a Local Variables: list 51The recommended way to set this is with a Local Variables: list
52in the file it applies to. See also `outline-heading-end-regexp'." 52in the file it applies to. See also `outline-heading-end-regexp'."
53 :type '(choice regexp (const nil)) 53 :type 'regexp
54 :group 'outlines) 54 :group 'outlines)
55;;;###autoload(put 'outline-regexp 'safe-local-variable 'string-or-null-p) 55;;;###autoload(put 'outline-regexp 'safe-local-variable 'stringp)
56 56
57(defcustom outline-heading-end-regexp "\n" 57(defcustom outline-heading-end-regexp "\n"
58 "Regular expression to match the end of a heading line. 58 "Regular expression to match the end of a heading line.
@@ -62,6 +62,7 @@ The recommended way to set this is with a `Local Variables:' list
62in the file it applies to." 62in the file it applies to."
63 :type 'regexp 63 :type 'regexp
64 :group 'outlines) 64 :group 'outlines)
65;;;###autoload(put 'outline-heading-end-regexp 'safe-local-variable 'stringp)
65 66
66(defvar outline-mode-prefix-map 67(defvar outline-mode-prefix-map
67 (let ((map (make-sparse-keymap))) 68 (let ((map (make-sparse-keymap)))