From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: switch parsing in babel Date: Mon, 28 Mar 2016 08:36:22 -0400 Message-ID: References: <87wponq8hr.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akWPF-0007qy-8I for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 08:36:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akWPB-0004Dd-RV for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 08:36:29 -0400 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:34311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akWPB-0004D8-Mt for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 08:36:25 -0400 Received: by mail-qg0-x22b.google.com with SMTP id c67so73367789qgc.1 for ; Mon, 28 Mar 2016 05:36:25 -0700 (PDT) In-reply-to: <87wponq8hr.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org Mode Mailing List Nicolas Goaziou writes: > Hello, > > John Kitchin 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? It could be. I get it now, I was looking at http://orgmode.org/guide/Working-With-Source-Code.html #+NAME: #+BEGIN_SRC
#+END_SRC and I just noticed that " can be used to control export of the code block" which isn't what I was trying to do with it. > > > Regards, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu