From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vitalie Spinu Newsgroups: gmane.emacs.devel Subject: Re: xref-find-matches and stuff Date: Sat, 09 May 2015 23:12:02 +0200 Message-ID: <877fshihgd.fsf@gmail.com> References: <5546DD4A.2080709@yandex.ru> <87r3qvnld1.fsf@gmail.com> <5548E08A.4090305@yandex.ru> <87mw1jndul.fsf@gmail.com> <554964CE.3040809@yandex.ru> <87oalxn756.fsf@gmail.com> <554AAD41.6060506@yandex.ru> <87vbg4lgn6.fsf@gmail.com> <554CB069.8090002@yandex.ru> <87sib7j9yf.fsf@gmail.com> <554CE8B2.7080408@yandex.ru> <87fv76kj0s.fsf@gmail.com> <554D11AB.6040609@yandex.ru> <87bnhuka8x.fsf@gmail.com> <83a8xep450.fsf@gnu.org> <87y4kyhqyk.fsf@gmail.com> <83oaltoplj.fsf@gnu.org> <87ioc1j23r.fsf@gmail.com> <83lhgxonkk.fsf@gnu.org> <87bnhtip8q.fsf@gmail.com> <83ioc1oacc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1431205945 25190 80.91.229.3 (9 May 2015 21:12:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2015 21:12:25 +0000 (UTC) Cc: emacs-devel@gnu.org, eller.helmut@gmail.com, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 09 23:12:20 2015 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 1YrC2j-000490-9w for ged-emacs-devel@m.gmane.org; Sat, 09 May 2015 23:12:17 +0200 Original-Received: from localhost ([::1]:60465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrC2i-0001lk-IL for ged-emacs-devel@m.gmane.org; Sat, 09 May 2015 17:12:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrC2e-0001jR-FM for emacs-devel@gnu.org; Sat, 09 May 2015 17:12:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrC2a-0002Ef-QA for emacs-devel@gnu.org; Sat, 09 May 2015 17:12:12 -0400 Original-Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:34680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrC2W-0002Dj-PZ; Sat, 09 May 2015 17:12:05 -0400 Original-Received: by wicmc15 with SMTP id mc15so1096872wic.1; Sat, 09 May 2015 14:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=of9dVwvxp8uSNDAR7gCZa5WFLGZ9a1WIdR8WtoXzmFY=; b=pINMwIs4xmcjZ+HldTrwc7cY7mUaSJRCnA4a43Vj5Qm4Ms4mg05XCWeAZF3AxmjSsP xQQd805jg+V5ayJg0KsuTLJEmRM5kAdhD/i5JCYhN4mbE4juC3Co/eJ8uGaKhOT5wVmp vpsNaVbG3p0hQIaU2Aph6jbZnBJ25GSraZ2wbuJ2VVaTrny1SKvcwIC7OpuutVHOpBWd Asr9tK8HInZSJMkYovhQRCjj5DV8uYIDq+h++Ax+KAJhM9n5G2h2Xn9L/ee8cvp6ZbtZ 4/QFxOy+HQG1Zdba9i86ekt+F9U50BEY7bE0qXBV18ojl2chm4YWmr4Y5r5whmZj7sqp PK6Q== X-Received: by 10.180.80.10 with SMTP id n10mr8512546wix.82.1431205924258; Sat, 09 May 2015 14:12:04 -0700 (PDT) Original-Received: from localhost (dhcp-077-251-128-242.chello.nl. [77.251.128.242]) by mx.google.com with ESMTPSA id be3sm5458318wib.21.2015.05.09.14.12.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 May 2015 14:12:03 -0700 (PDT) In-Reply-To: <83ioc1oacc.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 May 2015 21:49:07 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22a 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:186374 Archived-At: >>> Eli Zaretskii on Sat, 09 May 2015 21:49:07 +0300 wrote: > Files don't intersect; your rectangles did. So I still don't > understand what that picture was supposed to illustrate. Let me try it again. A rectangle is a set of all places where each backend collects its locations. For Imenu set of all open buffers. For tags all files tagged. For repls all loaded files. Would you be happy with this definition? >> Anything what you can infer from around your current location is >> context. Symbol at point is context, current major mode is context, >> whether the buffer is visiting a file is context. > OK, but how's that relevant to the issue at hand? You asked what context means. The relevant part is that you cannot infer backend on the context. >> The xref initiative is essentially to make a supernatural M-. that would >> be able to infer where to go (B) from the context around current point >> (A). People seem to think that xref can achieve that by choosing the >> backend first and then rely on that backend to give you B. But choosing >> the backend based on the context is a meaningless task. > Who said a back-end is selected solely based on context? People want M-. to operate without additional user's input, if that's what you mean. >> > Also, I don't understand why would TAGS not know about A. It doesn't >> > miss definitions, IME. >> >> REPLs knows about dynamically created objects about which TAGS have no >> idea. > Why would I need to "jump" to such an object? I've just created it, > so it's right here, where I did that. Jump to a tag and them jump to "foo". Of course you want to jump to "foo", it's the most jumpable symbol around.