From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: switch parsing in babel Date: Mon, 28 Mar 2016 11:04:00 +0200 Message-ID: <87wponq8hr.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akT3d-0007Zk-Le for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 05:02:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akT3a-0005ky-Fz for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 05:01:57 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:39945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akT3a-0005kr-9P for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 05:01:54 -0400 In-Reply-To: (John Kitchin's message of "Sun, 27 Mar 2016 19:17:40 -0400") 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: John Kitchin Cc: Org Mode Mailing List 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? Regards, -- Nicolas Goaziou