finding the overriding body for an overloadable function.

Stephen Leake <[email protected]> Fri, 14 Aug 2015 15:49:23 -0500
Newsgroups gmane.emacs.semantic
Message-ID <[email protected]>
I'm trying to understand how Semantic parses an elisp buffer. In
particular, I want it to parse the code near point, to tell me whether
the identifier at point is a variable or a function or something else.
Currently, it seems to only parse the top level forms, skipping over
their bodies.

I tried looking in the Semantic manuals, but I didn't see anything
relevant. So I'm taking my usual approach of tracing the code with
edebug.

However, I'm stumped by '(define-overloadable-function
semantic-parse-region'

I can't get edubug to step into that, and I can't figure out what
mode-local-* function to call to get the actual body for elisp mode.

So I have no idea what code is actually parsing the elisp buffer.
Something is; it returns a list of tags (not containing the info I
need).

Once I do figure out how to find overriding bodies, perhaps I can add it
to the list produced by xref-find-definitions in Emacs master; that
would be useful.

Please help.

-- 
-- Stephe

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