emacs-devel
[Top][All Lists]
Advanced

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

Re: Generalizing find-definition


From: Helmut Eller
Subject: Re: Generalizing find-definition
Date: Mon, 15 Dec 2014 22:57:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

On Mon, Dec 15 2014, Dmitry Gutov wrote:

> 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.

You could also further restrict the identifier type: allow only strings.
Tell users that they can put text properties on the string if they need
more structured data.

Helmut



reply via email to

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