diff options
author | Bastien Guerry <bzg@altern.org> | 2011-07-19 02:00:50 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-07-19 02:00:50 +0200 |
commit | 08fc6384bcb3937d933f21d0b12c818603d8a279 (patch) | |
tree | cbff94550358ee36a60cf5ec48012cd330bb3681 | |
parent | 0df11d910c848bf05695584db7df32043b808326 (diff) | |
download | org-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.el | 5 |
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 |