Re: [O] macro replacement in code block?

2017-11-01 Thread Kaushal Modi
On Wed, Nov 1, 2017 at 1:32 PM David Rogoff wrote: > Thanks so much. It sort of works but with a bit of work-around: > Great! > 2) for export, I had to move the > > ,#+MACRO: SEC_FOO > > lines out of the code block. If I didn’t and tried to eval that block, I > got the error > >No org-ba

Re: [O] macro replacement in code block?

2017-11-01 Thread David Rogoff
Thanks so much. It sort of works but with a bit of work-around: 1) tangle works fine 2) for export, I had to move the > ,#+MACRO: SEC_FOO lines out of the code block. If I didn’t and tried to eval that block, I got the error No org-babel-execute function for org! But I think this will d

Re: [O] macro replacement in code block?

2017-11-01 Thread Kaushal Modi
On Wed, Nov 1, 2017 at 11:51 AM Kaushal Modi wrote: > I still don't have a fully working solution (see below). Hopefully someone > can help figure out the reason for "Invalid read syntax: #" error. > OK, I found a workaround. Below solution works: 1. Eval the =org-macros= block once (=C-c C-c=)

Re: [O] macro replacement in code block?

2017-11-01 Thread Kaushal Modi
On Tue, Oct 31, 2017 at 11:21 PM David Rogoff wrote: > Thanks - I’ll have to look into noweb. I’m not familiar with it. > This turned out to be much complicated than I expected.. I still don't have a fully working solution (see below). Hopefully someone can help figure out the reason for "Inva

Re: [O] macro replacement in code block?

2017-10-31 Thread David Rogoff
> On Oct 31, 2017, at 5:32 PM, Kaushal Modi wrote: > > On Tue, Oct 31, 2017, 7:14 PM David Rogoff > wrote: > Hi. > > Hello. > > I’m trying to clean it up by using orgmode macros. However, it seems like > these are not replaced when inside code blocks. > > D

Re: [O] macro replacement in code block?

2017-10-31 Thread Kaushal Modi
On Tue, Oct 31, 2017, 7:14 PM David Rogoff wrote: > Hi. > Hello. I’m trying to clean it up by using orgmode macros. However, it seems like > these are not replaced when inside code blocks. > Do you have a minimal example of what you'd like to "macrofy" in the verilog code blocks? Probably t

[O] macro replacement in code block?

2017-10-31 Thread David Rogoff
Hi. Trying to set up a large orgmode file with source code for several files that is extracted using tangle and also exported to HTML for documentation (source is verilog-mode). It works but I’m trying to clean it up by using orgmode macros. However, it seems like these are not replaced when