org-babel: extend the way header args are taken from properties
This change allows org-file-properties to supply header args, and also allows property inheritance if it has been enabled. Header-args aquired from the item (or by inheritance) have precedence over those aquired from org-file-properties.
This commit is contained in:
parent
8ca34cba0b
commit
351f52192d
|
@ -360,7 +360,8 @@ may be specified in the properties of the current outline entry."
|
|||
(delq nil
|
||||
(mapcar
|
||||
(lambda (header-arg)
|
||||
(let ((val (org-entry-get (point) header-arg)))
|
||||
(let ((val (or (org-entry-get (point) header-arg 'selective)
|
||||
(cdr (assoc header-arg org-file-properties)))))
|
||||
(when val
|
||||
;; (message "param-from-property %s=%s" header-arg val) ;; debugging statement
|
||||
(cons (intern (concat ":" header-arg)) val))))
|
||||
|
|
Loading…
Reference in New Issue