babel: adding buffer-wide header arguments behind #+BABEL:
commit18be13254568abc2e1502949609dbb23e2c38714
authorEric Schulte <schulte.eric@gmail.com>
Mon, 14 Jun 2010 18:55:37 +0000 (14 11:55 -0700)
committerEric Schulte <schulte.eric@gmail.com>
Mon, 14 Jun 2010 19:15:11 +0000 (14 12:15 -0700)
tree0f27185509b60d4b7d85abc978d6ccdbceb9673e
parente9b132d8ba6c14acc22166c0fa26814503936b2e
babel: adding buffer-wide header arguments behind #+BABEL:

e.g. placing the following at the top of your buffer

will result in all source-code blocks in the buffer having their
:session header argument set to "example"

* contrib/babel/lisp/org-babel-lob.el (org-babel-lob-execute): now
  included buffer-wide header arguments in lob header arguments

* contrib/babel/lisp/org-babel.el (org-babel-params-from-buffer): new
  function for grabbing header arguments from the top of the buffer

  (org-babel-parse-src-block-match): now includes buffer-wide header
  arguments

  (org-babel-parse-inline-src-block-match): now includes buffer-wide
  header arguments

  (org-babel-current-buffer-properties): buffer-local variable to hold
  buffer-wide header arguments
contrib/babel/lisp/org-babel-lob.el
contrib/babel/lisp/org-babel.el