From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Tue, 04 Nov 2014 21:00:40 -0500 Message-ID: References: <20141102151524.0d9c665c@forcix> <20141102172944.0f7944e3@forcix> <20141103084433.12117c03@forcix> <20141103192853.2702fe7a@forcix> <20141103215526.28edeb27@forcix> <85egtjrpa9.fsf@stephe-leake.org> <85ppd27e55.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415152874 9470 80.91.229.3 (5 Nov 2014 02:01:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 02:01:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 05 03:01:03 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xlpu9-0001pF-AO for ged-emacs-devel@m.gmane.org; Wed, 05 Nov 2014 03:01:01 +0100 Original-Received: from localhost ([::1]:43781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlpu8-0007j3-OD for ged-emacs-devel@m.gmane.org; Tue, 04 Nov 2014 21:01:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlptx-0007Wk-M7 for emacs-devel@gnu.org; Tue, 04 Nov 2014 21:00:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xlptp-0004vB-GD for emacs-devel@gnu.org; Tue, 04 Nov 2014 21:00:49 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:44215) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xlptp-0004uo-AS for emacs-devel@gnu.org; Tue, 04 Nov 2014 21:00:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYBAQEBHpEIB4RLBYtkpjyBb4QWH4J6AQEB X-IPAS-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYBAQEBHpEIB4RLBYtkpjyBb4QWH4J6AQEB X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="95978393" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO ceviche.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 04 Nov 2014 21:00:40 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 78EA5660D4; Tue, 4 Nov 2014 21:00:40 -0500 (EST) In-Reply-To: <85ppd27e55.fsf@stephe-leake.org> (Stephen Leake's message of "Tue, 04 Nov 2014 17:13:42 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176370 Archived-At: > 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