[O] Tangling src blocks to files as part of export

2014-11-13 Thread Michael Weylandt
Is it possible to have certain blocks tangled as part of export so that they are available as input files to later source blocks? E.g., #+BEGIN_SRC python :tangle hello.py print Hello World #+END_SRC #+BEGIN_SRC sh python hello.py #+END_SRC If I tangle before running, then the second code

Re: [O] Tangling src blocks to files as part of export

2014-11-13 Thread Michael Weylandt
On Nov 13, 2014, at 10:54 AM, Michael Weylandt michael.weyla...@gmail.com wrote: Is it possible to have certain blocks tangled as part of export so that they are available as input files to later source blocks? E.g., #+BEGIN_SRC python :tangle hello.py print Hello World #+END_SRC

Re: [O] [PATCH] Empty inline tasks in latex export

2014-05-16 Thread Michael Weylandt
On May 16, 2014, at 4:39, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, R. Michael Weylandt michael.weyla...@gmail.com writes: If the body if the inline task is empty, org-latex-inlinetask writes nil in the exported document. This patch skips including contents (and the bar above

[O] [PATCH] Empty inline tasks in latex export

2014-05-15 Thread R. Michael Weylandt
If the body if the inline task is empty, org-latex-inlinetask writes nil in the exported document. This patch skips including contents (and the bar above it) if it's nil. Michael 0001-Handle-empty-tasks-without-printing-nil-in-org-latex.patch Description: Binary data

Re: [O] :mkdirp without path specifier

2014-05-03 Thread R. Michael Weylandt
On Sat, May 3, 2014 at 4:19 AM, Achim Gratz strom...@nexgo.de wrote: R. Michael Weylandt writes: ;; Possibly create the parent directories for file. (when (let ((m (funcall get-spec :mkdirp))) (and m (not (string= m

Re: [O] :mkdirp without path specifier

2014-05-02 Thread R. Michael Weylandt
On Thu, May 1, 2014 at 3:47 PM, Michael Weylandt michael.weyla...@gmail.com wrote: If it intended that setting :mkdirp yes should break tangling with 'directory-free' file names? I.e., should # #+TITLE: test #+BEGIN_SRC python :mkdirp yes :tangle test.py print 1+2 #+END_SRC

Re: [O] :mkdirp without path specifier

2014-05-02 Thread R. Michael Weylandt
On Fri, May 2, 2014 at 11:43 PM, R. Michael Weylandt michael.weyla...@gmail.com wrote: Patch attached. Should apply cleanly against master and maint. Bah, botched the formatting. Attached should be fixed. 0001-Fix-tangle-with-mkdirp-yes-tangle-FILE.patch Description: Binary data

[O] :mkdirp without path specifier

2014-05-01 Thread Michael Weylandt
If it intended that setting :mkdirp yes should break tangling with 'directory-free' file names? I.e., should # #+TITLE: test #+BEGIN_SRC python :mkdirp yes :tangle test.py print 1+2 #+END_SRC ### tangle without error? It currently doesn't because (file-name-directory

Re: [O] Prepare release 8.2.6

2014-04-13 Thread R. Michael Weylandt
On Thu, Apr 10, 2014 at 10:43 PM, Eric Schulte schulte.e...@gmail.com wrote: I just tried to apply the second patch, but it no longer applies (with git am) to the Org-mode repo. Would you mind sending along an updated version? Hi Eric, The attached should apply cleanly against master.

Re: [O] Prepare release 8.2.6

2014-04-06 Thread R. Michael Weylandt
On Sat, Apr 5, 2014 at 3:27 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Would you mind adding a commit message, TINYCHANGE at its end, and send it again with git format-patch? Hi Nicolas, Thanks for taking the time to review my patches (2 attached): hopefully these are formatted to

Re: [O] Prepare release 8.2.6

2014-04-06 Thread R. Michael Weylandt
On Sat, Apr 5, 2014 at 3:18 PM, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, R. Michael Weylandt michael.weyla...@gmail.com writes: 1) Tell Emacs not to break inline source blocks when filling paragraphs: I suggest not to use `org-in-regexp' here but `org-element-context'. I'm

Re: [O] Prepare release 8.2.6

2014-04-05 Thread R. Michael Weylandt
On Fri, Apr 4, 2014 at 7:51 AM, Michael Weylandt michael.weyla...@gmail.com wrote: On Apr 3, 2014, at 2:37, Bastien b...@gnu.org wrote: Hi all, I'll try to fix a few remaining bugs in maint this afternoon then release 8.2.6 so that we can merge it into Emacs emacs-24 branch, the pretest

Re: [O] Prepare release 8.2.6

2014-04-05 Thread R. Michael Weylandt
On Fri, Apr 4, 2014 at 10:32 AM, Michael Weylandt michael.weyla...@gmail.com wrote: On Apr 3, 2014, at 2:37, Bastien b...@gnu.org wrote: Hi all, I'll try to fix a few remaining bugs in maint this afternoon then release 8.2.6 so that we can merge it into Emacs emacs-24 branch, the pretest

Re: [O] Prepare release 8.2.6

2014-04-04 Thread Michael Weylandt
On Apr 3, 2014, at 2:37, Bastien b...@gnu.org wrote: Hi all, I'll try to fix a few remaining bugs in maint this afternoon then release 8.2.6 so that we can merge it into Emacs emacs-24 branch, the pretest is scheduled to happen as soon as possible. If you have important bugs you want

Re: [O] Prepare release 8.2.6

2014-04-04 Thread Michael Weylandt
On Apr 3, 2014, at 2:37, Bastien b...@gnu.org wrote: Hi all, I'll try to fix a few remaining bugs in maint this afternoon then release 8.2.6 so that we can merge it into Emacs emacs-24 branch, the pretest is scheduled to happen as soon as possible. If you have important bugs you want

[O] PATCH -- allow user to set minted style

2014-04-04 Thread Michael Weylandt
Here's a small patch which allows the user to set the Minted highlighting style for latex export. This requires a different mechanism than org-latex-minted-options since it's a global/preamble option. Apologies for the badly formatted patch. I'm not at my own computer and wanted to give

Re: [O] PATCH -- allow user to set minted style

2014-04-04 Thread Michael Weylandt
On Apr 4, 2014, at 14:46, Nicolas Goaziou n.goaz...@gmail.com wrote: Hello, Michael Weylandt michael.weyla...@gmail.com writes: This requires a different mechanism than org-latex-minted-options since it's a global/preamble option. Since it's a global/preamble option, you can include

Re: [O] PATCH -- allow user to set minted style

2014-04-04 Thread Michael Weylandt
On Apr 4, 2014, at 16:24, Nicolas Goaziou n.goaz...@gmail.com wrote: Michael Weylandt michael.weyla...@gmail.com writes: - The minted style isn't passed as a package option so I'm not sure how org-latex-packages-alist helps. You can add a string at the end of `org-latex-packages-alist

[O] Org-set-repeat

2014-04-01 Thread R. Michael Weylandt
I see that Org provides a `org-cancel-repeater` and `org-get-repeat` but I don't see a `org-set-repeat` (or function which can be made to do so). Is there something like that that I've missed or should I write a wrapper around `org-deadline`? Michael

Re: [O] verbatim/code text and line breaks with auto fill mode

2014-03-24 Thread Michael Weylandt
On Mar 18, 2014, at 18:35, Michael Weylandt michael.weyla...@gmail.com wrote: On Mar 8, 2014, at 7:12, Alan Schmitt alan.schm...@polytechnique.org wrote: I've continued looking into this, and it seems that what I want is use `fill-nobreak-predicate'. This is what I ended up doing

Re: [O] Out of Order Evaluation

2014-03-21 Thread Michael Weylandt
On Mar 20, 2014, at 21:34, Charles Berry ccbe...@ucsd.edu wrote: Andreas Leha andreas.leha at med.uni-goettingen.de writes: Hi Michael, Michael Weylandt michael.weylandt at gmail.com writes: Hi, I want to put a summary of my analysis at the beginning of a document using results

[O] Out of Order Evaluation

2014-03-20 Thread Michael Weylandt
Hi, I want to put a summary of my analysis at the beginning of a document using results calculated at the end of the document. Is this possible? #= #+TITLE: Test #+AUTHOR: Michael Weylandt #+PROPERTY: header-args:R :session *__R__* :exports both * Summary The mean result was src_R

Re: [O] Incorrect hexification in URLs in LaTeX Export

2014-03-19 Thread R. Michael Weylandt michael.weyla...@gmail.com
On Mar 18, 2014, at 17:24, R. Michael Weylandt michael.weyla...@gmail.com wrote: Can't comment on Andreas's issue about unescaping text when it's given to org already escaped. Hi Bastien, TLDR: remove ?\= from org-link-escape-chars. I looked at this again and I think I've stumbled

Re: [O] Incorrect hexification in URLs in LaTeX Export

2014-03-18 Thread R. Michael Weylandt michael.weyla...@gmail.com
On Mar 18, 2014, at 11:41, Bastien b...@gnu.org wrote: Hi Andreas, Andreas Leha andreas.l...@med.uni-goettingen.de writes: The second link is not clickable in the resulting pdf. This should be fixed now, thanks. Hi Bastien, I just tried with 35f27a1fe and my issue is fixed. (The one

Re: [O] Converting to a useful table in org-mode?

2014-03-18 Thread Michael Weylandt
On Mar 18, 2014, at 20:39, Sharon Kimble boudic...@talktalk.net wrote: I have this list of books that I've read on my kindle which I now want to store for posterity in org-mode. (OT thus sounds more like tasks/checklists to me) 24-11-13 - Andrew Lane - young sherlock Holmes, fire storm

Re: [O] Org-link-escape-chars (was Incorrect hexification in URLs in LaTeX Export)

2014-03-05 Thread R. Michael Weylandt
On Tue, Mar 4, 2014 at 3:45 PM, Simon Thum simon.t...@gmx.de wrote: This seems to be a question of objective. Do you want to encode, i.e. maintain some reversible original in an url no matter what, or do you want to fix url's which wouldn't otherwise be legal? In the latter case, the question

[O] Odd interaction with Python sessions and Org 8.2.5

2014-03-05 Thread R. Michael Weylandt
Hi, I'm having trouble getting clean output from org 8.2.5 when I combine session based evaluation and capturing results from standard out. (See first example below) This is on Emacs 24.3 with the default python mode settings and nothing relevant in my init.el except for activating python

[O] Org-link-escape-chars (was Incorrect hexification in URLs in LaTeX Export)

2014-03-03 Thread R. Michael Weylandt michael.weyla...@gmail.com
On Feb 28, 2014, at 15:26, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: R. Michael Weylandt michael.weyla...@gmail.com michael.weyla...@gmail.com writes: I've tried this with Org 7.9.3 and 8.2.5h to the same result: -- #+TITLE: Test * One Here

[O] Incorrect hexification in URLs in LaTeX Export

2014-02-28 Thread R. Michael Weylandt michael.weyla...@gmail.com
I've tried this with Org 7.9.3 and 8.2.5h to the same result: -- #+TITLE: Test * One Here is a [[http://google.com/search?q=orgmode][link]] -- Exporting to HTML doesn't transform the link but exporting to LaTeX results in the (non-working)

Re: [O] Accessing #+EMAIL in LaTeX Export

2014-02-04 Thread R. Michael Weylandt
On Tue, Feb 4, 2014 at 12:54 AM, Nick Dokos ndo...@gmail.com wrote: R. Michael Weylandt michael.weyla...@gmail.com writes: HI, I'm writing a latex export class which has an \email macro. Is it possible to autofill this macro using the #+EMAIL: property? Looking at ox-latex.el, it seems

Re: [O] Accessing #+EMAIL in LaTeX Export

2014-02-04 Thread R. Michael Weylandt michael.weyla...@gmail.com
On Feb 4, 2014, at 12:31, Nick Dokos ndo...@gmail.com wrote: Nick Dokos ndo...@gmail.com writes: R. Michael Weylandt michael.weyla...@gmail.com writes: I want org-mode to export to the amsart class by default. In addition to the regular \title, \author, \date macros, amsart also allows

[O] Accessing #+EMAIL in LaTeX Export

2014-02-03 Thread R. Michael Weylandt
HI, I'm writing a latex export class which has an \email macro. Is it possible to autofill this macro using the #+EMAIL: property? Looking at ox-latex.el, it seems that email is hardcoded to be placed in \thanks{} but there might be a hook I'm missing. I thought that using a {{{ email }}} macro

[O] Ox-HTML hover for certain languages

2013-10-21 Thread R. Michael Weylandt michael.weyla...@gmail.com
Around line 270 of Ox-html.el, there's CSS which gives certain code blocks in the resulting HTML a hover-over window saying what language they encode. Not all Babel-supported languages appear however: is there any reason for this? (E.g. perl is hard-coded but no python) I suppose one could

Re: [O] org-grep, and problems

2013-10-13 Thread R. Michael Weylandt michael.weyla...@gmail.com
On Oct 10, 2013, at 11:50, Fran├žois Pinard pin...@iro.umontreal.ca wrote: P.S. What is proper English: nobody remember or nobody remembers? Remembers. 'Nobody' counts as singular, as does 'no one'. English isn't totally consistent on this matter, however, as 'none' takes a plural verb.