Eric M. Ludlam | 4 Jan 2005 02:58
Gravatar

Re[2]: Bug in semantic-el.el and a nifty new parser for defalias

>>> David PONCE <david.ponce <at> wanadoo.fr> seems to think that:
>> Finally not duplicating the arglist in the tag will not unnecessarily
>> increase the size of the tags database, and should please Eric ;)
>
>I forgot to say that we could enhance the function
>`semantic-tag-function-arguments' with your code to extract the
>arglist of the aliased function when the :definition attribute is
>non-nil.
>
>Eric, any thoughts?

Hi,

  Fixing defstruct parsing sounds like a good idea.  I'm not surprised
it was broken as I probably never tested it.

  C has something like an alias that you can declare in a "typedef",
and it is a special kind of type which is the type it is aliasing
through the "parent" slot.

  A function being aliased will not always be loaded into Emacs for
the finding so it may be unreliable to attempt any extra extraction.
It may be best to postpone such searching till later for other reasons
as well.  For example with these definitions:

Emacs Lisp:
  (defalias 'newsym 'oldsym "why an alias")
  (defalias 'newsym (lambda (a) "Say what?") "What say?")

C:
(Continue reading)


Gmane