Re: [O] [babel] Producing figures from octave

2011-08-31 Thread Dan Davison
Ethan Ligon li...@are.berkeley.edu writes: Dan Davison has a brief worg tutorial on using babel with octave at http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-octave-matlab.html Hi Ethan, Amongst other things, he offers the following example block for producing a figure

Re: [O] org-icons package

2011-08-18 Thread Dan Davison
search). But I have not heard back from him as yet. When I checked the github for org-icons again I discovered that there was a second branch by Dan Davison. https://github.com/ngirard/org-icons/tree/dan Dan, Do you know how I can get in contact with Nicolas? Or do you have access

Re: [O] PATCH: New options for latex src code export

2011-06-11 Thread Dan Davison
Bastien bastien.gue...@wikimedia.fr writes: Hi Dan, Dan Davison dandavis...@gmail.com writes: My questions are 1. It would be nice if users didn't have to worry about step 4. Can anyone suggest a sensible way to have the -shell-escape option passed to pdflatex under the appropriate

Re: [O] [patch] race condition in org-babel R

2011-05-20 Thread Dan Davison
Christophe Rhodes cs...@cantab.net writes: Hi, A substantial fraction of times when exporting my org-babel document (with many R session code blocks), I get code block produced no value. I think this is because of a race condition between waiting for the transfer.file to exist and actually

[O] Re: [Babel] Handling of errors when using Ledger

2011-03-04 Thread Dan Davison
Hi Eric, Seb and any other ledger users, Is anyone using a version of ledger that does not support reading from stdin with -f - ? Thanks, Dan Eric S Fraga e.fr...@ucl.ac.uk writes: Dan Davison dandavis...@gmail.com writes: [...] Hi Eric, I've asked on the ledger list and the 3.0

[O] Re: [PATCH] Re: [BUG] htmlp and latexp

2011-03-01 Thread Dan Davison
Bastien b...@altern.org writes: Hi Dan, Dan Davison dandavis...@gmail.com writes: Incidentally, I would suggest that org-current-export-file and org-current-export-dir are renamed so that they are within the org-export-* namespace. Agreed. Please provide a patch if you have time. OK

Re: [O] Let's stick to one list for now

2011-02-28 Thread Dan Davison
Julien Danjou jul...@danjou.info writes: On Mon, Feb 28 2011, Bastien wrote: The point is that there's no gain in telling people to add [DEV] since they will forget (I will), and there is _no_ lose by splitting a list. I Hi Julien, No, I disagree with that. The two lists would have distinct

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

2011-02-27 Thread Dan Davison
Ben Ward benjamin.w...@bathspa.org writes: 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

[Orgmode] Re: Startup page

2011-02-26 Thread Dan Davison
Matthew Sauer improv.philoso...@gmail.com writes: As a relatively newer emacs and org-mode user I have found it very interesting to see what people have in their .emacs file. This has spawned my curiosity, what do you have for a startup page? eshell (nevertheless, I do use bash terminals

[Orgmode] [PATCH] Re: [BUG] htmlp and latexp

2011-02-22 Thread Dan Davison
Bastien bastien.gue...@wikimedia.fr writes: Hi Dan, Dan Davison dandavis...@gmail.com writes: I was thinking that if it were defvard in org.el, say as (defvar org-export-current-backend nil) then any code could use (null org-export-current-backend) to test whether org is currently

[Orgmode] Re: Two questions about using a =#+begin_src emacs-lisp= block

2011-02-21 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: Chris Malone chris.m.mal...@gmail.com writes: Hi, First off, my =org-mode= is up-to-date - just did a =git pull make clean make=. Needless to say, the following were an issue before then... * Question 1: Is there a way to force, upon export,

[Orgmode] Re: Context-sensitive word count in org mode (elisp)

2011-02-16 Thread Dan Davison
Hi Paul, Sounds useful to me. Is it appropriate to use the existing org function `org-in-regexps-block-p'? Or `org-context'? (Not speaking from any experience of using these functions I just noticed them.) Dan Christian Moe m...@christianmoe.com writes: Hi, This would be really neat to have

[Orgmode] Re: [BUG] htmlp and latexp

2011-02-16 Thread Dan Davison
Christian Moe m...@christianmoe.com writes: On 2/15/11 11:23 PM, Dan Davison wrote: Commit ed6d6760268 removed variables htmlp and latexp from `org-export-preprocess-string'. Nothing wrong with that, but I think it has broken export for those using org-special-blocks Confirmed. Exporting

[Orgmode] Re: A mail client that is org-mode compatible

2011-02-16 Thread Dan Davison
Mohamed HIBTI mohamed.hi...@gmail.com writes: Hi every one, I would like to move to an emacs mail client that may be org-mode and MIME compatible. Have you any idea ? gnus is an obvious candidate. It can be a bit of a steep learning curve initially. I use it to interact with two different

[Orgmode] Re: [BUG] htmlp and latexp

2011-02-16 Thread Dan Davison
Bastien bastien.gue...@wikimedia.fr writes: Hi Dan, Dan Davison dandavis...@gmail.com writes: I was about to make a temporary fix but I see Bastien's just fixed it. Bastien -- should we give that `backend' variable a name within the org-* namespace (and maybe defvar it in org.el?) so

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

2011-02-15 Thread Dan Davison
Paul Sexton psex...@xnet.co.nz writes: Eric Schulte schulte.eric at gmail.com writes: Hi, I agree with your intuition here, but I changed the default inline header argument so that others would be able to use inline code blocks and have the results inserted. To regain the behavior you

[Orgmode] Re: Nice python listings colors, or solution to beamer + minted brokenness?

2011-02-14 Thread Dan Davison
Christopher Allan Webber cweb...@dustycloud.org writes: Hello all, I currently am trying to export something vaguely like this for a presentation in beamer: #+BEGIN_SRC python :exports code class ReferenceDeskPanel(bpy.types.Panel): bl_label = 'Reference Desk' bl_space_type =

[Orgmode] Re: Nice python listings colors, or solution to beamer + minted brokenness?

2011-02-14 Thread Dan Davison
Christopher Allan Webber cweb...@dustycloud.org writes: Dan Davison dandavis...@gmail.com writes: Hi Christopher, I believe I have just fixed the problem with minted and beamer. Please pull latex org from git and restart emacs, or ^^^ Oops, I meant to write latest org. I.e. just

[Orgmode] Re: [Feature request] org-backup

2011-02-14 Thread Dan Davison
be a possibility, like keeping everything inside ~/org and symlink to another dirs. Cheers, Marcelo. On Mon, Feb 14, 2011 at 6:38 AM, Dan Davison dandavis...@gmail.com wrote: Marcelo de Moraes Serpa celose...@gmail.com writes: Hi Dan! I already do this, but sometimes the files are spread

[Orgmode] Re: Something like SETUPFILE, but in .emacs?

2011-02-13 Thread Dan Davison
Gary Oberbrunner ga...@oberbrunner.com writes: On Sun, Feb 13, 2011 at 10:53 AM, Darlan Cavalcante Moreira darc...@gmail.com wrote: You can use auto-insert for this. I guess I'm really not using org-mode in the way it was intended -- everyone thinks I should put these values into each one

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-13 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: [...] Maybe we could extend the :var header argument to support the following syntax... #+begin_src emacs-lisp :var A=1 B=3 ;; code #+end_src or ** two vars in a properties block :PROPERTIES: :var: test1=7 test2=8 :END:

[Orgmode] Re: Help with Babel and using SQL

2011-02-13 Thread Dan Davison
yesare email@gmail.com writes: Thanks. I opened up ob-sql.el and read the code to see if I can figure it out. I think I have answered my first question. I wrote the following and hit C-c C-c and I got the result set back. #+srcname: sampsql #+begin_src sql :engine mysql :cmdline -h

[Orgmode] [PATCH] Allow property retrieval before first heading?

2011-02-12 Thread Dan Davison
Currently (org-entry-get) throws an error if point is before the first heading. Is there a reason that this must be so? Org is too essential for headings to be obligatory! An example of when it would be useful to get properties is in a buffer containing src blocks but no headings (babel takes

[Orgmode] Re: [PATCH] Allow property retrieval before first heading?

2011-02-12 Thread Dan Davison
Dan Davison dandavis...@gmail.com writes: Currently (org-entry-get) throws an error if point is before the first heading. Is there a reason that this must be so? Org is too essential for headings to be obligatory! An example of when it would be useful to get properties is in a buffer

[Orgmode] Re: [Babel][R] buffer-wide and code block specific use of :session

2011-02-12 Thread Dan Davison
Bernd Weiss bernd.we...@uni-koeln.de writes: Org-mode version 7.4 (release_7.4.348.g6132) Dear all, I am preparing a document which contains text and R code/output. In particular, I'd like to print out a (correlation) matrix. This is my org-mode document (I intentionally have two code

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-12 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: [...] It seems that what you want to do can be described as disabling inheritance of the :var properties for a specific block. Agreed - that would solve my problem. So I'm suggesting that it may be more parsimonious to do this with the existing

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-12 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: [...] I agree, the things I was talking about don't end up being simpler in terms of usage for this case. My thinking was that variable unsetting might be something that would be required fairly rarely, and so it might be worth appropriate to

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-11 Thread Dan Davison
Rainer M Krug r.m.k...@gmail.com writes: On 02/10/2011 05:48 PM, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com writes: On 02/10/2011 02:27 AM, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com writes: Hi For one project, I am usinr org to write submit scripte to a cluster

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-11 Thread Dan Davison
Rainer M Krug r.m.k...@gmail.com writes: On 02/11/2011 10:32 AM, Dan Davison wrote: Rainer M Krug r.m.k...@gmail.com writes: On 02/10/2011 05:48 PM, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com writes: On 02/10/2011 02:27 AM, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-11 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: Rainer M Krug r.m.k...@gmail.com writes: On 02/10/2011 02:27 AM, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com writes: Hi For one project, I am usinr org to write submit scripte to a cluster runing torqu. The important bit in this is,

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-11 Thread Dan Davison
Rainer M Krug r.m.k...@gmail.com writes: On 02/11/2011 01:19 PM, Dan Davison wrote: Eric Schulte schulte.e...@gmail.com writes: Rainer M Krug r.m.k...@gmail.com writes: On 02/10/2011 02:27 AM, Eric Schulte wrote: Rainer M Krug r.m.k...@gmail.com writes: Hi For one project, I am usinr

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-11 Thread Dan Davison
[...] 2. It should be possible somehow to include the options together with the shebang, or to replace :shebang with a more general preamble concept. Or to make :shebang accept a code block as its value. #+BABEL: :var A=13 #+BABEL: :var

[Orgmode] Re: [BABEL] unset :var definitions for subtree

2011-02-11 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: Hi Dan, Many interesting suggestions, but I don't see how any of them are simpler (either conceptually or in terms of implementation) than defining a way to unset a variable previously set at a higher level of generality. Is it the concept or the

[Orgmode] Re: Announcing org-contacts, a bbdb-like contact manager for Org

2011-02-10 Thread Dan Davison
Julien Danjou jul...@danjou.info writes: Hi, Following my short presentation at the Paris OrgCamp, I've now written a page and officially released org-contacts. It is a contact manager based on Org, that can possibly replace BBDB for certain usage.

[Orgmode] Re: Announcing org-contacts, a bbdb-like contact manager for Org

2011-02-10 Thread Dan Davison
Julien Danjou jul...@danjou.info writes: On Thu, Feb 10 2011, Dan Davison wrote: Hi Julien, I'm using it (with gnus). Looks great and seems to work very nicely so far. One little thing: I don't seem to be getting case-insensitive completion, despite having org-contacts-completion-ignore

[Orgmode] Re: python :session and org_babel_python_eoe

2011-02-10 Thread Dan Davison
Myles English mylesengl...@gmail.com writes: Hello, Is this behaviour expected?: #+begin_src python :session import sys #+end_src #+results: But in the python interpreter there is this: import sys open('/home/myles/tmp/scratch/python-4938gzQ', 'w').write(str(_))

[Orgmode] Re: Something like SETUPFILE, but in .emacs?

2011-02-10 Thread Dan Davison
Gary Oberbrunner ga...@oberbrunner.com writes: First time poster on this list, but old-school Emacs user since 1982. And I have to say, org-mode is amazing. I'm running current git master on emacs 24.0.50.1 on Windows. I've put all my org-mode export template stuff into a setup file in my

[Orgmode] Re: Fontification of blocks

2011-02-09 Thread Dan Davison
Just quickly, one thing I noticed is that the begin/end lines were visible even inside folded trees. I.e., in a folded org file, containing many src blocks, I could see the coloured backgrounds poking out of the folded sections, extending to the right of the screen. [...] E.g. this file

[Orgmode] Re: [babel] After Tangle Change File Permission

2011-02-09 Thread Dan Davison
Ian Barton li...@manor-farm.org writes: I am starting to use babel to maintain my collection of shell scripts. I want to automate the process as much as possible, so I would like to be able to set the execute bit on my tangled .sh scripts after the tangle process. I see that there is an

[Orgmode] Re: [BABEL] Editing dot blocks with org-exp-blocks

2011-02-09 Thread Dan Davison
Eric S Fraga e.fr...@ucl.ac.uk writes: Chris Maier christopher.ma...@gmail.com writes: The begin_dot is part of org-exp-blocks, as I understand it, and appears required to make it evaluate the Dot code, create the image file, and then incorporate that into the exported document (LaTeX,

[Orgmode] Re: [babel] Execute checks before trying to load Babel languages

2011-02-09 Thread Dan Davison
Hey Seb, I am sharing my .emacs file, and this is beginning to cause problems with people who don't have the same environment as I do. In particular with the following: #+begin_src emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '(

[Orgmode] Re: [BABEL] Editing dot blocks with org-exp-blocks

2011-02-09 Thread Dan Davison
On Wed, Feb 9, 2011 at 10:14 AM, Dan Davison dandavis...@gmail.com wrote: Eric S Fraga e.fr...@ucl.ac.uk writes: Chris Maier christopher.ma...@gmail.com writes: The begin_dot is part of org-exp-blocks, as I understand it, and appears required to make it evaluate the Dot code, create the image

[Orgmode] Re: [babel] Problem using noweb

2011-02-09 Thread Dan Davison
Eric S Fraga e.fr...@ucl.ac.uk writes: andy andy.cho...@gmail.com writes: I want to take advantage of babel's noweb capabilities, but I can't seem to get it to work. [...] * Foo ** Bar #+src_name: bar #+begin_src R :noweb yes :session *R* test-block print(I am here) a #+end_src

[Orgmode] Re: Fontification of blocks

2011-02-08 Thread Dan Davison
Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: Hi Dan, Dan Davison wrote: Sébastien Vauban wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw-XMD5yJDbdMSQIYZ4X/+iSw@public.gmane.orgrg writes: Dan Davison wrote: Just quickly, one thing I noticed is that the begin/end

[Orgmode] [PATCH] make export dispatcher go away promptly

2011-02-04 Thread Dan Davison
Following on from Stephen's recent post, a thing-that-slightly-bothers-me is the way the export dispatcher window doesn't go away until export is complete. I've briefly looked at the code twice now and it wasn't obvious to me why the save-window-excursion (line 941 org-exp.el) wasn't already doing

[Orgmode] Re: silent evaluation during export

2011-02-04 Thread Dan Davison
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, I have several code blocks that must be evaluated during export, but silently, i.e. I do not want code/output/anything to appear in the export. How do I achieve this? The obvious :export none also disables evaluation. Hi

[Orgmode] Re: inline code block results

2011-02-04 Thread Dan Davison
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, just found out: the inline block works when I explicitly state :results replace. So both questions from the previous email collapse to: why is that necessary? Regards, Andreas Am 04.02.2011 17:13, schrieb Andreas Leha:

[Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-04 Thread Dan Davison
Hi Seb, Cool post. I hope someone has some good ideas in this thread. Some quick responses / questions below. #+TITLE: Document a shell script as separate blocks #+DATE: 2011-02-04 #+LANGUAGE: en_US * Abstract When writing shell scripts, I'd like to kill *two* birds with one

[Orgmode] Re: Suppressing src block evaluationon publish?

2011-02-03 Thread Dan Davison
Loris Bennett loris.benn...@fu-berlin.de writes: Erik Iverson er...@ccbr.umn.edu writes: Loris Bennett wrote: Hi, I have an org file containing several src blocks which generate images using ditaa. When I publish to PDF via LaTeX, the images are all generated every time, which makes

[Orgmode] Re: Fontification of blocks

2011-02-02 Thread Dan Davison
. What it does: - add 2 faces for the lines delimiting the beginning and the end of the source block - fixes a tiny bug (affecting the begin delimiter line of source blocks) when in native fontification (from Dan Davison) FOR PEOPLE BEING MORE EXPERTS THAN I AM, it shows what I tried

[Orgmode] PATCH: New options for latex src code export

2011-02-02 Thread Dan Davison
Tom Dye and I have been working on providing more user control over latex export of src code via the listings and minted latex packages. The main code change is 2 commits in branch minted of the org repo, and pasted below as a single patch for patchwork. These changes allow Org users to set all

[Orgmode] Re: Overlays and elisp code

2011-02-01 Thread Dan Davison
Jeff Horn jrhorn...@gmail.com writes: I can reproduce this. emacs 23.1 and org 7.4 On Mon, Jan 31, 2011 at 5:04 AM, Andrea Crotti andrea.crott...@gmail.com wrote: I found a strange behaviour which might be a bug, but maybe of my configuration. This is org mode version: Org-mode version

[Orgmode] Re: Overlays and elisp code

2011-02-01 Thread Dan Davison
On Mon, Jan 31, 2011 at 5:04 AM, Andrea Crotti andrea.crott...@gmail.com wrote: I found a strange behaviour which might be a bug, but maybe of my configuration. [...] - go over an elisp code block - C-c ' to edit in the overlay - C-c ' to go back when done And it works perfectly, BUT if

[Orgmode] Re: Overlays and elisp code

2011-02-01 Thread Dan Davison
interface unchanged. With the default as '(header), my UI change only makes sense if we believe that an appreciable number of users will disable the header message and activate the echo-area message in its place. Dan Cheers - Carsten On Feb 1, 2011, at 12:01 PM, Dan Davison wrote: On Mon, Jan 31

[Orgmode] Re: Overlays and elisp code

2011-02-01 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes: On Feb 1, 2011, at 12:22 PM, Dan Davison wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Dan, maybe just header in the default value to keep the echo area open for error messages? Absolutely. But if you prefer, we could just

Re: [Orgmode] Problems with buffer-local variables

2011-01-31 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes: On Dec 22, 2010, at 3:51 PM, Dan Davison wrote: There's recently been some advocacy of using buffer-local variables for Org-mode configuration. It seems like a good idea to me. However, I think that it raises a problem: there are at least

[Orgmode] PATCH: org-open-at-point curation

2011-01-30 Thread Dan Davison
While fiddling with the way babel uses org-open-at-point, I noticed a coupe of things: 1. There's a bug when using the prefix arg with a text search link. E.g. try C-u C-c C-o on [[foo]] 2. The prefix arg is used in three different ways (two of them undocumented), not all of which

[Orgmode] Re: Tangle subtree only?

2011-01-27 Thread Dan Davison
Rainer M Krug r.m.k...@gmail.com writes: Hi my org document is structured in such a way, that each subtree is to be tangled into a separate file, specified in a :PROPERTIES: :tangle: filename :END: drawer. If I change something in one subtree, I do tangle the whole file, just because

[Orgmode] Re: [babel] Painless integration of source blocks with language

2011-01-24 Thread Dan Davison
Eric S Fraga e.fr...@ucl.ac.uk writes: Eric Schulte schulte.e...@gmail.com writes: Eric S Fraga e.fr...@ucl.ac.uk writes: [...] management issue: I find it difficult (a) to remember what all my source code snippets are called and (b) to navigate to any given snippet. I would love to see

[Orgmode] Re: return link to :file when using #+call

2011-01-23 Thread Dan Davison
Myles English mylesengl...@gmail.com writes: Thanks for your answer Eric. Recent changes as per http://thread.gmane.org/gmane.emacs.orgmode/35396 means that this no longer works. Thanks for bringing this up Myles. To recap: what I would like to do is to #+call an R source block, passing a

[Orgmode] Re: Several graphs in R

2011-01-21 Thread Dan Davison
Rainer M Krug r.m.k...@gmail.com writes: Hi I just solved a problem of mine, i.e. how to deal with multiple graphs generated in an R script. OK - all are saved into separate pdfs in separate paths. But I would like to see them after they are generated - and this is my solution:

[Orgmode] PATCH: Support `org-export-process-option-filters' in latex export

2011-01-21 Thread Dan Davison
`org-export-process-option-filters' is supported for HTML export but not for latex export. The patch at the bottom fixes that. I note that there is one other location in the same function where it seems the same change could be made. I suspect this is not necessary, but if someone is familiar

[Orgmode] Re: Worg needs some reorganizing

2011-01-20 Thread Dan Davison
Jason Dunsmore emacs-orgm...@dunsmor.com writes: Eric Schulte schulte.e...@gmail.com writes: Matt Lundin m...@imapmail.org writes: Bastien bastien.gue...@wikimedia.fr writes: Jeff Horn jrhorn...@gmail.com writes: Jason seems to be garnering a lot of votes, but Eric's zenburn emulation

Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-20 Thread Dan Davison
On Thu, Jan 20, 2011 at 5:02 PM, Jeff Horn jrhorn...@gmail.com wrote: On Thu, Jan 20, 2011 at 6:22 AM, Dan Davison dandavis...@gmail.com wrote: I strongly second this. In fact I'll stick my neck out more: Worg is great, but for tutorials on org-mode, HTML export is often the wrong format

Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-20 Thread Dan Davison
On Thu, Jan 20, 2011 at 5:41 PM, Dan Davison dandavis...@gmail.com wrote: On Thu, Jan 20, 2011 at 5:02 PM, Jeff Horn jrhorn...@gmail.com wrote: On Thu, Jan 20, 2011 at 6:22 AM, Dan Davison dandavis...@gmail.com wrote: I strongly second this. In fact I'll stick my neck out more: Worg

[Orgmode] Re: Embedded code

2011-01-19 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: Rainer M Krug r.m.k...@gmail.com writes: On 01/18/2011 12:48 AM, Eric Schulte wrote: Hi, This is possible using Babel, the attached org-mode file will execute its code block every time it is opened. You can replace the contents of the code

[Orgmode] Re: [OT] Have you also got hooked by Vim?

2011-01-19 Thread Dan Davison
Matt Lundin m...@imapmail.org writes: Marcelo de Moraes Serpa celose...@gmail.com writes: However, I've got hooked. Vim (in my case, MacVim) has conquered my hands. I know I'm risking myself a lot by saying it on an emacs-related mailing list, but the Vim navigation and the vim model in

[Orgmode] Re: org fontifies outside of src blocks

2011-01-10 Thread Dan Davison
Jeff Horn jrhorn...@gmail.com writes: Beautiful. Thanks, Tom! Hi Jeff, so you had two problems: 1. Erroneous fontification outside of blocks 2. Slowness and too much output to *Messages* I was aware that Tom's fix fixes (2) on OS X, but I haven't heard of (1) before. Isn't it a bit weird that

[Orgmode] Re: org fontifies outside of src blocks

2011-01-10 Thread Dan Davison
this regardless of whether code blocks were actually displayed. It has been a while since someone on the list pointed out the fix to me, but I haven't run into any problems since then and my buffers are fontified correctly. All the best, Tom On Jan 10, 2011, at 3:06 AM, Dan Davison wrote

[Orgmode] Re: [babel] How to fontify blocks other than begin_src?

2011-01-08 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: Hi Seth, The easiest way to fontify embedded html is most likely to wrap the html in #+begin_src html code blocks. As for defining your own clojure blocks that sounds like a risky proposition to me. All of the code block evaluation functions are

[Orgmode] Re: Images from R in LaTeX and PDF

2011-01-08 Thread Dan Davison
Ben Ward benjamin.w...@bathspa.org writes: #+begin_src R :exports both full - read.csv(file=~/Documents/BSc Biology/Third Year/BY6001-40 - Dissertation/Data and Analysis/Evolution Results.csv, head=T) library(lattice) ecoli = subset(full, Bacterium==E.coli) edett = subset(ecoli,

[Orgmode] Re: [babel] R: New handling of file output

2011-01-06 Thread Dan Davison
graphics to :results output. All the best, Tom On Dec 21, 2010, at 6:57 AM, Dan Davison wrote: Dan Davison dandavis...@gmail.com writes: Please note the following changes to the way that org-babel handles file output. These may break existing org-babel files which use the :file header

[Orgmode] Re: [Babel] Handling of errors when using Ledger

2010-12-23 Thread Dan Davison
Eric S Fraga ucec...@ucl.ac.uk writes: Dan Davison dandavis...@gmail.com writes: Eric S Fraga ucec...@ucl.ac.uk writes: Dan dandavis...@gmail.com writes: [...] This patch should make ob-ledger use the common org-babel error mechanism. It is in branch ledger of the main repo. However

[Orgmode] Re: [PATCH] Skip source block fontification when the language is not defined

2010-12-22 Thread Dan Davison
Bernt Hansen be...@norang.ca writes: * lisp/org.el: Skip source block fontification during export when language is not defined --- This may not be the correct fix for this issue but it works for me. Hi Bernt, I've checked in a slightly different version[1] of this fix. Thanks for the

[Orgmode] Re: Fontification of blocks

2010-12-22 Thread Dan Davison
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi David, David O'Toole wrote: 2010/12/10 Sébastien Vauban wxhgmqzgw...@spammotel.com: In order to make the blocks stand out more clearly in the mix of prose, code and table results of many Babel Org files, I've added 2 new faces: -

[Orgmode] Problems with buffer-local variables

2010-12-22 Thread Dan Davison
There's recently been some advocacy of using buffer-local variables for Org-mode configuration. It seems like a good idea to me. However, I think that it raises a problem: there are at least two situations in which Org internally spawns a buffer that is supposed to be a sort of copy of another Org

[Orgmode] Re: [PATCH] Skip source block fontification when the language is not defined

2010-12-22 Thread Dan Davison
Bernt Hansen be...@norang.ca writes: Dan Davison dandavis...@gmail.com writes: Bernt Hansen be...@norang.ca writes: * lisp/org.el: Skip source block fontification during export when language is not defined --- This may not be the correct fix for this issue but it works for me. Hi Bernt

[Orgmode] Re: Need help with org and SSH

2010-12-22 Thread Dan Davison
Jeff Horn jrhorn...@gmail.com writes: Hey orgsters, For the holiday trip, I decided to see if I could go a week with only the Cr-48. I left my Macbook at home ready for SSH, just in case. It took approximately 30 minutes of using the computer before I started itching for org. I've been

[Orgmode] Re: Need help with org and SSH

2010-12-22 Thread Dan Davison
Jeff Horn jrhorn...@gmail.com writes: On Wed, Dec 22, 2010 at 12:49 PM, Dan Davison dandavis...@gmail.com wrote: The second one is lacking the fboundp protection. Does it help if you put the fboundp test in, as below? Dan, Thanks for the suggestion. I tried the patch and got a huge

[Orgmode] [babel] New handling of file output

2010-12-21 Thread Dan Davison
Please note the following changes to the way that org-babel handles file output. These may break existing org-babel files which use the :file header argument. :file filename should be understood as saying write the result to filename and return a link to filename. This works for all languages.

[Orgmode] Re: [babel] R: New handling of file output

2010-12-21 Thread Dan Davison
Dan Davison dandavis...@gmail.com writes: Please note the following changes to the way that org-babel handles file output. These may break existing org-babel files which use the :file header argument. :file filename should be understood as saying write the result to filename and return

[Orgmode] Re: Can't close Emacs+org-mode if /tmp and /home on different partitions

2010-12-08 Thread Dan Davison
Antti Kaihola akaih...@gmail.com writes: I have /tmp on my root partition and a separate partition for /home. When trying to close an Emacs session which is using org-mode, I get this error: move-file-to-trash: Non-regular file: Is a directory, /tmp/babel-XXX (where XXX are

[Orgmode] Re: Babel, Python and UTF-8

2010-12-06 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: Vincent Beffara vbeff...@ens-lyon.fr writes: Hi, (and it would be excellent to allow for a code block as a preamble, instead of a string in the header or as an alternative, because preambles once they are allowed tend to grow uncontrollably ;-)

[Orgmode] Re: Babel, Python and UTF-8

2010-12-06 Thread Dan Davison
Thomas S. Dye t...@tsdye.com writes: Hi Dan, Emacs configuration is one of the highest barriers to entry for potential adopters of Org-mode, IMO. The idea of context-sensitive configuration is potentially terrific. It gets the user to work more quickly than would otherwise be the case.

[Orgmode] Re: Orgmode and Unicode characters

2010-12-06 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: My only worry on this front is that I know how to type | and - for tables, and how to type * for headings, but I don't have an easy way to type utf8 characters. If Org-mode starts using exotic utf8 characters which can not easily be typed from

[Orgmode] [PATCH] org-edit-src-code

2010-12-03 Thread Dan Davison
85597d28b25f4e64d535f61d2115ed2069a28be8 Author: Dan Davison dandavis...@gmail.com Date: Fri Dec 3 18:24:38 2010 + Reorganize org-edit-src-code; allow buffer-local `org-edit-src-content-indentation' * lisp/org-src.el (org-edit-src-code): When generating the code edit buffer, it is necessary

[Orgmode] Re: [Babel] No output returned if just one command is failing

2010-12-02 Thread Dan Davison
Hi Seb, I definitely have some sympathy with your request. On two occasions I've had to manually make this change just to carry on working. The change I made is straightforward if you need it as a temporary hack: --8---cut here---start-8--- diff --git

[Orgmode] Re: Babel, Python and UTF-8

2010-12-02 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: Hi, I've just pushed up a new prefix header argument. preamble might be a better name? or header? prefix makes me think of adding a string onto the front of a string[1]; preamble and header are used by e.g. latex to refer to prelimary lines at the

[Orgmode] Re: [Babel] No output returned if just one command is failing

2010-12-02 Thread Dan Davison
Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: Hi Eric and Dan, Dan Davison wrote: Sébastien Vauban wrote: Eric Schulte wrote: I don't forsee adding partial results insertion both because - it would add a good deal of complexity to the code to insert

[Orgmode] Re: [Babel] Reporting 2 problems of code execution

2010-11-29 Thread Dan Davison
Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: Hi Charles, Thanks a lot for taking a look at this, too... Charles C. Berry wrote: On Sun, 28 Nov 2010, Sébastien Vauban wrote: Hi Eric and Dan, * Abstract Reporting two problems: Did you mean to include

[Orgmode] Re: Generated images in buffer

2010-11-28 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes: You can place the ditaa code into a code block and then evaluate the code block with C-c C-c. This will insert a link to the generated image into your Org-mode file. If you then turn on inline images with M-x org-toggle-inline-images you can

[Orgmode] Re: Generated images in buffer

2010-11-28 Thread Dan Davison
-default-header-args:ditaa #+end_src #+results: : ((:results . file) : (:exports . results)) #+begin_src emacs-lisp :results pp org-babel-default-header-args:python #+end_src #+results: : nil Dan Thanks! Dov On Sun, Nov 28, 2010 at 19:27, Dan Davison dandavis...@gmail.com wrote: (add-hook

[Orgmode] Re: [Babel] Handling of errors when using Ledger

2010-11-26 Thread Dan Davison
Eric S Fraga ucec...@ucl.ac.uk writes: Dan dandavis...@gmail.com writes: [...] This patch should make ob-ledger use the common org-babel error mechanism. It is in branch ledger of the main repo. However, I'm not yet a ledger user. Could someone test it? Unfortunately, it doesn't work

[Orgmode] Re: org-babel problem

2010-11-26 Thread Dan Davison
Erik Butz erik.b...@googlemail.com writes: Hi, people with more git experience should comment here, but it seems with: ~/elisp/org-mode $ git status you will get a list of currently untracked files in the local working directory. These are of course both files or directories deleted from

[Orgmode] Re: org-babel problem

2010-11-25 Thread Dan Davison
Erik Butz erik.b...@googlemail.com writes: 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

[Orgmode] [OT] retrieving old messages [WAS] Re: [Babel] Handling of errors when using Ledger

2010-11-25 Thread Dan Davison
Bernt Hansen be...@norang.ca writes: Dan dandavis...@gmail.com writes: Incidentally, can any gnus users tell me -- is there a non-painful way of retrieving an old message from nntp in order to create a reply in the correct thread? Or do you hack the headers to make it appear in the right

[Orgmode] Re: [Accepted] Re: In-buffer completion

2010-11-25 Thread Dan Davison
From: Dan Davison dandavis...@gmail.com X-Patchwork-Id: 396 Message-Id: 874obblwa8@gmail.com To: Carsten Dominik carsten.domi...@gmail.com Cc: John Wiegley jwieg...@gmail.com, Org Mode emacs-orgmode@gnu.org Carsten Dominik carsten.domi...@gmail.com writes: Dear all, yesterday I

[Orgmode] Re: [Babel] Error output buffer

2010-11-24 Thread Dan Davison
Sébastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: Hi, A quick wished feature, if you agree on its usefulness. Currently, all error messages are concatenated to the same buffer, execution after execution, which makes it *difficult to distinguish between the new

[Orgmode] Re: [Babel] Error output buffer

2010-11-23 Thread Dan Davison
Hi Eric, Seb, I'd actually just pushed my local fix that I had made to this so far. Our emails crossed because mine is being held up by gmane as I forgot to switch the obfuscated gmane reply address for the normal list address, but here's what will come through eventually: , | Hi Seb, | |

[Orgmode] Re: [BABEL] Two minor issues

2010-11-22 Thread Dan Davison
sending to emacs-orgmode@gnu.org, is that OK? Dan Davison wrote: Sébastien Vauban writes: Dan Davison wrote: ... Honestly, the way I update that code has been mainly done by sequences of trials and errors. The above code is, for me, still quite complex to understand with vars such as beg, beg1

  1   2   3   4   5   6   >