Commit Graph

108 Commits

Author SHA1 Message Date
Eric Schulte e247c0d7f3 fixed small bug in org-babel-map-source-blocks 2009-08-03 08:19:16 -06:00
Eric Schulte 05567124a8 DONE LoB is not populated on startup 2009-08-02 11:36:54 -06:00
Eric Schulte 8506995b9d added 'var' as a possible header argument to be read from outline properties 2009-08-01 18:10:17 -06:00
Eric Schulte 735a1556b6 DONE take default values for header args from properties 2009-08-01 18:06:46 -06:00
Eric Schulte 883a174357 bringing back default values from properties
originally in commit 6b5747fdfa
2009-08-01 15:43:37 -06:00
Eric Schulte aa8bcd9f38 DONE optionally evaluate header references when we switch to =*Org Edit Src*= buffer
If `org-edit-special' is called with a prefix argument from inside a
  source-code block which has a session, then the session is prepared
  according to the header arguments of the source-code blocks.

  This is implemented at a `defadvice' because the org-edit-src-hook
  is called from inside of the edit buffer, rather than the org
  buffer, and it wasn't clear how to access a prefix arg from inside
  of the hook.
2009-07-28 08:30:23 -06:00
Eric Schulte 2fd9accd98 DONE =\C-c \C-o= to open results of source block 2009-07-25 15:48:23 -06:00
Eric Schulte 89dbf83e2a now intercepting org-open-at-point (bound to C-c C-0) with defadvice 2009-07-25 15:37:34 -06:00
Eric Schulte 97d8e85a92 added more tests, still not there 2009-07-24 22:12:52 -06:00
Eric Schulte f4f626e3e1 now able to open file links 2009-07-24 21:54:17 -06:00
Eric Schulte 3692c4b3a5 starting work on allowing opening of src-block results
not yet working
2009-07-24 20:53:13 -06:00
Dan Davison 3457849008 Fix naive argument parsing at #+srcname. 2009-07-23 23:11:17 -04:00
Dan Davison fadb5d5093 Change looking-at-p to looking-at.
Patch from Stephan Schmitt.
2009-07-23 11:06:44 -04:00
Eric Schulte 6b5747fdfa Revert "DONE take default values for header args from properties"
This is breaking many of our tests, so I'm reverting it until I can figure out a fix

This reverts commit 9936814ffc.
2009-07-22 19:02:12 -06:00
Eric Schulte 9936814ffc DONE take default values for header args from properties 2009-07-22 18:59:10 -06:00
Eric Schulte 51cfe9e468 DONE add =:tangle= family of header arguments
these can be used to inhibit tangling
2009-07-22 18:30:30 -06:00
Eric Schulte 4f15568a96 org-babel-ded-worg looks great, I hope you don't mind I'm adding a
"Reference / Documentation" section to hold documentation on the many
header arguments
2009-07-22 17:17:06 -06:00
Eric Schulte fe0532e509 DONE One supplied, one default
We are now skipping results lines when resolving references which
  specify arguments, as the arguments would change the value of the
  source-code block.
2009-07-21 16:46:26 -06:00
Dan Davison 162b522728 Fixing srcname function call regexps.
But still some improvement of this to be done (see bugs section).
2009-07-19 14:29:10 -04:00
Dan Davison 911e77a7c9 Code rearrangement: restrict R column names changes to org-babel-R.el.
On reflection this is (currently) R-specific functionality and should
not affect the code in org-babel.el.
2009-07-19 12:01:00 -04:00
Dan Davison 062bc09d84 Adding support for column names (header line) when using R.
Unlike the other languages, it's central to R to be able to index
columns of a data frame d, either by d[,"columnname"] of d$columnname.

With this change, if colnames are present in the *input* from
org-babel, the corresponding R variable is *always* constructed with
the colnames.

In addition, with the :colnames header arg, the *output* to elisp/org
buffer contains the colnames separated from the rest of the table by
'hline. This behaviour is not default because other languages may
expect a simple table without the 'hline.
2009-07-19 01:07:07 -04:00
Dan Davison ef6668df61 Merging examplizing-output into master 2009-07-18 18:10:14 -04:00
Dan Davison bcfa3b95c7 Add ability to remove #+begin_example blocks of output. 2009-07-18 17:47:30 -04:00
Eric Schulte fcfe110fef correctly handling exclusive :exports params 2009-07-18 14:24:47 -06:00
Eric Schulte 44ff72261c moved org-babel-merge-results into anonymous function in flet 2009-07-18 14:24:46 -06:00
Dan Davison c2b255e0da Changing default min lines for block output to 10 2009-07-18 15:52:51 -04:00
Dan Davison 4dfe45cdf1 Trivial: function name change for clarification. 2009-07-18 15:39:00 -04:00
Dan Davison 04a4a4862e Using #+begin_example...#+end_example blocks for output. 2009-07-18 15:38:21 -04:00
Eric Schulte fdae720848 removed large block of lang-specific comments from org-babel.el
I assume that since all tests are passing we no longer need this old
code.  Either way we can always retrieve it from version control.
2009-07-17 22:10:43 -06:00
Eric Schulte 6661bb70d5 new default export parameters 2009-07-17 22:08:02 -06:00
Eric Schulte bda750be2f combination of :results parameters now takes mutually exclusive parameter groups into consideration 2009-07-17 22:06:37 -06:00
Eric Schulte 8408187f4a using org-babel-merge-params for inline header arguments 2009-07-17 21:36:47 -06:00
Dan Davison 017d46e50f Reinstated force-results-to-vector: passing all tests in table. 2009-07-17 14:37:43 -04:00
Dan Davison 8c9d8b6c28 Don't attempt to remove result when :results silent. 2009-07-17 13:58:04 -04:00
Dan Davison 9ebb554527 o-b-merge-params function was not allowing whitespace around the '=' sign.
At some point it might be useful (to me at least) to clarify our rules
regarding whitespace, and make guidelines for using " \t\f\n\v\r" et
al (and [:space:]?).
2009-07-17 13:27:56 -04:00
Dan Davison 7eecca6db5 Reinstating a previous change that got lost in the last merge somehow. 2009-07-17 10:49:26 -04:00
Dan Davison 72ccd88c97 Merging master into results.
THis brings in the bugfix from 4f15280631, as well as gnuplot. The bugfix required manual resolution as it had already been partially addressed in this branch. Also, the interaction of the possibility of being on a #+lob line and the possiblity of being in the middle of an org-babel-exp-results call, meant I had to rearrange things a bit, so this commit has new changes in org-babel-where-is-src-block-result in addition to the merge.
2009-07-17 09:54:11 -04:00
Dan Davison 5d49db67ab Correcting up cut/paste mistakes made in manual conflict resolution. 2009-07-17 00:50:02 -04:00
Dan Davison 4f15280631 Bugfix: not assuming that we're in a source block when inserting result.
The o-b-insert-result code was assuming that we were in a source
block, where it could find the head, etc. However there are two
situations when this is not true LoB calls (although they can't output
results to buffer in this branch, they can in branch 'results'), and
org-babel-exp (which calls o-b-insert-result in an empty temp buffer).
2009-07-17 00:18:03 -04:00
Dan Davison 64a5c0e379 Merging master into results: required manual conflict resolution.
results had upgraded to using org-babel-merge-params (although
apparently not yet in org-babel-parse-inline-src-block-match).
2009-07-16 23:22:25 -04:00
Eric Schulte cdc46b8b74 added ability for languages to change their default header argument values 2009-07-16 18:52:31 -06:00
Eric Schulte 29d910c5e2 "file" results now correctly insert a file link 2009-07-16 18:17:51 -06:00
Dan Davison d128662fa3 Eliminating duplicated code (take 2...).
This proposal for code tidying uses multiple-value-bind to satisfy:

1. The various parsed/resolved components of the param list (session,
   vars, result-type) are available in the org-babel-execute:LANG
   functions.
2. Those functions don't duplicate the code for parsing the params
   list and resolving references
3. The functions still have the params list available to them, should
   they need to implement language-specific behaviour using it.

If the org-babel-execute:LANG functions need to be called directly,
then that would now have to be via
(multiple-value-bind (session vars result-params result-type)
      (org-babel-process-params params) (funcall cmd body params))

as in org-babel-exp.el. (But is it actually necessary to by-pass
org-babel-execute-src-block?)
2009-07-16 16:21:07 -04:00
Dan Davison f74b084d99 Bringing org-babel-execute-[buffer/subtree] functions up-to-date. 2009-07-16 14:57:01 -04:00
Dan Davison 2b273bce7d Different messages for :results output and value modes. 2009-07-16 01:16:49 -04:00
Dan Davison ad57e15afe Bugfix in org-babel-read (relevant to all branches).
I haven't managed to see why this is a 2. It breaks if cell is a
string of length 1. I'm changing it to a 1 (as it is in
org-collector.el), on the assumption that the 2 was erroneous.
2009-07-15 11:18:19 -04:00
Dan Davison c1f8de5eec Cosmetic changes only: shortening lines to fit my screen. 2009-07-11 23:59:04 -04:00
Dan Davison 08eba0ceea Bugfix: my regexp was not allowing whitespace inside function call. 2009-07-11 23:51:01 -04:00
Dan Davison 21d058869d Bugfix in org-babel-read (relevant to all branches).
I haven't managed to see why this is a 2. It breaks if cell is a
string of length 1. I'm changing it to a 1 (as it is in
org-collector.el), on the assumption that the 2 was erroneous.
2009-07-11 22:45:57 -04:00
Dan Davison cd4c794af6 Bugfix: Use let* instead of let 2009-07-11 13:39:05 -04:00