Function: org-property-or-variable-value
org-property-or-variable-value is a byte-compiled function defined in
org.el.gz.
Signature
(org-property-or-variable-value VAR &optional INHERIT)
Documentation
Check if there is a property fixing the value of VAR.
If yes, return this value. If not, return the current value of the variable.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-property-or-variable-value (var &optional inherit)
"Check if there is a property fixing the value of VAR.
If yes, return this value. If not, return the current value of the variable."
(let ((prop (org-entry-get nil (symbol-name var) inherit)))
(if (and prop (stringp prop) (string-match "\\S-" prop))
(read prop)
(symbol-value var))))