From mboxrd@z Thu Jan 1 00:00:00 1970 From: kabriel@3imail.com Subject: macro with inline source does not work in table cells Date: Tue, 10 Apr 2018 14:09:14 -0400 Message-ID: <877epfx7at.fsf@3imail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5xif-0006iL-Mf for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 14:10:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5xic-0007rF-Hz for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 14:10:13 -0400 Received: from glow.birch.relay.mailchannels.net ([23.83.209.71]:17148) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f5xic-0007Zi-9C for emacs-orgmode@gnu.org; Tue, 10 Apr 2018 14:10:10 -0400 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 2EFC3123355 for ; Tue, 10 Apr 2018 18:09:23 +0000 (UTC) Received: from a2ss24.a2hosting.com (unknown [100.96.33.32]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id C9F6A122B4D for ; Tue, 10 Apr 2018 18:09:22 +0000 (UTC) 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: emacs-orgmode@gnu.org Cc: kabriel@3imail.com Hi, I have defined a macro that uses an emacs-lisp inline source code. It works fine in all the usual places, except table cells. A more standard macro (that does not use a source code block) works fine. I have tried looking through the source code in the exporter, but cannot quite figure out why this isn't working. Would anyone have an idea of how to get the expected behavior? Below is an example. <<< begin example org-mode file>>> * Test: macro fails in table cell #+MACRO: kw src_emacs-lisp[:exports results :results raw]{(concat "=" (upcase "$1") "=")} #+MACRO: ku =$1= Try "hello {{{kw(world)}}}," but let's put it in a table [[tab:eg]] #+NAME: tab:eg #+CAPTION: Test table with "hello {{{kw(world)}}}" | Statement | Object | |------------+-----------------| | hello | {{{kw(world)}}} | | this macro | {{{ku(works)}}} | <<< end >>> Org mode version 9.1.1 (9.1.1-17-g24ea1b-elpaplus) GNU Emacs 25.3.1 -- Kabriel