From 08fc6384bcb3937d933f21d0b12c818603d8a279 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 19 Jul 2011 02:00:50 +0200 Subject: [PATCH] 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. --- lisp/org.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 14ed95121..e2ded5256 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