[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generalizing find-definition
From: |
Stefan Monnier |
Subject: |
Re: Generalizing find-definition |
Date: |
Thu, 11 Dec 2014 15:11:08 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
>> - If we restrict identifier to "a string or nil or t", then we can get
>> rid of identifier-to-string.
> Doesn't look like a great idea to me. identifier-to-string is used to
> create error messages like: "No known definitions for: fooo". How would
> the message look like for the t case?
The message could look like "No known definition for ident at point".
The use case for `t' is when the backend doesn't even know how to name
the identifier at point. It just passes the whole file along with the
position of point to some external program which returns the possible
definitions. So there really might really be no good string
representation, regardless of our API (maybe the external program could
give us some kind of textual representation name for it, but then again
maybe it doesn't support this functionality and maybe this description
would be too long/complex).
Stefan
- Re: Generalizing find-definition, (continued)
- Re: Generalizing find-definition, David Engster, 2014/12/11
- Re: Generalizing find-definition, Helmut Eller, 2014/12/11
- Re: Generalizing find-definition, David Engster, 2014/12/11
- Re: Generalizing find-definition, David Engster, 2014/12/11
- Re: Generalizing find-definition, Helmut Eller, 2014/12/12
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/11
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/11
- Re: Generalizing find-definition, Dmitry Gutov, 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 <=
- Re: Generalizing find-definition, Helmut Eller, 2014/12/11
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/11
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/15
- Re: Generalizing find-definition, Stefan Monnier, 2014/12/15
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/15
- Re: Generalizing find-definition, Helmut Eller, 2014/12/15
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/15
- Re: Generalizing find-definition, Helmut Eller, 2014/12/15
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/15
- Re: Generalizing find-definition, Helmut Eller, 2014/12/15