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 > 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 > p

[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 bl

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

2014-05-16 Thread Michael Weylandt
On May 16, 2014, at 4:39, Nicolas Goaziou wrote: > Hello, > > "R. Michael Weylandt" 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 a

[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 wrote: > R. Michael Weylandt writes: >> ;; Possibly create the parent directories for file. >> (when (let ((m (funcall get-spec :mkdirp))) >>(and

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 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

Re: [O] :mkdirp without path specifier

2014-05-02 Thread R. Michael Weylandt
On Thu, May 1, 2014 at 3:47 PM, Michael Weylandt 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

[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 "t

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 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. Michael 0001-Keyb

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 wrote: > Hello, > > "R. Michael Weylandt" 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'

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 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 org standards

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 wrote: > > > On Apr 3, 2014, at 2:37, Bastien 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 >

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 wrote: > > > On Apr 3, 2014, at 2:37, Bastien 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 pretes

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

2014-04-04 Thread Michael Weylandt
On Apr 4, 2014, at 16:24, Nicolas Goaziou wrote: > Michael Weylandt 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'

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

2014-04-04 Thread Michael Weylandt
On Apr 4, 2014, at 14:46, Nicolas Goaziou wrote: > Hello, > > Michael Weylandt 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

[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 Bast

Re: [O] Prepare release 8.2.6

2014-04-04 Thread Michael Weylandt
On Apr 3, 2014, at 2:37, Bastien 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 us to l

Re: [O] Prepare release 8.2.6

2014-04-04 Thread Michael Weylandt
On Apr 3, 2014, at 2:37, Bastien 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 us to l

[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" wrote: > > On Mar 8, 2014, at 7:12, Alan Schmitt 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 wrote: > Andreas Leha med.uni-goettingen.de> writes: > >> >> Hi Michael, >> >> Michael Weylandt gmail.com> writes: >> >>> Hi, >>> >>> I want to put a summary of my analysis a

[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
On Mar 18, 2014, at 17:24, "R. Michael Weylandt" 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

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 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 > 3-12-13 - Richma

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

2014-03-18 Thread R. Michael Weylandt
On Mar 8, 2014, at 7:12, Alan Schmitt wrote: > Nick Dokos writes: > >> Alan Schmitt writes: >> >>> Hello, >>> >>> Is there a way to disable line breaks inside verbatim or code text when >>> using auto fill? For instance, if I type the following: >>> >>> This is an example of a long line w

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

2014-03-18 Thread R. Michael Weylandt
On Mar 18, 2014, at 11:41, Bastien wrote: > Hi Andreas, > > Andreas Leha 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 about the hexifying of a valid chara

[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 support

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 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 mark should pr

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

2014-03-03 Thread R. Michael Weylandt
On Feb 28, 2014, at 15:26, Andreas Leha wrote: > "R. Michael Weylandt " > writes: > >> I've tried this with Org 7.9.3 and 8.2.5h to the same result: >> >> <--> >> #+TITLE: Test >> *

[O] Incorrect hexification in URLs in LaTeX Export

2014-02-28 Thread R. Michael Weylandt
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) http://googl

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

2014-02-04 Thread R. Michael Weylandt
On Feb 4, 2014, at 12:31, Nick Dokos wrote: > Nick Dokos writes: > >> "R. Michael Weylandt" writes: >> >>> I want org-mode to export to the "amsart" class by default. In >>> addition to the regular \title, \author, \date macros, a

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 wrote: > "R. Michael Weylandt" 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? >> Looki

[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
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 pull

Re: [O] org-grep, and problems

2013-10-13 Thread R. Michael Weylandt
On Oct 10, 2013, at 11:50, François Pinard 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. No one is brave