Commit Graph

37 Commits

Author SHA1 Message Date
Eric Schulte 73163718ca litorgy-execute-src-block will again stifle results when called with truthy ARG value 2009-05-22 06:30:25 -07:00
Eric Schulte 9c378fa06b (untested) now inserting results with resname lines 2009-05-21 07:22:24 -07:00
Eric Schulte 3ccf6b8d6e source blocks can now find their results
litorgy-where-is-src-block-result
2009-05-21 06:40:04 -07:00
Eric Schulte 801345d41d added function to return the name of the current source block 2009-05-20 18:36:28 -07:00
Eric Schulte 700324bfbf slightly cleaner code 2009-05-19 20:42:45 -07:00
Eric Schulte 0974acd7b4 \C-c\C-c now works inside source blocks 2009-05-19 20:40:26 -07:00
Eric Schulte b6f2fc7e0d fixed error w/simple ruby arrays, and added litorgy-chomp function 2009-05-14 07:12:44 -07:00
Eric Schulte 6940577d8e litorgy-src-block-regexp is now robust to trailing spaces after source name 2009-05-14 07:12:43 -07:00
Eric Schulte 48752e7d79 found some issues, and started addressing them 2009-05-14 07:12:42 -07:00
Eric Schulte 75ca370de8 added tests, and fixed uncovered bugs
tests currently cover the following all of which are passing
  - basic execution
  - referencing tables
  - referencing other source blocks
2009-05-11 19:41:56 -07:00
Eric Schulte 71b6ca8005 added `sbe' for evaluation of source blocks from emacs lisp 2009-05-10 14:03:26 -07:00
Eric Schulte ce2c319496 inline source code blocks now accept header arguments 2009-05-10 08:29:30 -07:00
Eric Schulte 9865923f84 now able to pass arguments to source block from header-arguments variable assignment 2009-05-09 18:28:23 -07:00
Eric Schulte 728869fef8 now passing arguments to source-blocks when the source-block is used to initialize a header-argument variable
before this is useful need to implement params merging in
  litorgy-execute-src-block, see the TODO infile
2009-05-09 18:28:21 -07:00
Eric Schulte c85ec77932 litorgy-parse-header-arguments can now handle complex arguments
specifically arguments which contain spaces or even " :" substrings
2009-05-09 18:28:21 -07:00
Eric Schulte df6db56a72 now accepting literal values to assign variables in header arguments 2009-05-08 16:20:05 -07:00
Eric Schulte c7aa80462a fixed spelling error 2009-05-08 15:28:29 -07:00
Eric Schulte 9121d6f1f1 now exporting inline source code blocks 2009-04-26 13:29:59 -07:00
Eric Schulte 1f1ea49ec5 evaluation of inline source blocks working with \C-c\C-c 2009-04-26 11:42:36 -07:00
Eric Schulte 9652615618 implemented selective export with :exports header argument
Acceptable export values are:

  both ---- the default, display the code and the results

  code ---- display the code inside the block but do not process

  results - process the block and replace it with the results of
            execution

  none ----- do not display either code or results upon export
2009-04-23 15:57:31 -07:00
Eric Schulte 3e403fc9bb R support partially working assigning variables from R
still need to figure out how to deal with R tables
2009-04-04 16:24:03 -07:00
Eric Schulte 0e29fb3601 now assigning variables from source-code blocks in multiple languages
Currently ruby, python, and emacs-lisp are working; still need to work
on shells and R.
2009-04-02 20:02:56 -07:00
Eric Schulte 77c33de593 now able to assign variables from emacs-lisp source blocks 2009-04-02 17:59:55 -07:00
Eric Schulte 3657836968 added optional insertion of results...
from the description of litorgy-insert-result:

   Insert RESULT into the current buffer after the end of the
current source block.  With optional argument INSERT controls
insertion of results in the org-mode file.  INSERT can take the
following values...

t ------ the default options, simply insert the results after the
         source block

replace - insert results after the source block replacing any
          previously inserted results

silent -- no results are inserted
2009-04-01 15:46:55 -07:00
Eric Schulte 01401748e4 cleanup and small misc re-organizations 2009-03-29 15:08:53 -07:00
Eric Schulte 9b2e4f2257 result insertion is now working for lists and non-lists 2009-03-25 22:02:50 -07:00
Eric Schulte c40217b5f0 now replace works for table results as well as string results 2009-03-25 16:43:46 -07:00
Eric Schulte 4385611ebf Now accepting vector results from source blocks, and inserting into org file as tables. 2009-03-25 16:16:03 -07:00
Eric Schulte be826b2d68 replaced `litorgy-examplize-region' as `org-toggle-fixed-width-section' was causing problems 2009-03-25 15:55:56 -07:00
Eric Schulte 74498d6055 thinking about and stubbing out functions for referencing external resources 2009-03-23 17:01:11 -07:00
Eric Schulte 63839f7c50 adding support for emacs-lisp blocks 2009-03-23 16:07:02 -07:00
Eric Schulte 6cf9c4e497 replacing litorgy-make-region-example with the standard org-toggle-fixed-width-section. 2009-03-17 14:44:50 -07:00
Eric Schulte 488fa39b27 ensure inserted results end in a newline 2009-02-23 17:49:51 -08:00
Eric Schulte 715998c107 adding R support for litorgy 2009-02-23 16:08:16 -08:00
Eric Schulte fbb141f72e added litorgy-eval-buffer function 2009-02-23 15:15:22 -08:00
Eric Schulte f7d0dd1fda adding a replace option, and simplified result insertion 2009-02-22 22:19:56 -08:00
Eric Schulte 7c51afb642 Added litorgy.el which begins with the most fundamental step of our
implementation, see rorg.org for more information and examples.
2009-02-22 13:19:43 -08:00