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

2010-06-29 Thread Eric Schulte
Hi Erik, Erik Iverson er...@ccbr.umn.edu 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

[Orgmode] org-babel and emacs init

2010-06-28 Thread Richard Riley
Firstly : Carsten and Eric I emailed you privately as I had no news access - pls ignore. Problem solved. With the latest git pull for org-mode I couldn't start my emacs because my init files are org files untangled using babel. Here is an updated init.el which which uses the new names and pulls

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 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 rile...@gmail.com writes: Firstly : Carsten and Eric I emailed you

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 cweb...@dustycloud.org 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]]

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 schulte.e...@gmail.com writes: Hi Chris, Thanks for catching this. I've just pushed up a patch which should fix the issue. Best -- Eric Christopher Allan Webber cweb...@dustycloud.org writes: Hm. I've found a bug with this patch:

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

2010-06-28 Thread Erik Iverson
Hello! snip 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

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 cweb...@dustycloud.org 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

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

2010-06-26 Thread Christopher Allan Webber
Hello all, I was going through the tutorial and testing the :hlines yes feature as described in the info manual. Unfortunately, the example given no longer seems to work for python: #+tblname: many-cols | a | b | c | |---+---+---| | d | e | f | |---+---+---| | g | h | i | #+source: echo-table

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

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

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

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

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

2010-06-14 Thread William Henney
Hi all If I have a snippet like so: #+begin_src latex :file foo.png Hello from org-babel! #+end_src then I can execute the source block with no problems, producing the image foo.png. However, if I change the filename to foo.pdf then it no longer works. An intermediate .tex file is produced

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 schulte.e...@gmail.com writes: [...] (setq org-export-latex-default-packages-alist '(( inputenc) (T1 fontenc t) ( fixltx2e nil) ( graphicx t) ( longtable nil) ( float nil) ( wrapfig

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

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

2010-06-14 Thread Eric Schulte
William Henney when...@gmail.com writes: Hi Eric Thanks for your response On Mon, Jun 14, 2010 at 1:17 PM, Eric Schulte schulte.e...@gmail.com wrote: Your code snippet exports as expected for me using the latest version of Org-mode. What values do you have set for the  

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-06-07 Thread Michael Sperber
Eric Schulte schulte.e...@gmail.com 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,

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-06-07 Thread Michael Sperber
Eric Schulte schulte.e...@gmail.com 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.

[Orgmode] org-babel-R export parameters

2010-06-06 Thread Russell Adams
I needed the ability to view what parameters were sent to plot in R. Turns out that you can't query some things like the active filename in R, so I went back to org. This patch takes each parameter and converts it to a variable in R, including the filename (org_babel_filename). My intent is to

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 C-c C-c in

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 dr.volker.z...@oracle.com 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.

Re: [Orgmode] org-babel and Xemacs incompatibilities

2010-05-25 Thread Eric Schulte
More replies, Dr. Volker Zell dr.volker.z...@oracle.com 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

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 dr.volker.z...@oracle.com writes: Hi When trying to do Source Code Execution with C-c C-c in Xeamcs with org-babel-6.35i I get:

[Orgmode] org-babel and Xemacs incompatibilities

2010-05-11 Thread Dr. Volker Zell
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-range #buffer ora.org 0 0 Debugger entered--Lisp error: (args-out-of-range #buffer ora.org 0 0) map-extents(#compiled-function (extent ignored) ...(14) [buffer-or-string extent

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

2010-04-21 Thread Darlan Cavalcante Moreira
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 table (but with only one element). For instance, if I have the

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

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

[Orgmode] org-babel language support

2010-04-20 Thread Izaak Beekman
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 functionality I am looking for

Re: [Orgmode] org-babel language support

2010-04-20 Thread Dan Davison
Izaak Beekman ibeek...@umiacs.umd.edu 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

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

2010-04-15 Thread Daniel Brunner
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_src org :tangle in-a.org ,* Foo ,** Bar

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

2010-04-15 Thread Dan Davison
Daniel Brunner dan...@dbrunner.de 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--

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

2010-04-14 Thread Austin Frank
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 fonts as the rest of your

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

2010-04-14 Thread Eric Schulte
Austin Frank austin.fr...@gmail.com 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

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:

[Orgmode] org-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Erik Butz
Hi all, I have been playing around with org-mode and have been thinking about the possibility to create gantt charts with org-mode. I did not find anything in the archives, and todays thread about taskjuggler brought me back to the subject. This is a python script hovering around the web

Re: [Orgmode] org-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Eric Schulte
Erik Butz erik.b...@googlemail.com writes: Hi all, I have been playing around with org-mode and have been thinking about the possibility to create gantt charts with org-mode. I did not find anything in the archives, and todays thread about taskjuggler brought me back to the subject. This

Re: [Orgmode] org-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Erik Butz
Hi Eric, thanks for this information, this already brings me one step further. There is now another issue which I run into, trying to get this to work: python lists seem to be a potential problem. In the code there are several lists which are constructed by a # Generate gnuplot lines

Re: [Orgmode] org-babel python/shell or gantt charts with gnuplot from within org-mode

2010-04-13 Thread Dan Davison
Erik Butz erik.b...@googlemail.com writes: Hi Eric, thanks for this information, this already brings me one step further. There is now another issue which I run into, trying to get this to work: python lists seem to be a potential problem. In the code there are several lists which are

[Orgmode] [org-babel] How to refer to a specific property when it is defined multiple times?

2010-03-26 Thread Julien Fantin
Consider the following : * heading A :PROPERTIES: :BUSY_PROPERTY: AAA :END: * heading B :PROPERTIES: :BUSY_PROPERTY: BBB :END: #+begin_src emacs-lisp :var test=(org-entry-get nil BUSY_PROPERTY t) test #+end_src #+results: : BBB #+begin_src emacs-lisp :var test=(org-property-values

Re: [Orgmode] [org-babel] How to refer to a specific property when it is defined multiple times?

2010-03-26 Thread Dan Davison
Julien Fantin julien.fan...@gmail.com writes: Consider the following :   * heading A :PROPERTIES: :BUSY_PROPERTY: AAA :END: * heading B :PROPERTIES: :BUSY_PROPERTY: BBB :END: #+begin_src emacs-lisp  :var test=(org-entry-get nil BUSY_PROPERTY t) test #+end_src #+results: : BBB

Re: [Orgmode] [org-babel] How to refer to a specific property when it is defined multiple times?

2010-03-26 Thread Eric Schulte
Hi Julien, Is the following alternative sufficient? * heading A :PROPERTIES: :BUSY_PROPERTY: AAA :END: * heading B :PROPERTIES: :BUSY_PROPERTY: BBB :END: #+begin_src emacs-lisp :var test=(org-entry-get nil BUSY_PROPERTY t) test #+end_src #+results: : BBB #+begin_src emacs-lisp :var test=(car

Re: [Orgmode] org-babel-load-file can't use properties drawers ?

2010-03-22 Thread Eric Schulte
Hi Julien, I just pushed up a small commit which will allow you to pull property values from a headline by embedding a small amount of elisp into your :var header argument. In this way the `org-entry-get' function can be used with our existing tangle-then-load elisp machinery. Best -- Eric

Re: [Orgmode] Org babel R Help

2010-03-21 Thread Joseph Cole
Joseph Cole coljo...@student.otago.ac.nz writes: I've been struggling with a few aspects of org babel R: 1) src_R surrounds output with ==. E.g. src_R{1+1} gives =2= I would expect it to just give 2. Because it surrounds the output with equals signs, this means you are unable to use the

Re: [Orgmode] Org babel R Help

2010-03-21 Thread Graham Smith
Joseph/Dan 2) Width/Height exports for R graphics output. Do they work? I've tried a lot of combinations of :width and :height as exports, and they don't seem to work at all. I've tried small numbers (1-10), large numbers (100-2000) and numbers prefixed by cm with no luck. Hmm, I'm not

Re: [Orgmode] Org babel R Help

2010-03-21 Thread Dan Davison
Graham Smith myotis...@gmail.com writes: Joseph/Dan 2) Width/Height exports for R graphics output. Do they work? I've tried a lot of combinations of :width and :height as exports, and they don't seem to work at all. I've tried small numbers (1-10), large numbers (100-2000) and numbers

Re: [Orgmode] Org babel R Help

2010-03-21 Thread Graham Smith
Dan So I believe we do understand the situation. The question is how do we improve it. First the facts: As for improvements, it is tempting to think that 1. org-babel should automatically insert the ATTR_LaTeX line in   accordance with :width and :height when creating latex output. 2.

[Orgmode] Org babel R Help

2010-03-19 Thread Joseph Cole
I've been struggling with a few aspects of org babel R: 1) src_R surrounds output with ==. E.g. src_R{1+1} gives =2= I would expect it to just give 2. Because it surrounds the output with equals signs, this means you are unable to use the output in latex equations, general text or tables

Re: [Orgmode] Org babel R Help

2010-03-19 Thread Dan Davison
Joseph Cole coljo...@student.otago.ac.nz writes: I've been struggling with a few aspects of org babel R: 1) src_R surrounds output with ==. E.g. src_R{1+1} gives =2= I would expect it to just give 2. Because it surrounds the output with equals signs, this means you are unable to use the

[Orgmode] org-babel: tangling to latex .sty/.cls files

2010-03-17 Thread Nicolas Girard
Hi all, a while ago Babel allowed latex code to be tangled to a file named f.sty or f.cls ; it's currently not possible any more, because the tangled file is named f.sty.tex or f.cls.tex. I tried to deal with it but I'm really missing this feature a lot. Do you think org-babel could allow this

[Orgmode] org-babel-load-file can't use properties drawers ?

2010-02-28 Thread Julien Fantin
I've been using this init file to load my org-mode-contained emacs configuration : ;;; init.el --- Where all the magic begins ;; ;; This file loads both ;; - Org-mode : http://orgmode.org/ and ;; - Org-babel: http://orgmode.org/worg/org-contrib/babel/org-babel.php#library-of-babel ;; ;; It then

Re: [Orgmode] org-babel : passing variables to sh/screen blocks ?

2010-02-23 Thread Dan Davison
Julien Fantin julien.fan...@gmail.com writes: I haven't been able to do so, is it possible ? I'm trying to make an org file that will take care of fetching and intsalling all my required packages, and it would really help in making things more streamlined, if shell blocks could source some

Re: [Orgmode] org-babel with R, scrolling an inferior ESS process

2010-02-18 Thread Erik Iverson
Hello, snip Can anyone 1) replicate that you don't see the scrolling, even with the comint-scroll-to-bottom-on-output variable set to 't'? Yes, this has been on my todo list for a while! Definitely time to fix it. Great, I'd be happy to test out the code when it's ready! 2) suggest a

Re: [Orgmode] org-babel with R, scrolling an inferior ESS process

2010-02-18 Thread Eric Schulte
Erik Iverson er...@ccbr.umn.edu writes: [...] Please do let us know of any other improvements we can make to using org-babel with ESS. Good integration with ESS has been one of our aims from the beginning. I will let you know as I continue using it. The ultimate improvement IMO would be

Re: [Orgmode] org-babel for matlab?

2010-02-17 Thread Darlan Cavalcante Moreira
This is also important for me (in fact, for octave). For now I used the template file and I can tangle the code correctly, but since I didn't implement any function for code execution tangling is all I've got. - Darlan At Tue, 16 Feb 2010 21:16:44 +0100, Bob Jansen bobjan...@gmail.com wrote:

Re: [Orgmode] Org Babel Bug

2010-02-11 Thread Ian Barton
Hi Eric, I have been away from my own computer for a while. I have just applied the patch and it works for me. Thanks! Ian. Since the patch below greatly simplifies the code, and it has worked in all my tests, I'm going to apply it now. Please do let me know if the export problems persist.

[Orgmode] org-babel interpreter prompts

2010-02-10 Thread Rick Moynihan
Hi all, I'm wondering if it's possible to get org-babel to output the interpreter prompts and sessions, as if each expression in the src block had been entered into the repl... e.g. something like: #+begin_src ruby :output repl 10 + 10 puts hello world [1,2,3,4,5,6,7,8,9,10].map do |i| i * i

Re: [Orgmode] org-babel interpreter prompts

2010-02-10 Thread Dan Davison
Rick Moynihan rick.moyni...@gmail.com writes: Hi all, I'm wondering if it's possible to get org-babel to output the interpreter prompts and sessions, as if each expression in the src block had been entered into the repl... e.g. something like: #+begin_src ruby :output repl 10 + 10 puts

Re: [Dan Davison] Re: [Orgmode] org-babel interpreter prompts

2010-02-10 Thread Eric Schulte
Hi Rick/Dan, I have a suggestion below, Dan Davison davi...@stats.ox.ac.uk writes: I meant to CC this to you. From: Dan Davison davi...@stats.ox.ac.uk Subject: Re: [Orgmode] org-babel interpreter prompts To: Rick Moynihan rick.moyni...@gmail.com Cc: emacs-orgmode@gnu.org Date: Wed, 10

[Orgmode] Org Babel Bug

2010-02-09 Thread Ian Barton
I am using Babel to maintein my .emacs file. When I try to publish I am getting a Babel error from one of my org files. The offending section of the org file seems to be: #+BEGIN_SRC emacs-shell 127.0.0.1 mail.wilkesley.org localhost # The following lines are desirable for IPv6 capable

Re: [Orgmode] Org Babel Bug

2010-02-09 Thread Dan Davison
Ian Barton li...@manor-farm.org writes: I am using Babel to maintein my .emacs file. When I try to publish I am getting a Babel error from one of my org files. The offending section of the org file seems to be: #+BEGIN_SRC emacs-shell Hi Ian, I don't think org-babel supports a language

Re: [Orgmode] Org Babel Bug

2010-02-09 Thread Eric Schulte
Hi Ian, The implementation of our block exportation has been bothering me for some time now. The attached patch *greatly* simplifies the exportation code. Could you please give it a try and let me know if it fixes your bug? If so I will apply it to the main repository. Thanks -- Eric diff

Re: [Orgmode] Org Babel Bug

2010-02-09 Thread Dan Davison
Dan Davison davi...@stats.ox.ac.uk writes: Ian Barton li...@manor-farm.org writes: I am using Babel to maintein my .emacs file. When I try to publish I am getting a Babel error from one of my org files. The offending section of the org file seems to be: #+BEGIN_SRC emacs-shell Hi Ian,

Re: [Orgmode] Org Babel Bug

2010-02-09 Thread Eric Schulte
Hi, Since the patch below greatly simplifies the code, and it has worked in all my tests, I'm going to apply it now. Please do let me know if the export problems persist. Best -- Eric Eric Schulte schulte.e...@gmail.com writes: Hi Ian, The implementation of our block exportation has been

[Orgmode] org-babel and source highlighting

2010-02-09 Thread Nathaniel Flath
Is there a way to get org-babel to highlight the source blocks embedded in your document in the natural language's source? All the source shows as grey for me. Thanks, Nathaniel Flath ___ Emacs-orgmode mailing list Please use `Reply All' to send

Re: [Orgmode] org-babel and source highlighting

2010-02-09 Thread Eric Schulte
Hi Nathaniel, There is currently no reliable way to mix other major modes with Org-mode. Please see this previous discussion which includes a somewhat buggy attempt at what you've described. http://article.gmane.org/gmane.emacs.orgmode/8112/ Best -- Eric Nathaniel Flath flat0...@gmail.com

[Orgmode] org-babel-sh and Microsoft Windows

2010-02-07 Thread Michael Gauland
I tried using org-babel-sh at work, where I run emacs under Microsoft Windows, but only received an oddly-formatted message about (quote sh) not being recognised as a command. After mucking around with org-babel-sh.el, I modified the call to shell-command-on-region, changing the hard-coded sh to

Re: [Orgmode] org-babel-sh and Microsoft Windows

2010-02-07 Thread Eric Schulte
Hi Mike, The command used by org-babel-sh is now configurable through the `org-babel-sh-command' variable so you should be able to set it in your initialization using a line like the following (setq org-babel-sh-command cmd /k) Best -- Eric ,[org-babel-sh-command] | org-babel-sh-command is

Re: [Orgmode] org-babel-sh and Microsoft Windows

2010-02-07 Thread Michael Gauland
Thanks! I'll give that a go! ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode

[Orgmode] org-babel: Why isn't =:results value= working with (my) python?

2010-02-04 Thread Scott May
Using org-babel, the following example produces no output for me when I execute using C-c C-c: #+begin_src python :results value 2 + 2 #+end_src #+results: : None In my messages buffer I see the following: : (Shell command succeeded with no output) Now the equivalent emacs-lisp example does

Re: [Orgmode] org-babel: Why isn't =:results value= working with (my) python?

2010-02-04 Thread Thomas S. Dye
On Feb 4, 2010, at 5:06 AM, Scott May wrote: Using org-babel, the following example produces no output for me when I execute using C-c C-c: #+begin_src python :results value 2 + 2 #+end_src #+results: : None In my messages buffer I see the following: : (Shell command succeeded with no

Re: [Orgmode] org-babel: Why isn't =:results value= working with (my) python?

2010-02-04 Thread Dan Davison
Thomas S. Dye t...@tsdye.com writes: On Feb 4, 2010, at 5:06 AM, Scott May wrote: Using org-babel, the following example produces no output for me when I execute using C-c C-c: #+begin_src python :results value 2 + 2 #+end_src #+results: : None In my

Re: [Orgmode] org-babel: Why isn't =:results value= working with (my) python?

2010-02-04 Thread Scott May
Great, thanks. Both suggestions worked. Cheers, Scott - Original Message From: Dan Davison davi...@stats.ox.ac.uk To: Thomas S. Dye t...@tsdye.com Cc: Scott May bscott...@yahoo.com; emacs-orgmode@gnu.org Sent: Thu, February 4, 2010 11:16:43 AM Subject: Re: [Orgmode] org-babel: Why

Re: [Orgmode] org-babel - First line of file created by tangle

2010-02-03 Thread Eric Schulte
Hi Rainer, I just responded to your other email with a global solution to this problem. Do you think this is the sort of thing that would need to be customized on a per-block or per-file/subtree basis? If so we may want to move this customization behind a header argument. Thanks -- Eric

Re: [Orgmode] org-babel - First line of file created by tangle

2010-02-03 Thread Rainer M Krug
Hi Eric On Wed, Feb 3, 2010 at 7:22 PM, Eric Schulte schulte.e...@gmail.com wrote: Hi Rainer, I just responded to your other email with a global solution to this problem. Thanks - I'll look at it in detail tomorrow. Do you think this is the sort of thing that would need to be

Re: [Orgmode] org-babel - First line of file created by tangle

2010-02-03 Thread Eric Schulte
Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: Hi Eric [...] So yes, I think it would be very useful to define the two additional header arguments for each block: :shebang NIL for default, other string for the shebang line :headers NIL for default, NONE for no headers, other

Re: [Orgmode] org-babel - First line of file created by tangle

2010-02-03 Thread Rainer M Krug
On Wed, Feb 3, 2010 at 10:15 PM, Eric Schulte schulte.e...@gmail.comwrote: Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: Hi Eric [...] So yes, I think it would be very useful to define the two additional header arguments for each block: :shebang NIL for default, other

[Orgmode] org-babel - First line of file created by tangle

2010-02-02 Thread Rainer M Krug
Hi I am sure I can customize it, but I could not find it. When tangling R code, I would like to skip (or customize) the first line of the resulting R file. It reads #!/usr/bin/env Rscript and I would either like to exclude it completely, or replace it with e.g. ## R I am sourcing the files

Re: [Orgmode] org-babel and emacs init

2010-01-26 Thread Eric Schulte
Hi Richard, Richard Riley rileyrg...@gmail.com writes: What approach have you taken to loading multiple files using the org-babel method? The example on the babel page searches out all org files and then untangles the elisp snippets and rewrites files with a .el extensions loading them as

[Orgmode] org-babel and emacs init

2010-01-25 Thread Richard Riley
What approach have you taken to loading multiple files using the org-babel method? The example on the babel page searches out all org files and then untangles the elisp snippets and rewrites files with a .el extensions loading them as it goes. But how to order this or how best to load

Re: [Orgmode] org-babel: Managing a bibtex database

2010-01-22 Thread Torsten Wagner
Hi again, I just rethought my idea. I think even if there is no full automatic link function, it would be nice to see bibtex as a org-babel mode. My worse case scenario is as follow: Someone ask me to send the reference X or a bunch of references Y to someone in plain-text (mostly they like to

[Orgmode] org-babel: Managing a bibtex database

2010-01-21 Thread Taru Karttunen
Hello I am wondering whether org-babel would be suitable for managing a bibtex database of ~1500 entries. I am thinking of making Bibtex entries into literate source code and thus have org-mode managing them in a more sensible way. Has anyone else done something like this? Any better ideas how

Re: [Orgmode] org-babel: Managing a bibtex database

2010-01-21 Thread Thomas S. Dye
On Jan 21, 2010, at 6:20 AM, Taru Karttunen wrote: Hello I am wondering whether org-babel would be suitable for managing a bibtex database of ~1500 entries. I am thinking of making Bibtex entries into literate source code and thus have org-mode managing them in a more sensible way. Has

Re: [Orgmode] org-babel: Managing a bibtex database

2010-01-21 Thread Torsten Wagner
Hi Taru, I was thinking of something similar but (even if I like org-babel a lot) not based on org-babel. I think a own mode ala org-bibtex would be nice. However, the ideas might be joinable. My idea would be to have somethink like the org-mode link-feature. However, instead of asking for

Re: [Orgmode] org-babel: Managing a bibtex database

2010-01-21 Thread Bill Powell
At Fri, 22 Jan 2010 09:35:06 +0900, Torsten Wagner wrote: Hi Taru, I was thinking of something similar but (even if I like org-babel a lot) not based on org-babel. I think a own mode ala org-bibtex would be nice. However, the ideas might be joinable. My idea would be to have somethink

[Orgmode] org-babel

2010-01-21 Thread Richard Riley
Two questions/requests on this nice module 1) Open src blocks to edit : I found docs which said C-c c-o or C-c ' should open src blocks. The first executes it according to the docs. So how to open? Is there no standard binding I might need to enable? 2) I set up the emacs init as described in

[Orgmode] org-babel-R and windows ?

2010-01-12 Thread d . tchin
I need help to be able to use org-babel functionality. I use emacs 22.3.1 in windows XP and org-mode 6.34. I have the following instructions in .emacs (require 'org-install) (require 'org-plot) (require 'org-babel-init) (require 'org-babel-R) ;; requires R and ess-mode (require

Re: [Orgmode] org-babel-R and windows ?

2010-01-12 Thread Dan Davison
d.tchin d.tc...@voila.fr writes: I need help to be able to use org-babel functionality. I use emacs 22.3.1 in windows XP and org-mode 6.34. I have the following instructions in .emacs (require 'org-install) (require 'org-plot) (require 'org-babel-init) (require 'org-babel-R)

Re: [Orgmode] org-babel-R and windows ?

2010-01-12 Thread Eric Schulte
Dan Davison davi...@stats.ox.ac.uk writes: [...] The org-babel default is to invoke R as an external shell command, and I think this is what is causing the problem. It requires that the emacs function shell-command can use the string R to invoke an R process, i.e. the R installation and the

Re: [Orgmode] org-babel-R and windows ?

2010-01-12 Thread Manish
On Tue, Jan 12, 2010 at 11:13 PM, Dan Davison wrote: [snip: snipped (43 lines)] The org-babel default is to invoke R as an external shell command, and I think this is what is causing the problem. It requires that the emacs function shell-command can use the string R to invoke an R process,

[Orgmode] org-babel-tangle tangles too much !

2009-12-01 Thread Nicolas Girard
Hi, I can't get tangle to work the way I want. Given a file f.org which contains = #+srcname: a #+begin_src emacs-lisp (a) #+end_src #+srcname: b #+begin_src emacs-lisp a (b) #+end_src = I would like (a) to appear only once in the tangled file f.el. All I could get is, that either (a)

Re: [Orgmode] org-babel-tangle tangles too much !

2009-12-01 Thread Thomas S. Dye
Hi Nicolas, On Dec 1, 2009, at 4:54 AM, Nicolas Girard wrote: Hi, I can't get tangle to work the way I want. Given a file f.org which contains = #+srcname: a #+begin_src emacs-lisp (a) #+end_src #+srcname: b #+begin_src emacs-lisp a (b) #+end_src = I would like (a) to appear only

Re: [Orgmode] org-babel-tangle tangles too much !

2009-12-01 Thread Eric Schulte
Hi Nicolas, At the moment org-babel believes that any time it sees a valid source block name surrounded by characters it is responsible for expanding them. Is there a reason that you are abusing this syntax? It looks as though you are trying to setup multiple levels of tangling like org-babel

Re: [Orgmode] org-babel-tangle tangles too much !

2009-12-01 Thread Dan Davison
Nicolas Girard nicolas.gir...@nerim.net writes: Hi, I can't get tangle to work the way I want. ... All I could get is, that either (a) appears twice (default behaviour), or (a) doesn't appear at all when I append :tangle no to #+srcname: a. Hi Nicolas, Note that all header arguments

Re: [Orgmode] org-babel for matlab?

2009-11-27 Thread Eric Schulte
Hi Christopher, I do not know of anyone working on matlab support for org-babel. I am attaching a template file which contains instructions for adding support for a new language. Depending on your level of familiarity with elisp it could take anywhere from a couple of hours to a couple of days.

[Orgmode] org-babel for matlab?

2009-11-26 Thread Christopher Long
Dear All, Has anyone started on a babel mode for matlab? Or is anyone else interested in making it happen? Or have a suggestion for a good template to start from (babel-python? babel-R?) And anyone has an estimate of how time consuming such a project would be? I'd like it to work

[Orgmode] org-babel-tangle xml text

2009-11-03 Thread Martin G. Skjæveland
Hi all, I am quite new to the wonderful world of org-mode and org-babel. Right now I am using org-mode to make exercises for a semantic web programming course. org-mode and its friends give me a efficient writing tool, a presentation tool, export for web, export for print and a literate

Re: [Orgmode] org-babel-tangle xml text

2009-11-03 Thread Eric Schulte
Martin G. Skjæveland mart...@ifi.uio.no writes: Is there a way I can add xml and n3 to the list of supported languages? These languages does not need interpretation, so I'm thinking it should be quite easy to add. I have fumblingly tried (add-to-list 'org-babel-tangle-langs '(xml)) and

Re: [babel] Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-29 Thread Thomas S. Dye
On Oct 28, 2009, at 12:19 PM, Eric Schulte wrote: Thomas S. Dye t...@tsdye.com writes: [...] Eric, I think Torsten has a clearer idea than I do about what kinds of programming structures might be appropriate here, but your suggestion looks to me like an elegant replacement for the file

Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Eric Schulte
Thomas S. Dye t...@tsdye.com writes: On Oct 27, 2009, at 12:55 PM, Eric Schulte wrote: Although I still don't fully understand the need to embed latex *inside* of source-code blocks, perhaps the attached org-babel-latex.el file [1] will represent a simpler solution for embedding the

<    1   2   3   >