Re: [Orgmode] org-babel-read should have option NOT to interpret as elisp

2011-02-27 Thread Eric Schulte
Vladimir Alexiev writes: > I keep perl regexps in a table, and some of them start with "(". > I'd like these to be left alone (returned unmodified as a string). > > (info "(org)var") doesn't mention special processing of table cells, > but the doc of org-babel-read says: > > Convert the string va

Re: [Orgmode] org-babel issue with source blocks and latex block

2011-02-15 Thread Kieran Healy
Hi Eric, On Feb 15, 2011, at 1:49 PM, Eric Schulte wrote: > This may be possible through the use of the ":results src" header > argument e.g., the following minimal code block > > #+begin_src R :results code > 8 > #+end_src > > evaluates to the following > > #+results: > #+BEGIN_SRC R > 8 >

Re: [Orgmode] org-babel issue with source blocks and latex block

2011-02-15 Thread Eric Schulte
Kieran Healy writes: > Hi, > > I have org-babel set up to use minted to format code blocks and it's > terrific. I was wondering whether I could also get it to wrap the > results it outputs using minted instead of verbatim environments (it > seems not right now) when I noticed the following stran

Re: [Orgmode] org-babel: Bugs with inline src_* blocks

2011-02-15 Thread Eric Schulte
Paul Sexton writes: > I am experiencing a couple of significant bugs with inline src blocks in > org-babel -- ie blocks of the form src_LANG{EXPRESSION}. I am using the > development version of org, checked out a few days ago. > > Pressing C-c C-c with the cursor on such a block is supposed to

Re: [Orgmode] org-babel: Bugs with inline src_* blocks

2011-02-14 Thread Suvayu Ali
Hi Paul, On Tue, 15 Feb 2011 02:31:27 + (UTC) Paul Sexton wrote: > Is this change in behaviour intentional? If so is there a setting > that will revert to the old behaviour? > I don't know the answer to your question however my question would be how up to date is your org-mode install? I r

Re: [Orgmode] org-babel, R, and org-babel-open-src-block-result

2011-01-11 Thread Eric Schulte
Leo Alekseyev writes: > I recently started using org-babel with R, and so far I think it's > pretty great! I'm still getting accustomed to org-babel workflow and > am playing with available options. I have a couple of questions: > > I noticed that C-c C-o (org-babel-open-src-block-result) alway

Re: [Orgmode] org-babel, R, and org-babel-open-src-block-result

2011-01-11 Thread Erik Iverson
On 01/11/2011 04:22 AM, Leo Alekseyev wrote: I recently started using org-babel with R, and so far I think it's pretty great! I'm still getting accustomed to org-babel workflow and am playing with available options. I have a couple of questions: I noticed that C-c C-o (org-babel-open-src-block

Re: [Orgmode] [org-babel] Dynamic Tangle?

2010-12-13 Thread Eric Schulte
Hi Nathan, The easiest way I can think of to accomplish templates would be through some abuse of code block evaluation. Maybe something like the following would work... ** tangle templates #+source: template-heading #+begin_src emacs-lisp some stuff here #+end_src #+source: template-footing #

Re: [Orgmode] [org-babel-R] Help: In converting an .org file to pdf, do I need to re-run the R code even if I ran them previously?

2010-12-02 Thread Sunny Srivastava
Thank you Thomas. On Thu, Dec 2, 2010 at 10:33 AM, Thomas S. Dye wrote: > Aloha Sunny, > > > On Dec 1, 2010, at 11:05 PM, Sunny Srivastava wrote: > > Hello Org-moders: >> >> I am trying to use org-mode, instead of Sweave, to write a report for a >> statistical analysis. During the process of wr

Re: [Orgmode] [org-babel-R] Help: In converting an .org file to pdf, do I need to re-run the R code even if I ran them previously?

2010-12-02 Thread Thomas S. Dye
Aloha Sunny, On Dec 1, 2010, at 11:05 PM, Sunny Srivastava wrote: Hello Org-moders: I am trying to use org-mode, instead of Sweave, to write a report for a statistical analysis. During the process of writing, I prefer to export the org file to pdf to see the output (for sanity check). Ho

Re: [Orgmode] [org-babel] R, :session and empty line in #+results

2010-12-01 Thread Bernd Weiss
Am 01.12.2010 10:01, schrieb Eric Schulte: Hi Bernd, I've just pushed up a change which should remove these empty lines. Just updated my org-mode repository and it works great. Thanks a lot! Bernd ___ Emacs-orgmode mailing list Please use `Reply A

Re: [Orgmode] [org-babel] R, :session and empty line in #+results

2010-12-01 Thread Eric Schulte
Hi Bernd, I've just pushed up a change which should remove these empty lines. Best -- Eric Bernd Weiss writes: > Am 01.12.2010 02:19, schrieb Thomas S. Dye: >> Aloha Bernd, >> >> On Nov 30, 2010, at 1:23 PM, Bernd Weiss wrote: >> >>> Dear all, >>> >>> I would like to use R objects across/among

Re: [Orgmode] [org-babel] R, :session and empty line in #+results

2010-12-01 Thread Bernd Weiss
Am 01.12.2010 02:19, schrieb Thomas S. Dye: Aloha Bernd, On Nov 30, 2010, at 1:23 PM, Bernd Weiss wrote: Dear all, I would like to use R objects across/among code blocks. Therefore, I included the header argument ":session" which then produces the following results: #+BEGIN_SRC R :results o

Re: [Orgmode] [org-babel] R, :session and empty line in #+results

2010-12-01 Thread Thomas S. Dye
Aloha Bernd, On Nov 30, 2010, at 1:23 PM, Bernd Weiss wrote: Dear all, I would like to use R objects across/among code blocks. Therefore, I included the header argument ":session" which then produces the following results: #+BEGIN_SRC R :results output :session x <- 1 x x + 1 #+END_SRC

Re: [Orgmode] Org-babel games screencast

2010-11-26 Thread Eric Schulte
Hi David, This looks great, and is a very good introduction to code block usage in Org-mode. Would you mind adding a link to this video to the Babel/uses page? http://orgmode.org/worg/org-contrib/babel/uses.php At some point I'd like to start generating and compiling Babel screencasts, but until

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-26 Thread Eric Schulte
Rick Moynihan writes: > > Basically it looks like the different :results types haven't yet been > implemented... The one I was missing was 'code' e.g. the following > works for elisp: > > #+begin_src emacs-lisp :results code > '(+ 10 1) > #+end_src > > displaying: > > #+results: > #+BEGIN_SRC

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-26 Thread Rick Moynihan
On 26 November 2010 20:29, Eric Schulte wrote: > > Alright, I'm going to fold this into the master branch (we'll still have > the entirety of the existing ob-clojure in git for resurrection if need > be). That's great news! >> >> I'm not sure what you mean by "external evaluation", but have foun

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-26 Thread Eric Schulte
Hey Rick, Rick Moynihan writes: > Hey Eric, > > I've just run your ob-clojure, and it seems to work fine, though as > you mention it would be nice if it'd start slime (if it isn't already > running). > Alright, I'm going to fold this into the master branch (we'll still have the entirety of the

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-25 Thread Rick Moynihan
Hey Eric, I've just run your ob-clojure, and it seems to work fine, though as you mention it would be nice if it'd start slime (if it isn't already running). I'm not sure what you mean by "external evaluation", but have found that if I do M-x slime-connect (to connect to an existing clojure/swank

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-25 Thread Eric Schulte
Hi Rick, I'm not quite sure what the best permanent solution would be. I'm tempted to switch to a drastically stripped down version of Clojure interaction which relies very heavily on slime. I'm attaching a first pass at this which allows for slime-based execution, can assign variables, handles

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-23 Thread Rick Moynihan
Hi Eric, Sorry for the delay in getting back to you. I can confirm the fix you quoted below works for me also. I've not been using any of the multiple session features, so I haven't run into the other problems you mention. Any idea on what a more permanent solution might be? R. On 6 November

Re: [Orgmode] Org-Babel - Clojure & Lazy Sequences Bug

2010-11-06 Thread Eric Schulte
Hi Rick, I've noticed this as well. I'm not the original author of ob-clojure.el (Joel Boehland is), so I'm not sure how the clojure interaction currently works, although I know it makes heavy usage of slime. There must be an existing mechanism used by slime to unroll these lazy evaluations, for

Re: [Orgmode] org-babel-gnuplot broken today?

2010-10-26 Thread John Hendy
On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck wrote: > I refreshed today 7.01trans and noticed I couldn't get my gnuplots to > plot anymore: data from a table within the org file is no longer > digested nicely by gnuplot. > > That's odd. I wrote the tutorial and thus my heart skipped a beat for a m

Re: [Orgmode] [org-babel] Using the power of ESS inside an R source code block

2010-10-25 Thread Eric Schulte
Hi Bernd, It seems that you have already found the best solution in the indirect edit buffers (by calling C-c ' from inside of a code block). I would only add that in the email you mentioned below, I was specifically talking about syntax highlighting of R code in Org-mode buffers, which at the ti

Re: [Orgmode] [org-babel] Using the power of ESS inside an R source code block

2010-10-24 Thread Bernd Weiss
Am 24.10.2010 05:44, schrieb Bernd Weiss: Dear all, Yesterday, I spent some time (re-)discovering the power of org-babel and R. Everything works well but there is one issue that I find somewhat annoying (I apologise if this word is too rude). As a long-time ESS user I wish that I could use thing

Re: [Orgmode] org-babel: feature-request: allow table-cells to be passed as strings

2010-10-04 Thread Eric Schulte
Hi, Could you send an example of the contents of such a cell, and what it is converted to? Maybe it will be possible to improve the parsing of numerals in Babel s.t. we don't lose precision in these cases. Thanks -- Eric Marc-Oliver Ihm writes: > Hello ! > > Currently org-babel, when passing

Re: [Orgmode] org-babel caching question

2010-09-19 Thread Eric Schulte
Hi Ista, You're correct, currently the caching mechanism employed by Babel only checks that the same code blocks are used to assign variable, and doesn't check that the results of those code blocks are the same. I'll look into what would be required to include variable values in cache hash calcul

Re: [Orgmode] org-babel - utility to ease chopping src chunks into smaller org entries

2010-09-19 Thread Eric Schulte
Hi Richard, This is a good idea, I too frequently find myself splitting code blocks. How about this following alternative implementation which should be smart enough to notice if it is inside of a code block, and should work across any code block type. --8<---cut here---sta

Re: [Orgmode] org-babel and empty code blocks : publishing html

2010-09-09 Thread Richard Riley
Erik Iverson writes: > Eric Schulte wrote: >> I'd think adding an ":exports none" header argument should be >> sufficient. >> > > If the code block is empty, I doesn't appear so. > > If you put in a literal > > nil > > in the code block, then :exports none does as expected. > >> Best -- Eric >>

Re: [Orgmode] org-babel and empty code blocks : publishing html

2010-09-09 Thread Erik Iverson
Eric Schulte wrote: I'd think adding an ":exports none" header argument should be sufficient. If the code block is empty, I doesn't appear so. If you put in a literal nil in the code block, then :exports none does as expected. Best -- Eric Richard Riley writes: On my journal capture

Re: [Orgmode] org-babel and empty code blocks : publishing html

2010-09-09 Thread Erik Iverson
What are your buffer-wide values for :exports and :results ? Richard Riley wrote: On my journal capture template I include a #begin_src and #end_src block as I frequently want to journal code. Being lazy I dont necessarily want to delete this block even if I have no code in that org-entry. Is i

Re: [Orgmode] org-babel and empty code blocks : publishing html

2010-09-09 Thread Eric Schulte
I'd think adding an ":exports none" header argument should be sufficient. Best -- Eric Richard Riley writes: > On my journal capture template I include a #begin_src and #end_src block > as I frequently want to journal code. Being lazy I dont > necessarily want to delete this block even if I hav

Re: [Orgmode] org-babel and gnuplot

2010-09-08 Thread Nick Parker
John, Thanks for you're input, I'll give it a whirl. Nick Parker www.developernotes.com On Wed, Sep 8, 2010 at 2:04 PM, John Hendy wrote: > Nick, > > How about this?? Just fiddled around a little and wonder what you think. > There might be a better way, but essentially, I've done the followin

Re: [Orgmode] org-babel and gnuplot

2010-09-08 Thread John Hendy
Nick, How about this?? Just fiddled around a little and wonder what you think. There might be a better way, but essentially, I've done the following: - Left y-axis = distance - Right y-axis = time - I couldn't get the xtic(1) option to work, so I replaced things with what I've found to work x:y:x

Re: [Orgmode] org-babel-post-tangle-hook just opening tangled file

2010-09-08 Thread Eric Schulte
Hi Miguel, The hook is run as part of the tangle process, and the tangle process ensures that if the tangled file was not open before tangling it will not be open after tangling, so the code you pasted below will have no effect. You could use the following function instead of ob-tangle to get the

Re: [Orgmode] org-babel and gnuplot

2010-09-08 Thread Nick Parker
John, I am reworking the gnuplot script, it is not done at this point, but this is what I currently have: #+begin_src gnuplot :var data=sessions :file org-running.png :exports both set title "Running Stats" set xtics nomirror rotate by -45 set key noenhanced set style data linespoints p

Re: [Orgmode] org-babel and gnuplot

2010-09-08 Thread John Hendy
Nick, This got me curious to see the output. I tried to generate it on my computer and get this in the *gnuplot* buffer after running the code: - gnuplot> plot data using 1:2:3 notitle ^ warning: Skipping data file with no valid points

Re: [Orgmode] org-babel and gnuplot

2010-09-08 Thread John Hendy
That's great! I actually figured that was from pasting it. A lot of pasted examples come in a bit jumbled. Glad you're on your way! John On Wed, Sep 8, 2010 at 8:10 AM, Nick Parker wrote: > Erik, > > That was the issue, the :file reference needed to be on the line above. > Thanks. > > > Nick P

Re: [Orgmode] org-babel and gnuplot

2010-09-08 Thread Nick Parker
Erik, That was the issue, the :file reference needed to be on the line above. Thanks. Nick Parker www.developernotes.com On Tue, Sep 7, 2010 at 10:27 PM, Erik Iverson wrote: > On 09/07/2010 10:12 PM, Nick Parker wrote: > >> Hi John, >> >> I would actually like to plot different lines per dis

Re: [Orgmode] org-babel and gnuplot

2010-09-07 Thread Erik Iverson
On 09/07/2010 10:12 PM, Nick Parker wrote: Hi John, I would actually like to plot different lines per distance, each that correlate to a date and elapsed-time (x and y axis respectively). I get an error with the :file notation, though I read that in a sample babel gnuplot example for generatin

Re: [Orgmode] org-babel and gnuplot

2010-09-07 Thread Nick Parker
Hi John, I would actually like to plot different lines per distance, each that correlate to a date and elapsed-time (x and y axis respectively). I get an error with the :file notation, though I read that in a sample babel gnuplot example for generating graphs of commit history on the org-mode git

Re: [Orgmode] org-babel and gnuplot

2010-09-07 Thread John Hendy
Hi Nick, Maybe two things off hand (booted into OS X right now where I can't try your code..) 1) try using straight gnuplot without going through org to verify your commands. This helps make sure that the syntax isn't producing errors. Another way to check this out sometimes is to C-c C-c on the

Re: [Orgmode] org-babel-where-is-src-block-head

2010-09-07 Thread Nicolas Goaziou
Hello, > Jambunathan K writes: >> [1] E.g. `org-babel-where-is-src-block-head' may not be the >> "proper" way to detect if we're in a src block. >> > I wonder what the proper way is ... > At different points in the past, I had looked for org-at-babel-p or > something similar. I invariably

Re: [Orgmode] [Org-Babel] and R... non-numeric cells

2010-08-12 Thread Erik Iverson
Which version of org-mode are you using? I do not see what you claim to see. What do you get when you run the following: #+TBLNAME: mytbl |column1|column2| ||---| | 45 |34 | | 77 |56 | #+BEGIN_SRC R :var tbl=mytbl :results output str(tbl)

Re: [Orgmode] [Org-Babel] and R... non-numeric cells

2010-08-12 Thread Neil Hepburn
I have had a similar problem and I traced it back to the presence of horizontal lines in the source table. The two ways that I have dealt with the problem are to either not have horizontal lines in the table or use some R stuff to clean things up. For example, suppose that I have the following t

Re: [Orgmode] [Org-Babel] and R... non-numeric cells

2010-08-12 Thread Erik Iverson
Hello, I'm *guessing* that this is more likely an issue of R than of org-mode. Have you tried tangling the code and simply running the scripts through R? Essentially, the as.matrix function call is returning a character matrix, which could mean your object 'alldata' has some factors instead of

Re: [Orgmode] org-babel and OCaml - help?

2010-07-16 Thread Eric Schulte
Hi Erik, dyb...@lnouv.com (Erik L. Arneson) writes: > Hi everybody, > > I have just started playing around with org-babel, and it's really > awesome! I've had great luck with emacs-lisp source blocks, and when I > saw that OCaml source blocks were also supported, I started testing > those out.

Re: [Orgmode] org-babel and emacs init

2010-07-15 Thread Julien Fantin
Still had some issues with your function Eric, but finally found the time to make it work on my system. Posting it here since I didn't use the first time around, and someone else might find it useful. (defun my-org-babel-load-file (file) (let ((orig-file (expand-file-name file dotfiles-dir))

Re: [Orgmode] Org-babel init

2010-07-13 Thread Jordi Inglada
Hi Eric, That worked. I am ready to go now! Thank you! Jordi Eric Schulte writes: > Hi Jordi, > > The attached simple-init.el file works for me with > > emacs -Q -l simple-init.el > > Emacs started w/o error, and I was able to evaluate python code blocks > with no problem. > > P

Re: [Orgmode] Org-babel init

2010-07-12 Thread Eric Schulte
Hi Jordi, The attached simple-init.el file works for me with emacs -Q -l simple-init.el Emacs started w/o error, and I was able to evaluate python code blocks with no problem. Please give it a try and let me know if it doesn't work -- Eric (note you'll have to update the path to org/lisp)

Re: [Orgmode] Org-babel init

2010-07-12 Thread Jordi Inglada
Just to complete my message, here is the debugger's output: Debugger entered--Lisp error: (void-variable org-babel-tangle-lang-exts) add-to-list(org-babel-tangle-lang-exts ("python" . "py")) byte-code("��!���!���!���!\"��B��!�$���\"�̇" [current-load-list require ob ob-ref ob-comint ob

Re: [Orgmode] Org-babel init

2010-07-12 Thread Jordi Inglada
Eric, Thanks for the answer. If I do that using "emacs -q", I get this message when loading the configuration: "Symbol's value as variable is void: org-babel-tangle-lang-exts" An after that when trying to evaluate this block from the tutorial #+begin_src python import time print("Hello, today'

Re: [Orgmode] Org-babel init

2010-07-12 Thread Eric Schulte
Hi Jordi, With the latest Org-mode from Git, Org-babel is now part of Org-mode, so you no longer need to add the contrib directory to your load path, or require org-babel-init. The following should work for you. (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path)) (require '

Re: [Orgmode] Org-babel init

2010-07-12 Thread Erik Iverson
You need to see: http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html Jordi Inglada wrote: Hi all, I am having the same problem as this user here: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html and the contrib/lisp directory is

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-09 Thread Eric Schulte
Great, happy everything is working -- Eric Nicholas Putnam writes: > I got it working. > I think that before emacs wasn't finding org-mode/contrib/lisp, but not > generating any error (that I could see). > > Thanks again. > > On Thu, Jul 8, 2010 at 3:28 PM, Eric Schulte wrote: > >> Alright, >>

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-08 Thread Nicholas Putnam
I got it working. I think that before emacs wasn't finding org-mode/contrib/lisp, but not generating any error (that I could see). Thanks again. On Thu, Jul 8, 2010 at 3:28 PM, Eric Schulte wrote: > Alright, > > Fontification is not specifically an Org-babel feature, but is provided > by Org-mo

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-08 Thread Eric Schulte
Alright, Fontification is not specifically an Org-babel feature, but is provided by Org-mode at large, the relevant portion of the manual is available online, and may be worth a quick read http://orgmode.org/manual/Literal-examples.html#Literal-examples I suppose it may be possible that you are u

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-08 Thread Nicholas Putnam
My emacs version is "GNU Emacs 23.2.1 (x86_64-apple-darwin10.4.0) of 2010-07-07" htmlfontify-buffer on a python buffer worked -- although at first I thought it hadn't because all the font sizes were set to 0pt. How can I get org-babel to htmlfontify my code on html export? Nik On Thu, Jul 8, 2

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-08 Thread Eric Schulte
Hi Nicholas, Nicholas Putnam writes: > Dear Eric, > > Updating from the repository, and putting it at the head of my load-path > fixed the problem with org-babel-tangle-lang-exts. Thanks. > Great, we're making progress > > org-version returns org-mode version 6.36trans > (release_6.36.576.ge

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-08 Thread Nicholas Putnam
Dear Eric, Updating from the repository, and putting it at the head of my load-path fixed the problem with org-babel-tangle-lang-exts. Thanks. org-version returns org-mode version 6.36trans (release_6.36.576.gec22). I still can't seem to export python to html with syntax coloring when exporting

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-07 Thread Eric Schulte
Hi Nicholas, There are a couple of problems. The first was a missing autoload in org.el which I've now inserted (thanks for helping this issue come to light). The second has to do with your config. I believe you are loading an old version of Org-mode. Be sure to that the first instance of Org-

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-07 Thread Nicholas Putnam
re: org-export-htmlize , "Symbol's value as variable is void" Here's my .emacs file. The line that sets org-babel-tangle-lang-exts is commented out. Further down, is the debugging output when emacs is started. Requiring ob-R doesn't generate an error, by either ob-ruby or ob-python will, unless

Re: [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring?

2010-07-07 Thread Eric Schulte
Hi Nicholas, I'm happy that you're enjoying Org-mode. Nicholas Putnam writes: > I'm new to, but loving playing with org-mode. Thanks for this excellent > code! > > I followed the directions for checking out the latest version with git, so > have been trying to catch up to the new configuration

Re: [Orgmode] org-babel-tangle-w-comments has no effect in R?

2010-07-02 Thread Eric Schulte
Hi Rainer, Rainer M Krug writes: [...] >> >> I think that moving forward it might make sense to remove the >> org-babel-tangle-w-comments variable, as it's confusing to have two >> points of control for comments during tangling. Also, it looks like I >> need to add the :comments header argument

Re: [Orgmode] org-babel-tangle-w-comments has no effect in R?

2010-07-02 Thread Rainer M Krug
On Thu, Jul 1, 2010 at 5:41 PM, Eric Schulte wrote: > Hi Rainer, > Hi Eric > > There is one more requirement for tangling with comments, that is the > presence of a :comments header argument. If this argument is not set > for a code block then that code block *will not* be tangled with > comm

Re: [Orgmode] [org-babel] Does org-babel needs some simplification?

2010-07-01 Thread Eric Schulte
Hi Torsten, I love the idea of a "Babel for dummies" manual, and I'm an even bigger fan of the manual being produced by user's of Babel (i.e. not myself). I'll be more than happy to support this effort in any way. Also, the beta-testing role you mention could be extremely helpful. In the absence

Re: [Orgmode] org-babel-tangle-w-comments has no effect in R?

2010-07-01 Thread Eric Schulte
Hi Rainer, There is one more requirement for tangling with comments, that is the presence of a :comments header argument. If this argument is not set for a code block then that code block *will not* be tangled with comments regardless of the value of `org-babel-tangle-w-comments'. You can set th

Re: [Orgmode] [org-babel] Does org-babel needs some simplification?

2010-06-30 Thread Torsten Wagner
Hi, many thanks for the nice thoughts and posts. To sum up, I think it might not be easy to remove parts of org-babel since it is difficult to determine and a highly personal decision to define what is important and what is unimportant. Nevertheless Carten and Eric pointed out that the overhelmin

Re: [Orgmode] [org-babel] Does org-babel needs some simplification?

2010-06-29 Thread Eric Schulte
Hi Erik, Erik Iverson writes: [...] > > I have not used it for Python, but for R coding I've found it > incredibly intuitive. However, that might be because R has long > supported literate programming through Sweave, complete with noweb > syntax and code tangling. > Speaking of the Sweave/Babe

Re: [Orgmode] [org-babel] Does org-babel needs some simplification?

2010-06-29 Thread Eric Schulte
Hi Torsten, Thanks for bringing this up. I think you're right that Org-babel does need to expose some simple points of entry. However in reviewing the points of complexity, - tangling - noweb references - the profusion of header arguments - the library of babel my immersed and subjective persp

Re: [Orgmode] [org-babel] Does org-babel needs some simplification?

2010-06-29 Thread Thomas S. Dye
On Jun 28, 2010, at 5:51 PM, Torsten Wagner wrote: Dear All, as a (quite, but happy) org-bable user of the first hour I followed up the development process actively. Nevertheless, some weeks or months pass where I had no need for org-babel (yes, really strange I know). Whenever I come back to

Re: [Orgmode] [org-babel] Does org-babel needs some simplification?

2010-06-28 Thread Carsten Dominik
On Jun 29, 2010, at 5:51 AM, Torsten Wagner wrote: Dear All, as a (quite, but happy) org-bable user of the first hour I followed up the development process actively. Nevertheless, some weeks or months pass where I had no need for org-babel (yes, really strange I know). Whenever I come back to

Re: [Orgmode] [org-babel] Does org-babel needs some simplification?

2010-06-28 Thread Erik Iverson
Hello! Whenever I come back to org-babel, it takes me a huge amount of time to find myself back again in the syntax. Often I spend a day or two heavily reading the website and manual again to figure out how to make it working. There are so many options. tangle files, results, scripting mode,

Re: [Orgmode] Org-babel `:hlines yes` no longer working for python

2010-06-28 Thread Christopher Allan Webber
Works perfect now... Thanks! :D "Eric Schulte" writes: > Hi Chris, > > Thanks for catching this. I've just pushed up a patch which should fix > the issue. > > Best -- Eric > > Christopher Allan Webber writes: > >> Hm. I've found a bug with this patch: >> >> #+begin_src python >> return [['foo

Re: [Orgmode] Org-babel `:hlines yes` no longer working for python

2010-06-28 Thread Eric Schulte
Hi Chris, Thanks for catching this. I've just pushed up a patch which should fix the issue. Best -- Eric Christopher Allan Webber writes: > Hm. I've found a bug with this patch: > > #+begin_src python > return [['foo', 'bar', 'baz'], ["a", "b", "None of the above"], ['1', 2, 3]] > #+end_src

Re: [Orgmode] org-babel and emacs init

2010-06-28 Thread Eric Schulte
Hi Richard, Happy this is sorted out. A similar startup example is available in the init.el file in my copy of the Emacs Starter Kit [1], which also tangles all configuration from org files. Cheers -- Eric Richard Riley writes: > Firstly : Carsten and Eric I emailed you privately as I had no

Re: [Orgmode] Org-babel `:hlines yes` no longer working for python

2010-06-28 Thread Christopher Allan Webber
Hm. I've found a bug with this patch: #+begin_src python return [['foo', 'bar', 'baz'], ["a", "b", "None of the above"], ['1', 2, 3]] #+end_src #+results: | foo | bar | baz| | a | b | hline of the above | | 1 | 2 | 3 | This also replaces the word "None"

Re: [Orgmode] Org-babel `:hlines yes` no longer working for python

2010-06-27 Thread Eric Schulte
Hi, OK, I've applied this patch. Christopher Allan Webber writes: > Eric, > > Looks good to me! It's abusing the None type's meaning a little, but > I think it's acceptable enough. (If you think of hlines as rows that > are not rows, you can trick yourself into thinking it is perfectly > pyth

Re: [Orgmode] Org-babel `:hlines yes` no longer working for python

2010-06-26 Thread Christopher Allan Webber
Eric, Looks good to me! It's abusing the None type's meaning a little, but I think it's acceptable enough. (If you think of hlines as rows that are not rows, you can trick yourself into thinking it is perfectly pythonic :)) - cwebb "Eric Schulte" writes: > Hi Christopher, > > I'm certainly

Re: [Orgmode] Org-babel `:hlines yes` no longer working for python

2010-06-26 Thread Eric Schulte
Hi Christopher, I'm certainly no Python expert, but I implemented your idea of converting "hlines" to and from "None"'s (patch below [1]), and it seems to work (under some definition of work). See the following example with the new behavior. --8<---cut here---start---

Re: [Orgmode] Org-babel `:hlines yes` no longer working for python

2010-06-26 Thread Christopher Allan Webber
Hey Eric, Thanks for the super helpful reply! Out of curiosity, is it likely that we will ever get hline support in Python and etc? I've been pondering how it might be done, and maybe it could be like this, using a '|-' string instead of a list for the row: [['a', 'b', 'c'], '|-', ['d', 'e', 'f

Re: [Orgmode] Org-babel `:hlines yes` no longer working for python

2010-06-26 Thread Eric Schulte
Hi Christopher, Thanks for pointing this out, this is an error in the documentation, which I will update. The code you posted should generate the error you have received. Currently the only language which can handle hlines is emacs-lisp, all other languages will result in errors like the one you

Re: [Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF

2010-06-15 Thread William Henney
Hi Eric On Mon, Jun 14, 2010 at 4:46 PM, Eric Schulte wrote: > Great, thanks for hunting this down, I've changed org-babel-latex.el to > call the function you mentioned above and everything appears to be > working. > I confirm that org-babel export of latex snippets to pdf now works as advertise

Re: [Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF

2010-06-14 Thread Eric Schulte
William Henney writes: > Hi Eric > > Thanks for your response > > On Mon, Jun 14, 2010 at 1:17 PM, Eric Schulte wrote: >> Your code snippet exports as expected for me using the latest version of >> Org-mode. >> >> What values do you have set for the >>  `org-export-latex-default-packages-alist'

Re: [Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF

2010-06-14 Thread William Henney
Hi Eric Thanks for your response On Mon, Jun 14, 2010 at 1:17 PM, Eric Schulte wrote: > Your code snippet exports as expected for me using the latest version of > Org-mode. > > What values do you have set for the >  `org-export-latex-default-packages-alist' and >  `org-export-latex-packages-alis

Re: [Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF

2010-06-14 Thread Eric Schulte
typo in my previous mail -- see below "Eric Schulte" writes: [...] > (setq org-export-latex-default-packages-alist > '(("" "inputenc") > ("T1" "fontenc" t) > ("" "fixltx2e" nil) > ("" "graphicx" t) > ("" "longtable" nil) > ("" "float" nil) >

Re: [Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF

2010-06-14 Thread Eric Schulte
Hi William, Your code snippet exports as expected for me using the latest version of Org-mode. What values do you have set for the `org-export-latex-default-packages-alist' and `org-export-latex-packages-alist' variables? My guess is that the problem could be in a rogue entry in one of those

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-06-07 Thread Michael Sperber
"Eric Schulte" writes: >> And two more >> >> o Symbol's function definition is void: assoc-default when trying to >> display an image >> [...] >> o Symbol's function definition is void: make-temp-file when using >> org-babel-dot >> [...] Both of these are in XEmacs 21.5, but not 21.4. As 2

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-06-07 Thread Michael Sperber
"Eric Schulte" writes: > I've replaced the calls to `line-number-at-pos' with a single call to > `count-lines'. Is count lines (also part of simple.el) also missing > from xemacs? No, `count-lines' should work. Thanks for the other changes! -- Cheers =8-} Mike Friede, Völkerverständigung u

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-05-25 Thread Eric Schulte
More replies, "Dr. Volker Zell" writes: >> Volker Zell writes: > >> Eric Schulte writes: [...] > And two more > > o Symbol's function definition is void: assoc-default when trying to display > an image > This is actually an issue in the core of org-mode as `assoc-default' is called by

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-05-25 Thread Eric Schulte
Hi Volker, Thanks for pointing these out, replies in-line below "Dr. Volker Zell" writes: >> Eric Schulte writes: > > > Hi, > > A patch has just been applied to the org-mode repository which should > > fix this issue. > > > Please let me know if the issue remains. > > This i

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-05-25 Thread Dr. Volker Zell
> Volker Zell writes: > Eric Schulte writes: >> Hi, >> A patch has just been applied to the org-mode repository which should >> fix this issue. >> Please let me know if the issue remains. > This issue is gone now.but two others show up when executing code blocks with

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-05-25 Thread Dr. Volker Zell
> Eric Schulte writes: > Hi, > A patch has just been applied to the org-mode repository which should > fix this issue. > Please let me know if the issue remains. This issue is gone now.but two others show up when executing code blocks with C-c C-c in xemacs-21.4.22: Symbol

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-05-17 Thread Eric Schulte
Hi, A patch has just been applied to the org-mode repository which should fix this issue. Please let me know if the issue remains. Best -- Eric "Dr. Volker Zell" writes: > Hi > > When trying to do Source Code Execution with C-c C-c in Xeamcs with > org-babel-6.35i > I get: > > args-out-of-

Re: [Orgmode] [org-babel] Feature request: Get a scalar for "data=example-table[0, 1]"

2010-04-21 Thread Darlan Cavalcante Moreira
Thank you Eric, That was much faster then I had expected. :) It works perfectly now. Regarding the hlines, I find more intuitive not counting them for indexing, since this is how table formulas work in org, but I'm OK with whatever solution you and Dan come up with. At last, after loading messag

Re: [Orgmode] [org-babel] Feature request: Get a scalar for "data=example-table[0, 1]"

2010-04-21 Thread Eric Schulte
Hi Darlan, Darlan Cavalcante Moreira writes: > In the org-babel documentation we see that one can pass a single element > from a table to a babel source block with > , > ! :var data=example-table[0,1] > ` > > I assumed that I would get a scalar value, but it seems that I still get a > ta

Re: [Orgmode] org-babel language support

2010-04-20 Thread Dan Davison
Izaak Beekman writes: > How much work is it to support a new compiled langauge?  I am interested in > using org-babel for Fortran literate programming (LP).  I am new to org-mode, > but know a little bit of e-lisp, and might start hacking at this after some > preliminary investigation.  The main

Re: [Orgmode] [org-babel] How to tangle "org-mode" files?

2010-04-15 Thread Dan Davison
Daniel Brunner writes: > Hi, > > I am testing some ideas with org-babel (which is really great work) and > got the following problem: I want to put several org-mode source blocks > in one org-mode file and tangle them afterwards. Therefore I produced > the following a.org: > > -->8-- > #+begin_sr

Re: [Orgmode] [org-babel] suggestions for using tikz() graphic device with org-babel-R

2010-04-14 Thread Erik Iverson
But, back to your question. What does the R block return? - if it returns the path to a file, then you can use :results file to insert a link to that file in your org-mode buffer, or you can wrap the path to that file in an include with something like the following #+source: graph-gener

Re: [Orgmode] [org-babel] suggestions for using tikz() graphic device with org-babel-R

2010-04-14 Thread Eric Schulte
Austin Frank writes: > Hi all-- > > I'm very excited about a relatively new R package, tikzDevice. This > takes R graphics and generates LaTeX code inside a tikzpicture > environment that reproduces the desired graphic. This allows, among > other things, for all text in a figure to use the same

  1   2   >