[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] macro with inline source does not work in table cells
From: |
kabriel |
Subject: |
[O] macro with inline source does not work in table cells |
Date: |
Tue, 10 Apr 2018 14:09:14 -0400 |
User-agent: |
mu4e 0.9.18; emacs 25.3.1 |
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
- [O] macro with inline source does not work in table cells,
kabriel <=