summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2011-07-19 02:00:50 +0200
committerBastien Guerry <bzg@altern.org>2011-07-19 02:00:50 +0200
commit08fc6384bcb3937d933f21d0b12c818603d8a279 (patch)
treecbff94550358ee36a60cf5ec48012cd330bb3681
parent0df11d910c848bf05695584db7df32043b808326 (diff)
downloadorg-mode-08fc6384bcb3937d933f21d0b12c818603d8a279.tar.gz
org.el (org-outline-regexp): Turn into a defvar.
`org-outline-regexp' ought to be a defconst but is let-binded in some places -- e.g. see the macro `org-with-limited-levels' and this produces misleading warnings. Thanks to Matthew Sauer for reporting this.
-rw-r--r--lisp/org.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 14ed951..e2ded52 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -4711,7 +4711,10 @@ This variable is set by `org-before-change-function'.
(defvar org-inhibit-logging nil) ; Dynamically-scoped param.
(defvar org-inhibit-blocking nil) ; Dynamically-scoped param.
(defvar org-table-buffer-is-an nil)
-(defconst org-outline-regexp "\\*+ ")
+
+;; org-outline-regexp ought to be a defconst but is let-binding
+;; in some places -- e.g. see the macro org-with-limited-levels
+(defvar org-outline-regexp "\\*+ ")
(defconst org-outline-regexp-bol "^\\*+ ")
;;;###autoload