0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-23 14:10:43 +00:00
org-mode/contrib/babel/lisp
Eric Schulte 32bbd3f3bb babel: variable references which look like lisp forms are now evaluated
for example, the following simple example
    #+begin_src emacs-lisp :var two=(+ 1 1)
      (sqrt two)
    #+end_src

    #+results:
    : 1.4142135623730951

  Or this more interesting usage, which pulls variable values from
  headline properties
    *** example headline w/property
        :PROPERTIES:
        :special:  89
        :last-name: schulte
        :END:

    #+begin_src emacs-lisp :var special=(string-to-number (org-entry-get nil "special" t))
      (+ special 1)
    #+end_src

    #+results:
    : 90

    #+begin_src emacs-lisp :var last-name=(org-entry-get nil "last-name" t))
      (message "hello %s" last-name)
    #+end_src

    #+results:
    : hello schulte
2010-03-22 15:19:32 -06:00
..
langs babel: Add octave and matlab support 2010-03-18 14:45:39 -04:00
org-babel-comint.el babel: allow point to move to end of comint buffer 2010-02-27 14:14:07 -05:00
org-babel-exp.el babel: Ensure that inline code blocks produce string output on export 2010-03-19 10:08:16 -04:00
org-babel-keys.el babel: org-babel-switch-to-session [C-c M-b z] 2010-03-16 12:57:28 -04:00
org-babel-lob.el babel: now including source code block arguments w/source name on export 2010-02-10 13:34:00 -07:00
org-babel-ref.el babel: smarter `org-babel-ref-split-args' -- fixes bug parsing indexed function-style args 2010-02-14 11:48:28 -07:00
org-babel-table.el org-babel: cleaner passing of parameter to language specific files 2009-11-10 15:23:00 -07:00
org-babel-tangle.el babel: Fix org-babel-load-file 2010-03-18 14:30:54 -04:00
org-babel.el babel: variable references which look like lisp forms are now evaluated 2010-03-22 15:19:32 -06:00