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: Thu, 11 Dec 2014 22:05:56 -0500 Message-ID: References: <20141102151524.0d9c665c@forcix> <85ppc0qf9a.fsf@stephe-leake.org> <85zjb3o09d.fsf@stephe-leake.org> <85tx1amnyg.fsf@stephe-leake.org> <85egsem1u2.fsf@stephe-leake.org> <867fy0or7p.fsf@yandex.ru> <86ppbqn841.fsf@yandex.ru> <85k31x4pvt.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418353594 31516 80.91.229.3 (12 Dec 2014 03:06:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2014 03:06:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 12 04:06:27 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 1XzGYl-0003J6-1l for ged-emacs-devel@m.gmane.org; Fri, 12 Dec 2014 04:06:27 +0100 Original-Received: from localhost ([::1]:55296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzGYk-0005rd-Jb for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2014 22:06:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzGYP-0005rT-KD for emacs-devel@gnu.org; Thu, 11 Dec 2014 22:06:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzGYH-000210-1W for emacs-devel@gnu.org; Thu, 11 Dec 2014 22:06:05 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzGYG-00020u-Tz for emacs-devel@gnu.org; Thu, 11 Dec 2014 22:05:56 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjsPAOwQflTO+ILA/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgnWWQEBAQEGAQEBAR6QbweESAWLAaQugXiEGSGCdwEBAQ X-IPAS-Result: AjsPAOwQflTO+ILA/2dsb2JhbABbgweDYIVaxR0EAgKBJBcBAQEBAQF8hAMBAQMBViMFCws0EhQYDSSISgnWWQEBAQEGAQEBAR6QbweESAWLAaQugXiEGSGCdwEBAQ X-IronPort-AV: E=Sophos;i="5.07,502,1413259200"; d="scan'208";a="100246133" Original-Received: from 206-248-130-192.dsl.teksavvy.com (HELO pastel.home) ([206.248.130.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 Dec 2014 22:05:56 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 372402ED4; Thu, 11 Dec 2014 22:05:56 -0500 (EST) In-Reply-To: <85k31x4pvt.fsf@stephe-leake.org> (Stephen Leake's message of "Thu, 11 Dec 2014 19:29:26 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.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:179859 Archived-At: > If identifier is restricted to just the string, ada-mode needs a > guarantee that xref-find-definitions will be called with current-buffer > the same as the buffer containing the string, and point in the same > place, so the backend can determine the file, line, column. That's the idea behind using the value t as an "identifier at point". It seems like a reasonable constraint on the use of xref-find-definitions. But if you can think of a case where it might be impractical to call xref-find-definitions from the right place, we could use a marker instead of the value t. Stefan