org-refresh-category-properties: Do not check element cache
* lisp/org.el (org-refresh-category-properties): Do not check if org-element-cache is active. This function is now obsolete and can only be called on purpose by third-party code that probably expects the text properties to be assigned regardless whether the cache is active. This commit also fixes compiler warning as `org-element--cache-active-p' is not declared anymore in lisp/org.el.
This commit is contained in:
parent
9ed7956afd
commit
5ed3e1dfc3
|
@ -8027,7 +8027,6 @@ the whole buffer."
|
|||
|
||||
(defun org-refresh-category-properties ()
|
||||
"Refresh category text properties in the buffer."
|
||||
(unless (org-element--cache-active-p)
|
||||
(let ((case-fold-search t)
|
||||
(inhibit-read-only t)
|
||||
(default-category
|
||||
|
@ -8069,7 +8068,7 @@ the whole buffer."
|
|||
(point-max)
|
||||
(org-end-of-subtree t t)))
|
||||
'org-category
|
||||
value)))))))))))
|
||||
value))))))))))
|
||||
|
||||
(defun org-refresh-stats-properties ()
|
||||
"Refresh stats text properties in the buffer."
|
||||
|
|
Loading…
Reference in New Issue