emacs-devel
[Top][All Lists]
Advanced

[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: Tue, 04 Nov 2014 21:00:40 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> For "goto definition" and "show uses", ada-mode needs the simple word at
> point (no dots; 'baz' in the example), together with the file name,
> line, and column. "ada-identifier-at-point" only returns the simple
> word, not all the information needed by "goto definition". Python needs
> the file name, buffer text, line and column; it does not have an
> implementation of "identifier-at-point", apparently.

That's OK.  We already agreed that find-definition-function should
accept a buffer-position as argument (from which it can extract any
identifier it likes, if that's what it needs).

> For "completion", Python also apparently needs the same information as
> for "goto definition". Ada mode will probably need the same info as for
> "goto definition" as well.

Completion doesn't need the identifier at point, AFAICT.


        Stefan



reply via email to

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