emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] switch parsing in babel


From: Nicolas Goaziou
Subject: Re: [O] switch parsing in babel
Date: Mon, 28 Mar 2016 11:04:00 +0200

Hello,

John Kitchin <address@hidden> writes:

> I am trying to make a new source block that looks like this:
>
> #+BEGIN_SRC obabel -icml -osmi
> [CH4]
> #+END_SRC
>
> This gets parsed to:
>
> (src-block
>  (:language "obabel" :switches "-i" :parameters "cml -osmi" :begin
> 190 :end 240 :number-lines nil :preserve-indent t :retain-labels
> t :use-labels t :label-fmt nil :hiddenp nil :value "[CH4]
> \n" :post-blank 1 :post-affiliated 190 :parent nil))
>
> Is that correct? I would have thought that 
> 1. The first switch should be -icml
> 2. -osmi would also be a switch.

This is incorrect, but not in the way you think.

There is no concatenation for switches in Org syntax, so it should be
parsed as

  :switches nil :parameters -icml -osmi

which looks wrong anyway.

Maybe you're simply mis-using switches here, which are reserved to Org?


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]