[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-lisp-mode and find-tag

From: Stefan Monnier
Subject: Re: emacs-lisp-mode and find-tag
Date: Fri, 20 Jun 2014 21:08:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

>> `find-tag-definition-functions`
>> This should hold functions of one argument (a string)
> As I remarked in the bug report, the tag name alone is not
> sufficient for Semantic, because it considers the code
> surrounding the tag.

Very good point.  So either we limit it to "find def of thing-at-point",
or we need to have a "get thing at point" plus "find def of thing".
Splitting the two is tricky because different backends will want to
represent their "thing" differently, so the thing returned by one
backend's "get thing at point" won't be accepted by the "find def of
thing" of other backends.

Yet, the separation would be useful for things like company-mode
which want to let you jump to the definition of a completion candidate
(i.e. a "tag" which is not in the buffer).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]