Hi,
I'm glad part of the system is working.
I only have time for a short answer right now. I currently suspect that
the subtemplate caching in the include statement in the master template
is at fault.
See line 902 in srecode-insert.el, it has this in it.
(oset sti :includedtemplate tmpl)
If you comment out that code, recompile and restart does it resolve the
issue?
I'll be able to look into this in more detail later if it doesn't help.
This feature is actually key to what I've claimed is SRecode's power,
so I want to make sure this works!
Eric
On 02/18/2010 10:47 AM, nilitonilito nilitonilito wrote:
> Hi Eric,
>
> so I've added
>
> set project "/home/nilg/OpenCog/opencog"
>
> in ~/.srecode/my-srecode-templates.srt
>
> It works almost fine, that is when I open a file in my project directory
> it indeed uses the project template, however I had to add the empty
> template (identical to the default one), if there is only
>
> template header_guard :file :blank
> ----
> #ifndef _OPENCOG_{{FILENAME_SYMBOL:upcase}}
> #define _OPENCOG_{{FILENAME_SYMBOL:upcase}}
>
> {{^}}
>
> #endif // _OPENCOG_{{FILENAME_SYMBOL:upcase}}
> ----
>
> it is not called, de default one is called instead.
>
> I suspect it has something to do with the priority.
>
> Also you said "with default priority for any template file with a
> project setting being in between user templates, and system template"
>
> shouldn't project priority be higher than user priority?
>
> Nil
>
> > On 02/15/2010 01:14 PM, nilitonilito nilitonilito wrote:
> > > as far as I am concerned I'd rather have the project templates in a
> random place with the right keyword to associate it with a given project
> project. But certainly others may have different preferences.
> >
> > Hi,
> >
> > I've checked in changes to enable a "project" setting in a template
> > file. This also changed the priority setups, with default priority for
> > any template file with a project setting being in between user
> > templates, and system templates.
> >
> > You can set the project with a statement like this at the top:
> >
> > set project "/path/to/my/project"
> >
> > This sets up and is testing the basic infrastructure for filtering by
> > project match.
> >
> > The next step is to automatically find and setup the project directory
> > for template files via EDE, but with this infrastructure, it should be
> > possible to use right now.
> >
> > Good Luck
> > Eric
>
> ------------------------------------------------------------------------
> Avec Internet Explorer, surfez en toute discrétion sur internet Cliquez
> ici ! <http://clk.atdmt.com/FRM/go/182932252/direct/01/>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
>
>
>
> _______________________________________________
> Cedet-devel mailing list
> Cedet-devel@...
> https://lists.sourceforge.net/lists/listinfo/cedet-devel
|