From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Fri, 12 Dec 2014 05:15:02 -0600 Message-ID: <85vblhm85l.fsf@stephe-leake.org> References: <20141102151524.0d9c665c@forcix> <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 1418383015 18030 80.91.229.3 (12 Dec 2014 11:16:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2014 11:16:55 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 12 12:16:48 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 1XzODF-00069k-BY for ged-emacs-devel@m.gmane.org; Fri, 12 Dec 2014 12:16:45 +0100 Original-Received: from localhost ([::1]:56591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzODE-0006JP-Ht for ged-emacs-devel@m.gmane.org; Fri, 12 Dec 2014 06:16:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzOCE-0005LF-FK for emacs-devel@gnu.org; Fri, 12 Dec 2014 06:15:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzOC6-0005js-6Y for emacs-devel@gnu.org; Fri, 12 Dec 2014 06:15:41 -0500 Original-Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:44410) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1XzOC5-0005jN-Vw for emacs-devel@gnu.org; Fri, 12 Dec 2014 06:15:34 -0500 Original-Received: (qmail 6656 invoked by uid 0); 12 Dec 2014 11:15:30 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy10.mail.unifiedlayer.com with SMTP; 12 Dec 2014 11:15:30 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw3 with id SbFP1p00U2UdiVW01bFS7z; Fri, 12 Dec 2014 04:15:30 -0700 X-Authority-Analysis: v=2.1 cv=W++rC3mk c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=fNEgcOh0sVsA:10 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=jrwKn-8xaegA:10 a=A92cGCtB03wA:10 a=OkBs13QjSlisKQ4J4m4A:9 Original-Received: from [70.94.38.149] (port=50523 helo=TAKVER) by host114.hostmonster.com with esmtpa (Exim 4.82) (envelope-from ) id 1XzOBv-0006wb-9D for emacs-devel@gnu.org; Fri, 12 Dec 2014 04:15:23 -0700 In-Reply-To: (Stefan Monnier's message of "Thu, 11 Dec 2014 22:05:56 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 70.94.38.149 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.20.226 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:179882 Archived-At: Stefan Monnier writes: >> 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. I could live with either `t' or a marker; we can make it more complicated later if some mode shows up with a real need. A marker is clearer than just `t', but someone has to be responsible for deleting the marker. -- -- Stephe