org-babel: bug fix, now possible to evaluate source blocks before the first heading

This commit is contained in:
Eric Schulte 2009-11-20 19:38:23 -07:00
parent da2a88c3ae
commit 4b6d270b16
1 changed files with 3 additions and 1 deletions

View File

@ -494,7 +494,9 @@ may be specified in the properties of the current outline entry."
(delq nil
(mapcar
(lambda (header-arg)
(let ((val (or (org-entry-get (point) header-arg 'selective)
(let ((val (or (condition-case nil
(org-entry-get (point) header-arg 'selective)
(error nil))
(cdr (assoc header-arg org-file-properties)))))
(when val
;; (message "param-from-property %s=%s" header-arg val) ;; debugging statement