Re: [O] Macro expansion in included files

2011-08-30 Thread Benny Simonsen
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

Re: [O] Macro expansion in included files

2011-06-30 Thread Bastien
Hi Benny, Benny Simonsen be...@slbs.dk 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

Re: [O] Macro expansion in included files

2011-04-08 Thread Carsten Dominik
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

[O] Macro expansion in included files

2011-03-14 Thread Benny Simonsen
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

Re: [O] Macro expansion in included files

2011-03-05 Thread Benny Simonsen
2011/3/2 Benny Simonsen be...@slbs.dk: 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

Re: [O] Macro expansion in included files

2011-03-05 Thread Sébastien Vauban
Hi Benny, Benny Simonsen wrote: 2011/3/2 Benny Simonsen be...@slbs.dk: 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 =

Re: [O] Macro expansion in included files

2011-03-05 Thread Benny Simonsen
2011/3/5 Sébastien Vauban wxhgmqzgw...@spammotel.com: Hi Benny, Benny Simonsen wrote: 2011/3/2 Benny Simonsen be...@slbs.dk: 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

Re: [O] Macro expansion in included files

2011-03-03 Thread 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... Best regards, Seb -- Sébastien Vauban -- Emacs-orgmode mailing list Please use `Reply All' to send

Re: [O] Macro expansion in included files

2011-03-03 Thread Benny Simonsen
2011/3/3 Sébastien Vauban wxhgmqzgw...@spammotel.com: 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:

[O] Macro expansion in included files

2011-03-02 Thread 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: Mainpage #+MACRO: MacM @strong$1@/strong

[O] Macro expansion in included files

2011-03-01 Thread 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 main.org: = main.org START #+TITLE: Mainpage #+MACRO: MacM @strong$1@/strong {{{MacM(Main)}}} #+INCLUDE: