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

2011-02-27 Thread Vladimir Alexiev
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 value of CELL to a number if appropriate.

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

2011-02-27 Thread Eric Schulte
Vladimir Alexiev vladi...@sirma.bg 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

[Orgmode] Org-Babel and R - no latex output

2011-02-27 Thread Ben Ward
Hi, I recently installed emacs, org-mode fresh on a new install of Arch Linux. Before I had it working on Ubuntu. I've installed everything as before and used the same .emacs file I had, but if I use org to write out some R script and export to pdf via latex, then I get an empty pdf document,

[Orgmode] Org Babel and R issue with pdf latex export

2011-02-27 Thread Ben Ward
Hi, I recently installed emacs, org-mode fresh on a new install of Arch Linux. Before I had it working on Ubuntu. I've installed everything as before and used the same .emacs file I had, but if I use org to write out some R script and export to pdf via latex, then I get an empty pdf document,

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

2011-02-15 Thread Kieran Healy
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 strange behavior. Here's a minimal

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

2011-02-15 Thread Eric Schulte
Paul Sexton psex...@xnet.co.nz 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

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

2011-02-15 Thread Eric Schulte
Kieran Healy kjhe...@gmail.com 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

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 #+END_SRC

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

2011-02-14 Thread Paul Sexton
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 evaluate it and echo the

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 psex...@xnet.co.nz 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

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

2011-01-11 Thread Leo Alekseyev
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) always gives me an empty *Org-Babel

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

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

2011-01-11 Thread Eric Schulte
Leo Alekseyev dnqu...@gmail.com 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

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

[Orgmode] [org-babel] Dynamic Tangle?

2010-12-06 Thread Nathan Neff
I'm preparing a presentation and I'm getting using tangle to show code /and/ produce working code examples -- this is really cool. It is possible to define a template and pass code blocks to it? For example: (Using pseudo-org-babel-code for brevity) #+template header code

[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
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). However, every time I do this, I get a question in minibuffer to choose if I

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).

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 t...@tsdye.com 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

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] 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

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 bernd.we...@uni-koeln.de 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

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

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

2010-11-30 Thread Bernd Weiss
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 #+results: : : [1] 1 : [1] 2 #+BEGIN_SRC R :results output

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

2010-11-26 Thread Eric Schulte
Hey Rick, Rick Moynihan rick.moyni...@gmail.com 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

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

2010-11-26 Thread Rick Moynihan
On 26 November 2010 20:29, Eric Schulte schulte.e...@gmail.com 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,

[Orgmode] Org-babel games screencast

2010-11-26 Thread David O'Toole
Here's a presentation I made, sorry it's a bit rough but here goes: http://lispgamesdev.blogspot.com/2010/11/lisp-game-development-screencast-1.html ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list.

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

2010-11-26 Thread Eric Schulte
Rick Moynihan rick.moyni...@gmail.com 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:

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

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-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

[Orgmode] org-babel problem

2010-11-25 Thread Erik Butz
Hi all, I am trying to run some org-babel code, but while this used to work in the past, I am now getting an error which says Symbol's function definition is void: org-babel-get-header Somehow I am puzzled, since this function is defined in lisp/ob.el and since this file provides 'ob and I have

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,

[Orgmode] Org-Babel - Clojure Lazy Sequences Bug

2010-11-04 Thread Rick Moynihan
I have the following org file: #+BEGIN_SRC clojure (range 10) #+END_SRC #+results: : clojure.lang.lazy...@f35bf8c6 Where as I would expect to see the sequence. Evaluating the code inside a doall doesn't seem to do anything either: #+BEGIN_SRC clojure (doall (range 10)) #+END_SRC #+results: :

[Orgmode] org babel and alternative output file when using +call

2010-10-27 Thread Henning Redestig
Dear list, When I do #+source: test(myarg=blabla) #+begin_src R :session :file test.pdf plot(1:10, main=myarg) #+end_src I get the expected result: #+results: test [[file:test.pdf]] but if I later do #+call: test(myarg=hiho) :file test2.pdf I still get a file named according to the header

[Orgmode] org-babel-gnuplot broken today?

2010-10-26 Thread Nigel Beck
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. To test, I used the snippet below from the worg http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php: ** Data

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

2010-10-26 Thread John Hendy
On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com 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

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

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

2010-10-24 Thread 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 things like ESS syntax highlighting,

[Orgmode] [Org-Babel] Export environments for shell results?

2010-10-06 Thread Sébastien Vauban
#+TITLE: Org-Babel export environments for shell results * Example ** Medium output #+srcname: is-converted-to-listings #+begin_src sh :results output :exports both grep autoload ~/Downloads/emacs/site-lisp/org-mode/lisp/ob.el | cut -d # -f 4 #+end_src #+results: is-converted-to-listings

[Orgmode] [org-babel] :no-expand header expands noweb refs

2010-10-05 Thread aditya siram
Hi all, I may have understood the :no-expand header incorrectly, but I thought it suppressed expanding noweb references while exporting but seems to expand them. For example I have an org file that looks like this (simplified) : * Root #+begin_src fundamental :noweb yes :no-expand :tangle Root.txt

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

2010-10-04 Thread Marc-Oliver Ihm
Hello ! Currently org-babel, when passing a table as input to a source-code-block, behaves like this: If the cell looks like a number, it will be converted to an integer or a float. Otherwise the cell-content is passed unconverted as a string. Now, dealing with very large numbers (which I want

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 i...@online.de writes: Hello ! Currently org-babel,

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

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

[Orgmode] org-babel caching question

2010-09-18 Thread Ista Zahn
Hi all, I am just starting to get org-babel figured out, but I've run into an issue that I could use help with. Basically, with :cache yes turned on, subsequent code blocks to not pick up changes in earlier code blocks. I would like to know if there is a way to make org babel pick up these

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

2010-09-18 Thread Richard Riley
I often find myself chopping a large source code block into smaller entities with their own notes, tags and comments etc. This small utility facilitates that by wrapping the current region with org entry markers and src code delimiters. It assumes you are in a currently src block.

[Orgmode] org-babel matlab example

2010-09-11 Thread etimecowboy
Hi everybody, I am learning to use org-babel to evaluate in-line Matlab code block, but I cannot make it works when I press the C-c C-c, nor C-c C-v e. The export of code works, but the results was not there. My in-line code is like this: #+begin_src matlab :export results n = [1:10]; x =

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

2010-09-09 Thread Richard Riley
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 it possible to suppress the output nil which is generated for the html export for

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 rile...@gmail.com 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

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

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 rile...@gmail.com writes: On my

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

2010-09-09 Thread Richard Riley
Erik Iverson er...@ccbr.umn.edu 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

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

2010-09-08 Thread Miguel Ruiz
Hi Should (add-hook 'org-babel-post-tangle-hook (lambda () (save-window-excursion (find-file (buffer-file-name) work in .emacs? The purpose is simply opening the tangled file but I think the opening happens before the tangled file has finished of

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 er...@ccbr.umn.edu wrote: On 09/07/2010 10:12 PM, Nick Parker wrote: Hi John, I would actually like to plot different

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 ni...@developernotes.comwrote: Erik, That was the issue, the :file reference needed to be on the line above.

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

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

2010-09-08 Thread Cook, Malcolm
I am following up with a workaround for this old issue (from July). This problem persists with latest `git pull` on orgmode version 7.01 This minimal init file will cause it: (require 'org-install) ;(require 'org) (require 'ob-perl) uncomment the 2nd line, and the problem goes away. Cheers,

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

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

2010-09-08 Thread Eric Schulte
Hi Malcolm, I've just pushed up a change that should fix this issue. After updating from git you will have to run make clean make to ensure that the org-install.el file is regenerated. Please let me know if the problem persists -- Eric Cook, Malcolm m...@stowers.org writes: I am

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

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

2010-09-08 Thread Cook, Malcolm
' Subject: Re: SOLVED? [Orgmode] org-babel-tangle-lang-exts must be initialized? how to get syntax coloring? Hi Malcolm, I've just pushed up a change that should fix this issue. After updating from git you will have to run make clean make to ensure that the org-install.el file is regenerated

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

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 jw.he...@gmail.com 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

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

2010-09-07 Thread Jambunathan K
[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 wound up using

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 wound up using

[Orgmode] org-babel and gnuplot

2010-09-07 Thread Nick Parker
Hello, I am attempting to generate a simple chart from gnuplot using the source of an org-table. When I execute the gnuplot src block I get the message Source block produced no output. Does anyone have any suggestions as to what might be the cause? I have included a sample of what I am trying

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 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

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

[Orgmode] [org-babel] References Not Expanding

2010-08-21 Thread aditya siram
Hi all, I have the development version of org-mode and org-babel noweb style references are not expanding during evaluation, they are instead copied literally into the temp file. They seem to expand fine when tangling. Here is file that is failing: * Root #+begin_src haskell :noweb yes :tangle

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

2010-08-12 Thread Sébastien Vauban
Hello, For a report I'm writing, I've been helped by a colleague of mine (let's call him Albert) for the R graphics generation. Here's an extract of my doc: --8---cut here---start-8--- #+TBLNAME: investissement-2010-2013 #+ATTR_LaTeX: align=l |

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

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

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)

[Orgmode] Org-Babel and Ledger

2010-07-29 Thread Sébastien Vauban
Hello, I'm trying to really begin working with Ledger for my personal accounting. Of course, trying to do it with as much Org as possible... Though, results of 3 small requests (whose results is snipped, for brievety) is the following: --8---cut

[Orgmode] org-babel and OCaml - help?

2010-07-16 Thread Erik L. Arneson
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. Right away I ran into trouble, though. Observe the example

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. Right

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 reply all 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

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. Please

[Orgmode] Org-babel init

2010-07-12 Thread Jordi Inglada
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 indeed in my load path. I am using a git changeset cloned today (Org-mode version 6.34trans (release_6.36.608.gc1ef)). I have tried using

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

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 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's

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-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 nput...@gmail.com 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

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

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 nput...@gmail.com 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

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,

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

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 schulte.e...@gmail.com wrote: Alright, Fontification is not specifically an Org-babel feature, but is

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

2010-07-07 Thread Nicholas Putnam
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 for babel, at the same time that I'm learning the ropes of org-mode. I am finding that

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 nput...@gmail.com 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

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, 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

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 schulte.e...@gmail.com 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

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

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] 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

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

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

  1   2   3   >