Re: Wisent:

Eric Ludlam <[email protected]> Fri, 28 Aug 2015 00:04:40 -0400
Newsgroups gmane.emacs.semantic
Message-ID <CACXnnKMp0CpXR6XSZW2Z-pzxDp2D85s=4W72D2aR2TZq7Sp0PA@mail.gmail.com>
Hi,

The function you want to overload is semantic-tag-include-filename.  It
doesn't need any paths.  It's only job is to convert a string into
something file compatible.  For example the java tag:

Import java.thing.Thing;

Should convert to:

"java/thing/Thing.java"

It is the job of other routines to find the full path when it is needed,
such as when it tried to parse the includes.  Those tools handle caching
and saving.  It your system uses paths the same way as c, then you
shouldn't need to do anything else.

Your other troubles are less clear from the email.  I can't really help
debug until I get my computer back.

Eric
On Aug 25, 2015 6:54 PM, "Andrea Turso" <[email protected]> wrote:

> Hi Eric,
>
> About the includes, I have tried many times to parse them via the context
> menu option but it doesn't work.
>
> I visited one of those buffers and waited for the parser to pick it up,
> then figured that the semanticdb-save-db would do something, but after M-x
> semantic-save-db I got this message "cl-no-applicable-method: No applicable
> method for %S: semanticdb-save-db, nil".
>
> Well, that doesn't keep me from playing with the grammar, but my only
> worry is that this might in fact be caused by the current state of things.
>
> I'm resolving includes as absolute paths. Do you think this might be
> confusing Ede and in turn SemanticDB?
>
> About the mode local function to convert a filename
> (semantic-analyze-split-name) I'm currently wondering whether I'll be able
> to have access about certain tags at the time of the call. In particular
> I'll need the declaration of a 'package tag, I guess I can use
> semantic-find-tags-by-class to check the parsed data?
>
> I have a link to the lang dev guide, is pretty good and that's what I used
> to get started, unfortunately many of the functions cited there aren't
> available with Semantic builtin to Emacs 25, so I figure they are either
> deprecated or only available in the latest CEDET 2?
>
> Your help here is greatly appreciated, thanks for answering my many
> questions in this accidentally untitled thread.
>
> Thanks,
> Andrea.
>

------------------------------------------------------------------------------

_______________________________________________
cedet-semantic mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-semantic