From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: xref-find-matches and stuff Date: Wed, 6 May 2015 15:36:22 +0300 Message-ID: <554A0AC6.8040304@yandex.ru> References: <5546DD4A.2080709@yandex.ru> <83y4l4s4er.fsf@gnu.org> <5547D636.10402@yandex.ru> <83fv7brq1n.fsf@gnu.org> <5548EB84.7040801@yandex.ru> <83a8xjrnkk.fsf@gnu.org> <5548F1E5.3090207@yandex.ru> <837fsnrn1s.fsf@gnu.org> <5548F451.3030305@yandex.ru> <836187rle0.fsf@gnu.org> <5548FDE7.9070709@yandex.ru> <834mnqswlf.fsf@gnu.org> <55490E27.6020002@yandex.ru> <831tiusuts.fsf@gnu.org> <554939B7.3060901@yandex.ru> <83y4l2qvgn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1430915960 31831 80.91.229.3 (6 May 2015 12:39:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2015 12:39:20 +0000 (UTC) Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 06 14:39:13 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 1YpybX-0007XK-TP for ged-emacs-devel@m.gmane.org; Wed, 06 May 2015 14:39:12 +0200 Original-Received: from localhost ([::1]:44741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpybW-0005e2-Mv for ged-emacs-devel@m.gmane.org; Wed, 06 May 2015 08:39:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpybI-0005dj-Nj for emacs-devel@gnu.org; Wed, 06 May 2015 08:38:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpybE-0004Kr-8N for emacs-devel@gnu.org; Wed, 06 May 2015 08:38:56 -0400 Original-Received: from mail-wi0-f175.google.com ([209.85.212.175]:33092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpybE-0003q1-3M; Wed, 06 May 2015 08:38:52 -0400 Original-Received: by wief7 with SMTP id f7so124365213wie.0; Wed, 06 May 2015 05:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=aIM/pTZ4G7jX7uP4kUFkajFmls+g9iZhxCrhfEr1v+g=; b=NoJHA2u/eT1HKCRsB0At3re5p3ZfWyfupkUG4nm5ea5Wnuu4TBQlcEa4LUk9+28YuM qFJ8k3pZsMZCVoTlHnZnkrftRf2I8zrVtCavaZlzWXxhab6Vf7H88kg9zIdL261Ms7Rb LVrmVDPX2lg9QfKTGMyKzOXt9s7fwbQoZWitKmJnALQRYPiLwQTh12XRiMFuFTVc/rs3 Zu+my0vcQZ7z5sidJds0290nv9F0ybV6sDF9Lw53Kw32Cyj8ctchCD/VukUF8CLsO5n5 TTct5htAFOkSgMHnfrFeyNDdpRfenrK1tPLtM0Pw/LjvgeQVeeFkMOQ+s31ed4NgcMdK pG9w== X-Received: by 10.181.13.170 with SMTP id ez10mr4704415wid.72.1430915784606; Wed, 06 May 2015 05:36:24 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id 14sm2596146wjv.0.2015.05.06.05.36.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2015 05:36:24 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <83y4l2qvgn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.175 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:186276 Archived-At: On 05/06/2015 05:40 AM, Eli Zaretskii wrote: > Fine with me, thanks. Here's why you might change your mind: even on forward jumps, we can only have a "match" data in certain cases, like using xref-find-references. Using etags for xref-find-references, we don't have the column where the identifier name starts. So if we're jumping to last_height, we only have the information where "static int last_height;" starts. I'm sure we could do a search-forward, but that's venturing into the hacks territory, and there's no guarantee, in general, that the identifier you've typed into the prompt occurs in the buffer as-is.