[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generalizing find-definition
From: |
Dmitry Gutov |
Subject: |
Re: Generalizing find-definition |
Date: |
Mon, 15 Dec 2014 19:21:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.51 (gnu/linux) |
Helmut Eller <address@hidden> writes:
> A identifier representation like
>
> (list (thing-at-point 'line) (current-buffer) (point))
>
> doesn't cost anything and would go a long way to give a better error
> message. If thing-at-point returns nil or an empty line then
> identifier-at-point should just return nil.
Bearing in mind the example I mentioned in the previous email, maybe we
can add an optional argument to the xref-identifier-at-point-function.
When it's t, the function would return an approximate string (basically
symbol at point, but maybe with minor syntax adjustments), and that
value would be used both in the error message (when we can't find
anything), and as initial input for identifier completion, from
xref-identifier-completion-table.
- Re: Generalizing find-definition, (continued)
- 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, 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,
Dmitry Gutov <=
- 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
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/15
- Re: Generalizing find-definition, Helmut Eller, 2014/12/15
- Message not available
- Message not available
- Message not available
- Message not available
- Re: Generalizing find-definition, Dmitry Gutov, 2014/12/16