Browse Source

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

Eric Schulte 16 năm trước cách đây
mục cha
commit
4b6d270b16
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      contrib/babel/lisp/org-babel.el

+ 3 - 1
contrib/babel/lisp/org-babel.el

@@ -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