Eric Schulte
77c8f29968
** DONE test failing forcing vector results with =test-forced-vector-results= ruby code block
2009-06-14 10:24:29 -07:00
Eric Schulte
0019cc9c14
all tests seem to be passing
2009-06-14 10:23:44 -07:00
Eric Schulte
ba2756447d
correctly using the ARTIFICIAL flag with comint-send-input
2009-06-14 10:21:14 -07:00
Eric Schulte
3cd99d0c2f
** DONE defunct R sessions
...
turns out I just had to use inferior-ess-send-input instead of comint-send-input
2009-06-14 10:20:59 -07:00
Eric Schulte
bf2b175ba8
fleshing out bug description
2009-06-14 10:05:26 -07:00
Eric Schulte
4a4046d73d
adding two bugs...
...
** TODO defunct R sessions
** TODO test failing forcing vector results with =test-forced-vector-results= ruby code block
2009-06-14 09:22:31 -07:00
Eric Schulte
d879ac0a12
seems to have passed all tests (I'm skeptical there still may be problems)
...
Specifically with the following two issues...
1) hanging on R code blocks when we have multiple R sessions in play
2) very occasionally the results of ruby code blocks are iffy
This whole session experience proves the general point that functional
code is easier to write and debug than code with state.
2009-06-14 09:18:42 -07:00
Eric Schulte
f31b3b2af2
fixed problem with new ruby sessions sometimes not initializing
2009-06-14 09:12:19 -07:00
Eric Schulte
8931657abf
adding bug: TODO ruby fails on first call to non-default session
2009-06-14 08:42:35 -07:00
Eric Schulte
0b75d89ccf
fixed error parsing empty results from ruby
2009-06-14 08:41:52 -07:00
Eric Schulte
82e9587c72
added alternate single-line syntax for Library of Babel evaluation
2009-06-14 07:54:55 -07:00
Dan Davison
04be81dfe4
Cleaner implementation of org-babel-execute:babel.
...
It now searches for a srcname first in the current buffer, and then in
the lob.
2009-06-14 01:11:04 -04:00
Dan Davison
66b27cb951
Added get-all-src-block-infos, which creates a hash of the 'info' lists
...
for all source blocks in a buffer, keyed by srcname.
2009-06-14 01:08:27 -04:00
Dan Davison
81ee8944ae
Correcting errors in previously untested code.
2009-06-13 22:48:44 -04:00
Eric Schulte
08f92aebe5
passing some session tests, but still failing some tests
2009-06-13 19:35:48 -07:00
Eric Schulte
391f677fc7
`org-babel-comint-with-output' is now robust to errors
2009-06-13 18:28:06 -07:00
Eric Schulte
da08c26d33
applying org-babel-comint-with-output macro to org-babel-shell.el
2009-06-13 17:39:19 -07:00
Eric Schulte
7d1cbd43ea
removing debugging statements from org-babel-ref.el
2009-06-13 17:35:39 -07:00
Eric Schulte
cd5fb8460d
slightly more graceful use of let*
2009-06-13 17:35:01 -07:00
Eric Schulte
e39b5e848e
applying org-babel-comint-with-output macro to org-babel-R.el
2009-06-13 17:34:51 -07:00
Eric Schulte
f4a1193a6e
now using org-babel-comint-with-output in org-babel-python.el
2009-06-13 17:30:02 -07:00
Eric Schulte
47810f8e14
references to #+resname lines are now working
2009-06-13 17:08:43 -07:00
Eric Schulte
dd0392a4f2
extracted the "capture all output from comint session" behavior into a macro
2009-06-13 17:08:42 -07:00
Dan Davison
6f9985a749
Synching org-babel.org across branches
2009-06-13 19:01:06 -04:00
Dan Davison
b3afff4392
Merge branch 'session' into library-of-babel
2009-06-13 18:57:34 -04:00
Dan Davison
f1ba541bf3
Updated notes on implementation of library functions.
2009-06-13 18:52:37 -04:00
Dan Davison
b300b62b9c
OK, I'm getting confused in magit and committing only a single hunk
...
when I intended several. Hence, the commit note for this commit is the
commit note filed with the previous commit: da82dae939
2009-06-13 18:51:23 -04:00
Dan Davison
da82dae939
Implementing library functions as a new (pseudo) interpreter called
...
'babel'. Added a speculative function which creates a hash table
containing parsed versions of all source blocks in a buffer -- I was
wondering whether we should 'load' the library-of-babel into memory in
this fashion, rather than searching for code blocks in buffers /
files.
2009-06-13 18:49:24 -04:00
Dan Davison
317a062a9a
New variable org-babel-named-src-block-regexp to match src block with
...
srcname, and function org-babel-named-src-block-regexp-for-name
returning regexp matching a block with a particular
name. org-babel-named-src-block-regexp is set by
org-babel-set-interpreters.
2009-06-13 18:46:26 -04:00
Dan Davison
e0909d8458
New variable org-babel-named-src-block-regexp, to match a block with its srcname, and simple version of function org-babel-find-named-block.
2009-06-13 18:43:24 -04:00
Eric Schulte
3b026b806e
shell source blocks no longer hang
2009-06-13 14:49:57 -07:00
Dan Davison
90094f9b7c
Started again with lob implementation.
...
I'm now proposing to implement it, at least temporarily, as a
degenerate source block (has no body), with interpreter name
'babel'. These 'babel' blocks will use a :srcname header arg to refer
to the source code block that they will use for their body. This
source code block might be in the 'library of babel'. If so it will
use a conventional variable name for its 'main data argument' such as
__data__. Then the babel block (not to be confused with a code block
in the lob) would use :var __data__=ref, where ref is a resource
reference resolved as usual.
2009-06-12 23:45:14 -04:00
Dan Davison
f5684b7deb
Still getting started with lob.
...
I plan to get rid of much of this and just implement it as a new
language with a degenerate source block for now (i.e. no body).
2009-06-12 23:02:19 -04:00
Dan Davison
68c3fb2b52
Starting to create `library of babel' branch.
...
This is intended to provide off-the-shelf data plotting and analysis
functions. Current idea is to introduce a new line, perhaps something
like #+babel or #+babel_lib, which will reference (a) some data
and (b) a source block to apply to the data. Code being stolen from
org-babel.el (conceivably some abstraction of some of those functions
could be done to avoid code duplication).
2009-06-12 20:26:28 -04:00
Eric Schulte
8ec719aefb
passing all tests, but have a couple more tasks before merge
...
1) broke reading from #+resname lines
2) shell sometimes stalls indefinitely
3) need condition-case for safe removal of filter when C-g during execution
4) need to add tests for session behavior
2009-06-12 17:02:37 -07:00
Eric Schulte
b56e6b0285
removing Austin F. Frank from copyright and author lines
2009-06-12 16:55:42 -07:00
Eric Schulte
d261e178e9
passing all but one test
2009-06-12 16:50:53 -07:00
Eric Schulte
e0fe83c8d2
moving org-babel-lisp into the langs directory
2009-06-12 16:44:06 -07:00
Eric Schulte
66162b2e4e
more looking into the remaining errors
2009-06-12 16:42:56 -07:00
Eric Schulte
b7c32fc5d8
passing almost all tests
2009-06-12 16:34:06 -07:00
Eric Schulte
d41466e5bc
now really passing all basic tests
2009-06-12 16:23:28 -07:00
Eric Schulte
8f9ae7314a
now passing basic-ruby test
2009-06-12 16:08:51 -07:00
Eric Schulte
5675e56585
sessions are now working in R
2009-06-12 15:31:52 -07:00
Eric Schulte
9623b16914
fixed some weird long-prompt issues with shell comint buffer
2009-06-12 15:20:23 -07:00
Eric Schulte
2dea1ea367
shell is now handling multiple sessions
2009-06-12 14:56:30 -07:00
Eric Schulte
f4798d3e83
python can now handle multiple sessions
2009-06-12 14:49:11 -07:00
Eric Schulte
39a4a85ba1
protecting against spurious spaces in header arguments
2009-06-12 13:46:40 -07:00
Eric Schulte
9bf504e207
brought in org-babel.org from session
2009-06-12 13:35:46 -07:00
Eric Schulte
368cdd2a3e
brought in org-babel.org changes from master
2009-06-12 13:35:04 -07:00
Eric Schulte
8093091103
DONE rework evaluation lang-by-lang [4/4]
2009-06-12 13:10:33 -07:00