Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-18 Thread Daniel Drake
On 02/18/2012 08:23 AM, Eric Schulte wrote: Daniel Drake writes: Hi All, I'm using R in org-mode/babel to analyze data from a psychological study. The subjects in this study are identified by nine digit integers (e.g., 987654321) that I treat as strings (or factors) in my R data frames. Tab

Re: [O] get all todo items as lisp list

2012-02-18 Thread Jambunathan K
> Hi, > > Given a todo list in an org file, is there already a function, that > converts this list to an elisp list, that contains at least heading, > deadline and properties? Create the following interactive function. This functions exports Org file to a *pretty* lisp file. --8<---c

Re: [O] A manuscript on "reproducible research" introducing org-mode

2012-02-18 Thread Rasmus
t...@tsdye.com (Thomas S. Dye) writes: > I just ran across this article on reproducible research that some of you > might find interesting. > > http://journal.r-project.org/archive/2011-2/RJournal_2011-2_Lundholm.pdf On reproducible research, are you guys aware of the relatively recent project Kn

Re: [O] get all todo items as lisp list

2012-02-18 Thread Eric Abrahamsen
On Sun, Feb 19 2012, Peter Münster wrote: > Hi, > > Given a todo list in an org file, is there already a function, that > converts this list to an elisp list, that contains at least heading, > deadline and properties? > > Example input: > * TODO todo-test > DEADLINE: <2012-04-19 Thu 13:33> >

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Nick Dokos
Nick Dokos wrote: > Not To Miss wrote: > > > I looked that section carefully and the whole manual briefly. I > > haven't found anything yet. That's why I am asking on the mailing list > > to see if anyone has some workaround. > > > > On Sat, Feb 18, 2012 at 9:03 AM, Sean O'Halpin > > wrote:

Re: [O] Updating the Babel section of Worg

2012-02-18 Thread Eric Schulte
t...@tsdye.com (Thomas S. Dye) writes: > Hi Eric, > > I pushed a draft of the revised LaTeX language section to Worg > (http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html). > > Please take a look and edit as necessary. Too often I understand > these things partially! > Everyth

Re: [O] Bug: [Babel] sqlite if: End of file during parsing

2012-02-18 Thread Eric Schulte
Philip Rooke writes: > Eric Schulte writes: > >> Does the following work with the addition of ":results scalar"? > > Yes, there is no error although the format of the result is different to > the one database line query or the equivalent shell command. This is > what happens for me: > > #+begin

Re: [O] [PATCH] Avoid lisp error with (org-deadline nil "+1d")

2012-02-18 Thread Peter Münster
On Thu, Nov 24 2011, Nick Dokos wrote: > Are they free variable warnings? If so, you now know how to fix them: > go wild :-) All right, done so... ;) -- Peter

[O] [PATCH] Avoid some warnings about `assignment to free variable'

2012-02-18 Thread Peter Münster
* lisp/org.el, lisp/org-pcomplete.el: Add some `defvars' to avoid warnings about `assignment to free variable'. TINYCHANGE --- lisp/org-pcomplete.el |5 + lisp/org.el |2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lisp/org-pcomplete.el b/lisp/org-pc

Re: [O] Temp files from testing are permanent...

2012-02-18 Thread Achim Gratz
Eric Schulte writes: > It will be up to the authors of individual tests to remove tangled and > exported files. Ideally we can patch each test to clean up after > itself. Perhaps we should provide a test macro which accepts a list of > file names and optionally removes them if the test exists su

Re: [O] android mobile org question on capture

2012-02-18 Thread Renato
On Sat, 18 Feb 2012 13:28:17 -0500 Matthew Jones wrote: > Hi Renato, I'm the maintainer of MobileOrg for Android. Hi, > Regarding #1 this seems like an org-mode thing and I'm not too sure... > usually I just look at these and file them manually, but this could > get untenable if you have a lot

Re: [O] android mobile org question on capture

2012-02-18 Thread Matthew Jones
Hi Renato, I'm the maintainer of MobileOrg for Android. Regarding #1 this seems like an org-mode thing and I'm not too sure... usually I just look at these and file them manually, but this could get untenable if you have a lot of content on #2 I think we have it solved here: https://github.com/m

Re: [O] A manuscript on "reproducible research" introducing org-mode

2012-02-18 Thread Thomas S. Dye
Samuel Wales writes: > As a followup to my last comment, this explains how Stapel > fooled almost everybody and kept raw data hidden: > > > http://chronicle.com/blogs/percolator/the-fraud-who-fooled-almost-everyone/27917 > > And NYT "Fraud Case Seen as a Red Flag for Psychology > Research" whi

[O] Displaying or linking to definitions of terms?

2012-02-18 Thread jeremiah . dodds
I've done a fair amount of reading (and-rereading) the manual, and searching around, but my search skills are failing me and org-mode is flexible enough that I figure that someone has either done this, or there's something that makes it unnecessary that I don't know of. I'd like to be able to writ

Re: [O] Temp files from testing are permanent...

2012-02-18 Thread Eric Schulte
Achim Gratz writes: > Olaf Meeuwissen writes: >> Successful tests can clean up after themselves but failed tests should >> not so you can debug. The decision to remove these files should be left >> to whoever runs the test suite. That implies that even successful tests >> don't really have to

[O] get all todo items as lisp list

2012-02-18 Thread Peter Münster
Hi, Given a todo list in an org file, is there already a function, that converts this list to an elisp list, that contains at least heading, deadline and properties? Example input: --8<---cut here---start->8--- * TODO todo-test DEADLINE: <2012-04-19 Thu 13:33

Re: [O] Babel add comma in front of my '*'

2012-02-18 Thread Eric Schulte
Daniel Dehennin writes: > Eric Schulte writes: > > > [...] > >> Yes, >> >> Org-mode does the above to protect the rest of the file from the >> possible Org-mode syntax in the code block. However if you then use >> this text (e.g., through tangling or reference from another code block) >> the co

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2012-02-18 Thread David Maus
At Sat, 18 Feb 2012 18:19:49 +0100, Bastien wrote: > > Hi David and Paul, > > David Maus writes: > > > Instead of adding the :whitespace-cleanup property to the template > > definition (what requires you to specify e.g. whitespace-cleanup in > > every single template) why not define a new hook tha

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Nick Dokos
Not To Miss wrote: > I looked that section carefully and the whole manual briefly. I > haven't found anything yet. That's why I am asking on the mailing list > to see if anyone has some workaround. > > On Sat, Feb 18, 2012 at 9:03 AM, Sean O'Halpin wrote: > > On Fri, Feb 17, 2012 at 4:54 PM, No

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Not To Miss
Sorry, I didn't make it more clear. I want to create a link to a specific line automatically, just as the command "C-c l" (org-store-link) to automatically create a link to the text of current line. Sometimes line number is more important for me to record. On Sat, Feb 18, 2012 at 12:11 PM, Eric Sc

Re: [O] [PATCH] manual: fix references to Calc manual

2012-02-18 Thread Bastien
Michael Brand writes: > * doc/org.texi: Decapitalize file name in references to Calc manual. > > On a case sensitive file system the references from the HTML Org > manual (e. g. the link href="Calc.html#Embedded-Mode" or > href="../Calc/Embedded-Mode.html#Embedded-Mode") to the HTML Calc > manual

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2012-02-18 Thread Bastien
Hi David and Paul, David Maus writes: > Instead of adding the :whitespace-cleanup property to the template > definition (what requires you to specify e.g. whitespace-cleanup in > every single template) why not define a new hook that is run before > the finalization starts? I.e. with capture buff

[O] Tangle only code block body

2012-02-18 Thread Ista Zahn
Hi all, Is there a way to tangle just the body of code blocks, without any header argurments? For example when I tangle this file # begin example # * test #+name: testplot #+begin_src R :results output graphics :file tmp.png :tangle tmp.R plot(1:10) #+end_src # end example #

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Eric Schulte
Not To Miss writes: > I looked that section carefully and the whole manual briefly. I > haven't found anything yet. That's why I am asking on the mailing list > to see if anyone has some workaround. > [[file:filename.txt::6]] jumps to line 6 of filename.txt for me. I don't know if this is docum

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Not To Miss
I looked that section carefully and the whole manual briefly. I haven't found anything yet. That's why I am asking on the mailing list to see if anyone has some workaround. On Sat, Feb 18, 2012 at 9:03 AM, Sean O'Halpin wrote: > On Fri, Feb 17, 2012 at 4:54 PM, Not To Miss wrote: >> Hi all, >> >

Re: [O] sqlite3 in org-babel

2012-02-18 Thread Eric Schulte
Daniel Clemente writes: >> Have you tried using a sqlite code block? See ob-sqlite.el > > I didn't notice there were both ob-sql and ob-sqlite. It would be > useful to mention sqlite inside ob-sql. Done. > > Perhaps they should be united? > I believe there were reasons for keeping th

Re: [O] Babel add comma in front of my '*'

2012-02-18 Thread Daniel Dehennin
Eric Schulte writes: [...] > Yes, > > Org-mode does the above to protect the rest of the file from the > possible Org-mode syntax in the code block. However if you then use > this text (e.g., through tangling or reference from another code block) > the comma will be automatically removed, so i

Re: [O] [0][babel][R] Undesired conversion of integers to floats in R code block output

2012-02-18 Thread Eric Schulte
Daniel Drake writes: > Hi All, > > I'm using R in org-mode/babel to analyze data from a psychological > study. The subjects in this study are identified by nine digit integers > (e.g., 987654321) that I treat as strings (or factors) in my R data > frames. > > Tables output by an R code block tha

Re: [O] [PATCH] Fix old Babel syntax in library-of-babel.org

2012-02-18 Thread Eric Schulte
Applied, Thanks "Sebastien Vauban" writes: > From 3569c16e1d4270e6004441d8cdcc92801b3a01cd Mon Sep 17 00:00:00 2001 > From: Sebastien Vauban > Date: Thu, 16 Feb 2012 15:50:17 +0100 > Subject: [PATCH] Fix old Babel syntax > > --- > contrib/babel/library-of-babel.org |2 +- > 1 files changed

[O] [PATCH] manual: fix references to Calc manual

2012-02-18 Thread Michael Brand
* doc/org.texi: Decapitalize file name in references to Calc manual. On a case sensitive file system the references from the HTML Org manual (e. g. the link href="Calc.html#Embedded-Mode" or href="../Calc/Embedded-Mode.html#Embedded-Mode") to the HTML Calc manual (e. g. the file calc.html or calc/

Re: [O] [PATCH] org-capture, removing whitespace from new captures

2012-02-18 Thread David Maus
Hi Bastien, Hi Paul, At Sat, 29 Oct 2011 14:08:52 +0200, Bastien wrote: > > Hi Paul, > > Paul writes: > > > In fact adding whitespace-cleanup to org-capture-before-finalize-hook > > was what I tried first, but it didn't do what I wanted. This hook is > > called _after_ the buffer is widened - ma

Re: [O] How to activate pre.src in org-babel html output? Can only get class=example

2012-02-18 Thread Eric Schulte
Hi Giovanni, When I export the following code block , | #+begin_src emacs-lisp :exports both | :foo | #+end_src ` it generates the following HTML. , | :foo | | | | | :foo | ` My guess is that during export you get a message along the lines of "htmlize is required for exp

Re: [O] Babel add comma in front of my '*'

2012-02-18 Thread Eric Schulte
Daniel Dehennin writes: > Hello, > > I tryed to babelize an iptables-save file and file to restore it. > > Babel put a comma in front of my '*', in the following, the '*mangle' > became ',*mangle': > > #+begin_src text > # Generated by iptables-save v1.4.4 on Wed Feb 15 10:16:05 2012 > ,*mangle >

Re: [O] Incomplete syntax highlight for C++ code

2012-02-18 Thread Eric Schulte
Hi Zhiqiu, First, I would look at the actual text of the exported html code example. It likely contains css code specifying how to fontify many elements of the code block (e.g., on my system your example exports to the following html [1]). You can then add css to your org-mode file specifying wh

Re: [O] Setting multiple variables for code blocks in one property drawer

2012-02-18 Thread Eric Schulte
Viktor Rosenfeld writes: > Hi Eric, > > thanks for your input. I just pulled the latest code from git and while > my original example works, the following does not: > > :PROPERTIES: > :var: foo=1 > :var+: bar=2 > :var+: baz=3 > :END: > > #+BEGIN_SRC sh > echo foo: $foo > echo bar: $bar > echo ba

Re: [O] requesting help debugging tangle on windows

2012-02-18 Thread Eric Schulte
Unfortunately I don't have access to a windows machine for testing of tangle behavior. Before we delve deeper, could you confirm two things. 1. It sounds as though you are not using the latest version of Org-mode from git. Please upgrade to the latest -- which should also get you the lates

Re: [O] bug / regression: C-x C-s is broken in org-edit-special

2012-02-18 Thread Eric Schulte
Thanks for posting this workaround. I've just pushed up a change which rebinds this key in org-src-mode. I don't know why the binding was ever removed in the first place. Best, Leo Alekseyev writes: > In case anyone is curious, C-x C-s functionality in org-edit-special > can be easily restore

Re: [O] Freemind export and import question/suggestion (newlines problem)

2012-02-18 Thread Johnny
Johnny writes: > Hi, > > I am trying out the excellent freemind exporter/importer and am running > into issues with long node names and newlines. > > 1) Exporting org to freemind (node name length limitation?) > In org-mode, none of the headlines can contain newlines, so occasionaly > they get a

Re: [O] anyway to create link to a line number in a file

2012-02-18 Thread Sean O'Halpin
On Fri, Feb 17, 2012 at 4:54 PM, Not To Miss wrote: > Hi all, > > I am reading a long text file and want to write down my notes with > org-mode. I extremely would like to put the line numbers down along > with my notes. Although there is a way to store a link for text search > for the current line

[O] worg wrong link?

2012-02-18 Thread Rustom Mody
In http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html#sec-3 the 'here' (emacs code available here under Code and usage for org-export-as-s5) points to http://gitweb.adaptive.cs.unm.edu/org-S5.git/blob_plain/HEAD:/org-export-as-s5.el (where theres nothing about emacs/org mode) Shou

Re: [O] using variables in org text

2012-02-18 Thread Rainer M Krug
On 16 February 2012 17:05, Thomas S. Dye wrote: > Rainer M Krug writes: > >> Hi >> >> I have defined a variable as follow >> >> #+property: var  DC="/home/rkrug/tmp/CLUSTER" >> >> and I am using this path quite often in source blocks (works nicely as >> expected) but also in org directly, e.g. >>

Re: [O] Bug: Remote state change of repeating TODO fails with calendar open [7.8.03]

2012-02-18 Thread David Maus
Hi Thomas, At Fri, 17 Feb 2012 14:28:39 +0100, Thomas Morgan wrote: > > Changing a repeating TODO's state to DONE remotely from the > agenda fails to change the date when the calendar is open in > another window. > > The reason is that `org-recenter-calendar' selects the agenda > window after doin

Re: [O] Limit todo window

2012-02-18 Thread Richard Riley
Nick Dokos writes: > Richard Riley wrote: > >> >> Whats the best way to limit the window that agendas use to show open >> todo items? e.g when I do C-c a a I dont want to see TODOs set for a >> years time - generally I might only want things in the current week or >> so. is there something buil

[O] Bug: [patch] Fixes behavior of org-agenda-tree-to-indirect-buffer [7.8.02 (release_7.7.796.gc512)]

2012-02-18 Thread Dave Abrahams
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list.