From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Panteleev Subject: Re: [PATCH v2 0/3] org-sbe fixes Date: Sun, 25 Mar 2018 22:08:42 +0000 Message-ID: <89c7e868-bf96-d983-448d-df6e0059be92@gmail.com> References: <87605tc67l.fsf@nicolasgoaziou.fr> <20180319002314.8162-1-git@thecybershadow.net> <87woy7br6q.fsf@nicolasgoaziou.fr> <877epzaolf.fsf@nicolasgoaziou.fr> <87370namq9.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0Dom-0007Ng-SU for emacs-orgmode@gnu.org; Sun, 25 Mar 2018 18:08:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0Dok-0005NL-3f for emacs-orgmode@gnu.org; Sun, 25 Mar 2018 18:08:48 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:34472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0Doj-0005Mr-Tq for emacs-orgmode@gnu.org; Sun, 25 Mar 2018 18:08:46 -0400 Received: by mail-wm0-x229.google.com with SMTP id a20so14128880wmd.1 for ; Sun, 25 Mar 2018 15:08:45 -0700 (PDT) In-Reply-To: <87370namq9.fsf@nicolasgoaziou.fr> Content-Language: en-US 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: Nicolas Goaziou Cc: Alan Schmitt , emacs-orgmode@gnu.org Hi, On 2018-03-25 21:06, Nicolas Goaziou wrote: > I agree "org-sbe" should be rewritten. However, it is specific to tables > because it is meant to be used in a TBLFM line. Its replacement could > live in "org-table.el", though. What about org-sbe is specific to tables? I'm thinking that the generic replacement could be used elsewhere, e.g.: (with-current-buffer some-org-mode-buffer (org-sbe-v2 "func" ...args...)) The main obstacle preventing using the current org-sbe in this manner is that it is a macro, and will eagerly evaluate some things that it shouldn't. -- Best regards, Vladimir