[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generalizing find-definition
From: |
Stephen Leake |
Subject: |
Re: Generalizing find-definition |
Date: |
Fri, 12 Dec 2014 05:15:02 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) |
Stefan Monnier <address@hidden> writes:
>> If identifier is restricted to just the string, ada-mode needs a
>> guarantee that xref-find-definitions will be called with current-buffer
>> the same as the buffer containing the string, and point in the same
>> place, so the backend can determine the file, line, column.
>
> That's the idea behind using the value t as an "identifier at point".
> It seems like a reasonable constraint on the use of
> xref-find-definitions. But if you can think of a case where it might be
> impractical to call xref-find-definitions from the right place, we could
> use a marker instead of the value t.
I could live with either `t' or a marker; we can make it more
complicated later if some mode shows up with a real need. A marker is
clearer than just `t', but someone has to be responsible for deleting
the marker.
--
-- Stephe
- Re: Generalizing find-definition, (continued)
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/11
- Re: Generalizing find-definition, Helmut Eller, 2014/12/11
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/11
- Re: Generalizing find-definition, Helmut Eller, 2014/12/11
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/11
- Re: Generalizing find-definition, Stephen Leake, 2014/12/11
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/11
- Re: Generalizing find-definition,
Stephen Leake <=
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/12
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/13
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/12
- Re: Generalizing find-definition, Stephen Leake, 2014/12/10
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/10
- Re: Generalizing find-definition, Stephen Leake, 2014/12/10
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/10
- Re: Generalizing find-definition, Stephen Leake, 2014/12/11
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/10
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/10