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 20:23:49 +0200 Message-ID: <87bnhtip8q.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1431195855 4200 80.91.229.3 (9 May 2015 18:24:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2015 18:24:15 +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 20:24:11 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 1Yr9Q2-00061Y-EZ for ged-emacs-devel@m.gmane.org; Sat, 09 May 2015 20:24:10 +0200 Original-Received: from localhost ([::1]:60182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr9Q1-0003St-AL for ged-emacs-devel@m.gmane.org; Sat, 09 May 2015 14:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr9Pp-0003Sc-4v for emacs-devel@gnu.org; Sat, 09 May 2015 14:23:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yr9Po-0004Hs-7i for emacs-devel@gnu.org; Sat, 09 May 2015 14:23:57 -0400 Original-Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:32939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr9Pk-0004F8-5e; Sat, 09 May 2015 14:23:52 -0400 Original-Received: by wief7 with SMTP id f7so57605566wie.0; Sat, 09 May 2015 11:23:51 -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=KY+c/PjHytXKK/8nyRTYEzCt2pAkVc8xk9EWn+AxqPM=; b=lTQmQfHNF4Z0BgEdVDLMVgeWXURtCmvxiVzZ51ybaIMVnWZ8LIDJjtkvyWQUF8Erju Z7cRhiLwN5Z95A05by2c04kKRiVan/IcPeJr46n9d0uMmKfyu1yoxbR6NJEazmSZlFua tf0glqYqmwkZ2Y6lat1MDh95+VPSdwMv1UWxpgRFWw7kSrK7Z471hulZ956eCGuKwuB2 nXMSei+WElfBd/R6qRduze8OZ14Sd0m8MGWkAvr8KPregEIbviOot2kmv9oPYbweB+lS vPmTq1ek46H7kJMc3pRMjYZy7sve+6X/goIy049OIoU0FHq38LQoTfTH1yVusGCgIdST Dv8Q== X-Received: by 10.194.238.161 with SMTP id vl1mr6489200wjc.144.1431195830974; Sat, 09 May 2015 11:23:50 -0700 (PDT) Original-Received: from localhost (dhcp-077-251-128-242.chello.nl. [77.251.128.242]) by mx.google.com with ESMTPSA id e2sm4908713wix.15.2015.05.09.11.23.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 May 2015 11:23:49 -0700 (PDT) In-Reply-To: <83lhgxonkk.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 May 2015 17:03:23 +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::230 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:186371 Archived-At: >>> Eli Zaretskii on Sat, 09 May 2015 17:03:23 +0300 wrote: > rectangles with labels. It doesn't explain what is A or B. If rectangle is a file, then A and B are physical positions in that file. >> The exact context at point of A is irrelevant (it can be C++ or R) the >> only thing relevant is that to A you can jump only with Imenu backend to >> B only with TAGS backend. > The notion of "context" is still not clear, sorry. 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. 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. > 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. Go to *scratch* buffer and write (defvar foo 34). Imenu now knows about 'foo', TAGS don't. Each time you open an untagged file (related project, example etc), imenu will know about symbols in it, TAGS won't. >> > There's a saying that a person with one watch always knows the time, >> > even if her idea of the time is a bit biased; whereas a person with >> > more than one watch always confused wrt what time it is. >> >> I think of it more like watch + scale + ruler ... > Scale and rules are worthless when I need to know the time. If all you have is a watch, you cannot measure your weight.