[O] how to get org-version using emacs batch mode.

2014-04-23 Thread Supriya Sawant
How can I get the org-version on my command line? I think using batch mode it is possible. I tried : emacs --batch --eval '(org-version)' but it doesn't work. It gives me blank result. -- Thanks Regards, Supriya Pravin Sawant

Re: [O] Tried to use `org-agenda-top-headline-filter' in agenda block

2014-04-23 Thread Bastien
Hi Brady, Brady Trainor algeb...@uw.edu writes: Org-mode version 8.2.5h (8.2.5h-137-gc7812f-elpa @ /home/iam/.emacs.d/elpa/org-20140421/) I tried to use `org-agenda-top-headline-filter'. There was a bug here, please try again from a fresh pull of the maint or master branch. Thanks for

Re: [O] observations on updating to recent org

2014-04-23 Thread Bastien
Hi Greg, Greg Troxel g...@ir.bbn.com writes: I used to get an ID PROPERTIES entries for nodes that were exported to the calendar, which was basically nodes that had an active timestamp. But now I had a huge number of changes, adding ID to every node, even those with no real content

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Bastien
Hi Aaron, Aaron Ecay aarone...@gmail.com writes: How does this sound as an algorithm: 1. if :file is present, behave exactly as we do now 2. if :file is absent but :file-ext and a #+name is present, generate a :file parameter from :output-dir, the #+name, and :file-ext. I suggest this

Re: [O] how to get org-version using emacs batch mode.

2014-04-23 Thread Bastien
Supriya Sawant sp.sawan...@gmail.com writes: emacs --batch --eval '(org-version)' but it doesn't work. It gives me blank result. emacs --batch --eval '(message (org-version))' HTH, -- Bastien

Re: [O] Exporting Code Blocks to PDF

2014-04-23 Thread Bernhard Pröll
Instead of switching fontsizes regularly, you might want to set the monofont size or scale: #+LATEX_HEADER: \setmonofont[Scale=0.8]{Source Code Pro} Bernhard John Hendy jw.he...@gmail.com schrieb am Tue, 22. Apr 19:43: On Tue, Apr 22, 2014 at 6:28 PM, Elasady, Summer s...@stowers.org wrote:

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: Nicolas, do you remember why we added IDs to all headlines and not just the one that we be exported in the .ics file? It is a bit difficult to do otherwise. We don't know beforehand what headlines are going to be exported. We get this information when a

Re: [O] how to get org-version using emacs batch mode.

2014-04-23 Thread Supriya Sawant
Is it possible to redirect or get the output of batch mode command in variable. cmd = emacs --batch --eval '(message (org-version))' ouput=cmd print output i.e output contains version no.(output=7.9.3f) On Wed, Apr 23, 2014 at 12:00 PM, Bastien b...@gnu.org wrote: Supriya Sawant

Re: [O] how to get org-version using emacs batch mode.

2014-04-23 Thread Nicolas Richard
Supriya Sawant sp.sawan...@gmail.com writes: Is it possible to redirect or get the output of batch mode command in variable. Assuming you use bash : $ MYOUTPUT=$(emacs --batch --eval '(princ (org-version))') $ echo $MYOUTPUT 8.2.5c -- Nico.

Re: [O] observations on updating to recent org

2014-04-23 Thread Bastien
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: Nicolas, do you remember why we added IDs to all headlines and not just the one that we be exported in the .ics file? It is a bit difficult to do otherwise. Assuming this is just difficult, not

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Eric Schulte
Looks useful to me, but :file png looks wrong, with too much implicit. We should find something less confusing. One option would be to use :file-ext instead, to generate a :file parameter. I didn’t go this route because autogenerating :file from other parameters seemed like too much magic.

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Eric Schulte
Bastien b...@gnu.org writes: Hi Aaron, Aaron Ecay aarone...@gmail.com writes: How does this sound as an algorithm: 1. if :file is present, behave exactly as we do now 2. if :file is absent but :file-ext and a #+name is present, generate a :file parameter from :output-dir, the #+name,

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Bastien b...@gnu.org writes: Assuming this is just difficult, not impossible, what would be the way to do it? The major difficulty is to keep an association table between headlines in the pristine original buffer, and headlines in the copy being exported. Note that hooks and Babel code may

Re: [O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-04-23 Thread Reuben Thomas
On 21 April 2014 20:00, Bastien b...@gnu.org wrote: Hi Reuben, Reuben Thomas r...@sc3d.org writes: 1. I customize org-file-apps's system command to be xdg-open %s, then customize the default command to be the system command. Please share the value of `org-file-apps' (C-h v org-file-apps

Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-23 Thread Skip Collins
On Tue, Apr 22, 2014 at 5:22 PM, Bastien b...@gnu.org wrote: Mhh... okay then, thanks for mentioning it. The stackoverflow link contains what appears to be a good workaround that functions in old and new versions of bash. Perhaps Pascal Fleury could modify the org code to avoid using 'declare

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread Bastien
jdavidb...@adboyd.com (J. David Boyd) writes: I've looked through all the latex, org-latex, org-beamer variables I can find with customize-apropos, but not having any luck. You can use the LaTeX geometry package: \usepackage[margin=0.25in]{geometry} HTH, -- Bastien

[O] setting left margin in PDF output of ORG file

2014-04-23 Thread J. David Boyd
I can export an org file to a PDF no problem, looks great. However, how do I get rid of the huge left and right and top and bottom margins? I like my PDFs to have no more than .75 top, bottom, left and right. I've looked through all the latex, org-latex, org-beamer variables I can find with

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Bastien
Hi, Eric Schulte schulte.e...@gmail.com writes: One option might be to borrow naming behavior from the comment functionality in ob-tangle which looks like the following (from line 426 in ob-tangle.el). Indeed, it's safer than just using the buffer file name. Aaron, please go ahead with the

Re: [O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-04-23 Thread Bastien
Hi Reuben, Reuben Thomas r...@sc3d.org writes: Value: ((auto-mode . emacs) (\\.mm\\' . default) (\\.x?html?\\' . default) (\\.pdf\\' . default) (t . xdg-open %s) (system . xdg-open %s)) What I've found is that, since .pdf documents can be opened in Emacs and since

Re: [O] observations on updating to recent org

2014-04-23 Thread Greg Troxel
Greg Troxel g...@ir.bbn.com writes: Exporting to ical as a single file took a really long time, perhaps a whole minute, whereas it used to take a second to a few seconds. The resulting export did seem ok. I timed this. With 6161 lines in 14 org-mode files (about 2175 of which are due

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Hello, Greg Troxel g...@ir.bbn.com writes: I timed this. With 6161 lines in 14 org-mode files (about 2175 of which are due to PROPERTIES/ID/END), doing a combined export took 88s of cpu time. emacs-23.4.1, NetBSD 6, i386, plenty of RAM, Core i5 2.9 GHz. In contrast, starting up emacs and

Re: [O] observations on updating to recent org

2014-04-23 Thread Greg Troxel
Nicolas Goaziou n.goaz...@gmail.com writes: Greg Troxel g...@ir.bbn.com writes: I timed this. With 6161 lines in 14 org-mode files (about 2175 of which are due to PROPERTIES/ID/END), doing a combined export took 88s of cpu time. emacs-23.4.1, NetBSD 6, i386, plenty of RAM, Core i5 2.9

Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-23 Thread Skip Collins
On Wed, Apr 23, 2014 at 10:13 AM, Pascal Fleury fle...@google.com wrote: (have not used bash3 in quite a long time :-) Even OS X Mavericks uses bash 3. So it will be around for quite a long time.

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Greg Troxel g...@ir.bbn.com writes: I guess that's an interesting question about what makes sense. Here's the actual todo entry, with just a few words redacted. I don't see why someone would want VEVENTS for this kind of history, but I suppose maybe that's what you get when you turn on

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread J. David Boyd
Bastien b...@gnu.org writes: jdavidb...@adboyd.com (J. David Boyd) writes: I've looked through all the latex, org-latex, org-beamer variables I can find with customize-apropos, but not having any luck. You can use the LaTeX geometry package: \usepackage[margin=0.25in]{geometry} HTH,

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread John Hendy
On Wed, Apr 23, 2014 at 11:59 AM, J. David Boyd jdavidb...@adboyd.com wrote: Bastien b...@gnu.org writes: jdavidb...@adboyd.com (J. David Boyd) writes: I've looked through all the latex, org-latex, org-beamer variables I can find with customize-apropos, but not having any luck. You can use

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread Nick Dokos
jdavidb...@adboyd.com (J. David Boyd) writes: Bastien b...@gnu.org writes: jdavidb...@adboyd.com (J. David Boyd) writes: I've looked through all the latex, org-latex, org-beamer variables I can find with customize-apropos, but not having any luck. You can use the LaTeX geometry package:

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread J. David Boyd
John Hendy jw.he...@gmail.com writes: On Wed, Apr 23, 2014 at 11:59 AM, J. David Boyd jdavidb...@adboyd.com wrote: Bastien b...@gnu.org writes: jdavidb...@adboyd.com (J. David Boyd) writes: I've looked through all the latex, org-latex, org-beamer variables I can find with

Re: [O] setting left margin in PDF output of ORG file

2014-04-23 Thread J. David Boyd
Nick Dokos ndo...@gmail.com writes: jdavidb...@adboyd.com (J. David Boyd) writes: Bastien b...@gnu.org writes: jdavidb...@adboyd.com (J. David Boyd) writes: I've looked through all the latex, org-latex, org-beamer variables I can find with customize-apropos, but not having any luck. You

Re: [O] observations on updating to recent org

2014-04-23 Thread Nicolas Goaziou
Nicolas Goaziou n.goaz...@gmail.com writes: Greg Troxel g...@ir.bbn.com writes: I didn't try to turn this on. My icalendar-relevant settings are (setq org-icalendar-alarm-time 10) (setq org-icalendar-use-scheduled nil) (setq org-icalendar-use-deadline nil) I am trying

Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-23 Thread Achim Gratz
Aaron Ecay writes: How does this sound as an algorithm: 1. if :file is present, behave exactly as we do now 2. if :file is absent but :file-ext and a #+name is present, generate a :file parameter from :output-dir, the #+name, and :file-ext. 3. If both :file and :file-ext are present, :file

Re: [O] [BUG] Cannot open load file: ob-sh

2014-04-23 Thread Achim Gratz
Bastien writes: Nick Dokos ndo...@gmail.com writes: Check local.mk for BTEST_OB_LANGUAGES: delete sh if present. Or rename sh to shell. No, delete it. There is no reason to include it there since it is automatically present when testing. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305

Re: [O] [RFC] Sloppy `org-element-context'?

2014-04-23 Thread Nicolas Goaziou
Hello, Bastien b...@gnu.org writes: I don't think `org-element-context' should be sloppy *at all*. [...] For example, on a comment, (eq 'comment (car (org-element-at-point))) *coughs* (eq 'comment (org-element-type (org-element-at-point))) should always return `t'. But if the user wants

Re: [O] (org-insert-headline '(4)) should insert new headline before point

2014-04-23 Thread Leonard Randall
Hi Bastien, I just wanted to report an issue with this fix. In many use cases it makes C-RET less useful, and renders the speedkeys command `i' useless. It makes C-RET function much like M-RET, and it makes `i' insert headlines before any content. So if I call C-RET in the middle of the following

Re: [O] (org-insert-headline '(4)) should insert new headline before point

2014-04-23 Thread Leonard Randall
Sorry, I should clarify that the C-RET functions as expected in the content of an entry, it is only problematic when it is called from the headline. All best, Leonard On 23 April 2014 22:42, Leonard Randall leonard.a.rand...@gmail.com wrote: Hi Bastien, I just wanted to report an issue with

[O] Trying to separate clocked time /ranges/ from scheduled times in a clean-ish view.

2014-04-23 Thread Brady Trainor
I can't see how to get a clean view of clocked time ranges. Not just the length of time, but the actual start and end times. I would like to share my attempts to give you an idea. If I include (org-agenda-start-with-log-mode '(closed clock state)) in my agenda block, then I can see

Re: [O] Export arrays for 'sh' code blocks when using bash

2014-04-23 Thread Eric Schulte
Skip Collins skip.coll...@gmail.com writes: On Wed, Apr 23, 2014 at 10:13 AM, Pascal Fleury fle...@google.com wrote: (have not used bash3 in quite a long time :-) Even OS X Mavericks uses bash 3. So it will be around for quite a long time. I believe Bash 4 is GPLv3 and Bash 3 is GPLv2, so

Re: [O] How do I chain babel blocks with arguments?

2014-04-23 Thread Eric Schulte
Alan Schmitt alan.schm...@polytechnique.org writes: Hi Eric, On 2014-04-22 13:30, Eric Schulte schulte.e...@gmail.com writes: Sorry, that's because the x should be z. See the following. #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+RESULTS: test3 :

Re: [O] Trying to separate clocked time /ranges/ from scheduled times in a clean-ish view.

2014-04-23 Thread Brady Trainor
On 4/23/2014 5:47 PM, Brady Trainor wrote: Day-agenda (W17): Wednesday 23 April 2014 agendatest: 7:45- 7:48 Clocked: (0:03) backflips:routine:: agendatest: 7:45- 7:50 Scheduled: backflips :routine:: agendatest: 7:48- 7:52 Clocked: (0:04) somersaults :routine::

[O] auto-roll-over of org-todo's?

2014-04-23 Thread Sharon Kimble
In my agenda I have several items I call my weeklies because they repeat weekly, this is one of them - --8---cut here---start-8--- Desert island discs - radio 2 @ 1100 SCHEDULED: 2014-04-27 Sun +7d --8---cut here---end---8---