From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH 1/3] ob-table: Fix org-sbe's handling of quotes in arguments Date: Tue, 13 Mar 2018 00:15:34 +0100 Message-ID: <87muzcans9.fsf@nicolasgoaziou.fr> References: <20180307225847.24068-1-git@thecybershadow.net> <20180307225847.24068-2-git@thecybershadow.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evWfM-0003UT-Ac for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 19:15:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evWfJ-0003zT-69 for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 19:15:40 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:57763) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1evWfJ-0003xw-0U for emacs-orgmode@gnu.org; Mon, 12 Mar 2018 19:15:37 -0400 In-Reply-To: <20180307225847.24068-2-git@thecybershadow.net> (Vladimir Panteleev's message of "Wed, 7 Mar 2018 22:58:45 +0000") 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" To: Vladimir Panteleev Cc: emacs-orgmode@gnu.org Hello, Vladimir Panteleev writes: > * ob-table.el (org-sbe): (org-sbe func (x $ "a\"b\"c")) did the wrong The dollar character looks strange. What syntax is that? > - (quote (format "\"%s\"" el)) > + (quote (format "%S" el)) OK. > +#+name: identity > +#+begin_src emacs-lisp :eval yes > + x > +#+end_src" > + (should (equal "a\"b\"c" > + (eval '(org-sbe identity (x $ "a\"b\"c"))))))) Why `eval'? Why not simply (org-sbe identity (x ...)) ? Regards, -- Nicolas Goaziou