Hi
Now I have updated to head - It works, but I was a bit confused that the Mac
macro didn't expand ... forgot to read my old post :)
> BUT I have an (theoretical) issue: macros defined in included files
> (In this case the macro Mac that is defined in sub.org don't work in
> sub.org. ... This is
Hi Benny,
Benny Simonsen writes:
> I have a patch that will expand macros in included files.
> Inclusion is performed before macro expansion
Thanks for this patch, it looks good to me.
Can someone test it and report any problems?
Thanks!
--
Bastien
Applied, thanks.
- Carsten
On Mar 14, 2011, at 11:01 PM, Benny Simonsen wrote:
> Hi
>
> Some time ago I was posting about a problem with macros in included
> files - they will not expand.
>
> Example with two files top.org and sub.org: macro in the included file
> sub.org isn't expanded during
Hi
Some time ago I was posting about a problem with macros in included
files - they will not expand.
Example with two files top.org and sub.org: macro in the included file
sub.org isn't expanded during export.
See the content of the example files below.
The patch fixes this so that the macro is
2011/3/5 Sébastien Vauban :
> Hi Benny,
>
> Benny Simonsen wrote:
>> 2011/3/2 Benny Simonsen :
>>> I would like to use macros in files that I include in another file.
>>> The problem is that the macros don't expand in included files. Is
>>> there something I have missed or?
>>>
>>> Example with two
Hi Benny,
Benny Simonsen wrote:
> 2011/3/2 Benny Simonsen :
>> I would like to use macros in files that I include in another file.
>> The problem is that the macros don't expand in included files. Is
>> there something I have missed or?
>>
>> Example with two files, main.org and sub.org
>>
>> = ma
2011/3/2 Benny Simonsen :
> Hi
>
> I would like to use macros in files that I include in another file.
> The problem is that the macros don't expand in included files. Is
> there something I have missed or?
>
> Example with two files, main.org and sub.org
>
> = main.org START
> #+TITLE: Ma
2011/3/3 Sébastien Vauban :
> Hi Benny,
>
> Benny Simonsen wrote:
>> The result is {{{MacM(Main)}}} is expanded as expected but the
>> {{{Mac*(Sub)}}} isn't expanded.
>
> What's Mac*?
>
> In your example, you just have MacM and Mac...
MacM is the macro defined in main.org:
#+MACRO: MacM @$1@
and
Hi Benny,
Benny Simonsen wrote:
> The result is {{{MacM(Main)}}} is expanded as expected but the
> {{{Mac*(Sub)}}} isn't expanded.
What's Mac*?
In your example, you just have MacM and Mac...
Best regards,
Seb
--
Sébastien Vauban
--
Emacs-orgmode mailing list
Please use `Reply All' to send
Hi
I would like to use macros in files that I include in another file.
The problem is that the macros don't expand in included files. Is
there something I have missed or?
Example with two files, main.org and sub.org
= main.org START
#+TITLE: Mainpage
#+MACRO: MacM @$1@
{{{MacM(Main)}}}
Hi
I would like to use macros in files that I include in another file.
The problem is that the macros don't expand in included files. Is
there something I have missed or?
Example
main.org:
= main.org START
#+TITLE: Mainpage
#+MACRO: MacM @$1@
{{{MacM(Main)}}}
#+INCLUDE: "sub.org"
= mai
11 matches
Mail list logo