Re: [O] babel header arguments tutorial?

2015-09-27 Thread Lawrence Bottorff
I guess from a purely elisp perspective I'm baffled. How is #+begin_src emacs-lisp org-babel-default-header-args:Python #+end_src supposed to produce #+RESULTS: | (:session . foo) | as it supposedly does in the doc? It doesn't for me. (Where, e.g., would "foo" be coming from?) If it had

Re: [O] babel header arguments tutorial?

2015-09-27 Thread Thomas S . Dye
Aloha Nick, Nick Dokos writes: > Thomas S. Dye writes: > >> Aloha Nick, >> >> Nick Dokos writes: >> >>> The implementation on the page you linked contains a typo (capital P >>> instead of lower-case p in python) and is much more prolix than

Re: [O] babel header arguments tutorial?

2015-09-27 Thread Nick Dokos
Lawrence Bottorff writes: > I guess from a purely elisp perspective I'm baffled. How is > > #+begin_src emacs-lisp >   org-babel-default-header-args:Python > #+end_src > > supposed to produce > > #+RESULTS: > | (:session . foo) | > > as it supposedly does in the doc? It

[O] babel header arguments tutorial?

2015-09-26 Thread Lawrence Bottorff
I see this and find the bottom section ("Setting language and file specific default header argument value") intriguing, however too cryptic. Can someone explain what's going on here and how to use it? LB

Re: [O] babel header arguments tutorial?

2015-09-26 Thread Nick Dokos
Lawrence Bottorff writes: > I see this and find the bottom section ("Setting language and file > specific default header argument value") intriguing, however too > cryptic. Can someone explain what's going on here and how to use it? > Each language defines a variable where

Re: [O] babel header arguments tutorial?

2015-09-26 Thread Thomas S . Dye
Aloha Nick, Nick Dokos writes: > The implementation on the page you linked contains a typo (capital P > instead of lower-case p in python) and is much more prolix than it needs > to be. You can get the same effect with > > # Local Variables: > #

Re: [O] babel header arguments tutorial?

2015-09-26 Thread Charles C. Berry
On Sat, 26 Sep 2015, Lawrence Bottorff wrote: I see this and find the bottom section ("Setting language and file specific default header argument value") intriguing, however too cryptic. Can someone explain what's going on here and

Re: [O] babel header arguments tutorial?

2015-09-26 Thread Nick Dokos
Thomas S. Dye writes: > Aloha Nick, > > Nick Dokos writes: > >> The implementation on the page you linked contains a typo (capital P >> instead of lower-case p in python) and is much more prolix than it needs >> to be. You can get the same effect with >> >> #

Re: [O] babel, header arguments.

2014-11-21 Thread jenia.ivlev
Sebastien Vauban sva-n...@mygooglest.com writes: jenia.ivlev wrote: So lets say there's this function: #+name: my-plus #+begin_src scheme (define my-plus (lambda (x y) (+ x y))) #+end_src And i want to call it from another source block, like so:

Re: [O] babel, header arguments.

2014-11-21 Thread Thomas S. Dye
Aloha, jenia.iv...@gmail.com (jenia.ivlev) writes: Also, what if I want to import the actual function defintion into another src block: #+begin_src scheme (+ (my-plus 3 4) 1) #+end_src something here that import the previous function definitions Is that possible?

Re: [O] babel, header arguments.

2014-11-21 Thread jenia.ivlev
t...@tsdye.com (Thomas S. Dye) writes: Aloha, jenia.iv...@gmail.com (jenia.ivlev) writes: Also, what if I want to import the actual function defintion into another src block: #+begin_src scheme (+ (my-plus 3 4) 1) #+end_src something here that import the previous

Re: [O] babel, header arguments.

2014-11-21 Thread jenia.ivlev
jenia.iv...@gmail.com (jenia.ivlev) writes: t...@tsdye.com (Thomas S. Dye) writes: Aloha, jenia.iv...@gmail.com (jenia.ivlev) writes: Also, what if I want to import the actual function defintion into another src block: #+begin_src scheme (+ (my-plus 3 4) 1) #+end_src

Re: [O] babel, header arguments.

2014-11-21 Thread Thomas S. Dye
jenia.iv...@gmail.com (jenia.ivlev) writes: t...@tsdye.com (Thomas S. Dye) writes: Aloha, jenia.iv...@gmail.com (jenia.ivlev) writes: Also, what if I want to import the actual function defintion into another src block: #+begin_src scheme (+ (my-plus 3 4) 1) #+end_src

Re: [O] babel, header arguments.

2014-11-21 Thread jenia.ivlev
t...@tsdye.com (Thomas S. Dye) writes: jenia.iv...@gmail.com (jenia.ivlev) writes: t...@tsdye.com (Thomas S. Dye) writes: Aloha, jenia.iv...@gmail.com (jenia.ivlev) writes: Also, what if I want to import the actual function defintion into another src block: #+begin_src scheme

Re: [O] babel, header arguments.

2014-11-20 Thread Sebastien Vauban
jenia.ivlev wrote: So lets say there's this function: #+name: my-plus #+begin_src scheme (define my-plus (lambda (x y) (+ x y))) #+end_src And i want to call it from another source block, like so: #+tblname: addition | sum| ||

[O] babel, header arguments.

2014-11-18 Thread jenia.ivlev
Hello. I want to go through the book little schemer and take notes interlaced with the code from the book. For this I want to use babel. So lets say there's this function: #+name: my-plus #+begin_src scheme (define my-plus (lambda (x y) (+ x y))) #+end_src And i

Re: [O] [Babel] Header arguments

2011-05-14 Thread Eric Schulte
t...@tsdye.com (Thomas S. Dye) writes: Aloha all, I have a little function that graphs two 14C dates (below). The data are held in tables produced by a software package that I access on the web. I read these into Org-mode and give them a #+tblname:, as shown below. I'd like to have one

[O] [Babel] Header arguments

2011-05-13 Thread Thomas S. Dye
Aloha all, I have a little function that graphs two 14C dates (below). The data are held in tables produced by a software package that I access on the web. I read these into Org-mode and give them a #+tblname:, as shown below. I'd like to have one function that will graph any number of tables

Re: [O] [Babel] Header arguments

2011-05-13 Thread Nick Dokos
Thomas S. Dye t...@tsdye.com wrote: Aloha all, I have a little function that graphs two 14C dates (below). The data are held in tables produced by a software package that I access on the web. I read these into Org-mode and give them a #+tblname:, as shown below. I'd like to have one