Kaynağa Gözat

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.
Bastien Guerry 13 yıl önce
ebeveyn
işleme
08fc6384bc
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      lisp/org.el

+ 4 - 1
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