From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#19466: 25.0.50; xref-find-def doesn't find C functions Date: Mon, 05 Jan 2015 02:14:23 +0300 Message-ID: <54A9C94F.8040701@yandex.ru> References: <8361cucl3u.fsf@gnu.org> <54A230CD.3040309@yandex.ru> <83vbktb1ct.fsf@gnu.org> <54A2EE15.3020406@yandex.ru> <831tnhasx0.fsf@gnu.org> <54A6DAF6.5070605@yandex.ru> <831tna9tmr.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 1420413322 5295 80.91.229.3 (4 Jan 2015 23:15:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Jan 2015 23:15:22 +0000 (UTC) Cc: 19466@debbugs.gnu.org, Helmut Eller To: Eli Zaretskii , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 00:15:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Y7uO7-0002yD-MH for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Jan 2015 00:15:11 +0100 Original-Received: from localhost ([::1]:58453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7uO6-0002OR-Tt for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jan 2015 18:15:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7uO3-0002Mg-4f for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 18:15:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7uNz-0006K8-Sv for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 18:15:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7uNz-0006JU-Oy for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 18:15:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y7uNz-0003K8-6N for bug-gnu-emacs@gnu.org; Sun, 04 Jan 2015 18:15:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jan 2015 23:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19466-submit@debbugs.gnu.org id=B19466.142041326912710 (code B ref 19466); Sun, 04 Jan 2015 23:15:03 +0000 Original-Received: (at 19466) by debbugs.gnu.org; 4 Jan 2015 23:14:29 +0000 Original-Received: from localhost ([127.0.0.1]:36760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7uNR-0003Iv-3T for submit@debbugs.gnu.org; Sun, 04 Jan 2015 18:14:29 -0500 Original-Received: from mail-la0-f44.google.com ([209.85.215.44]:37862) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y7uNO-0003In-VF for 19466@debbugs.gnu.org; Sun, 04 Jan 2015 18:14:27 -0500 Original-Received: by mail-la0-f44.google.com with SMTP id gd6so17535111lab.31 for <19466@debbugs.gnu.org>; Sun, 04 Jan 2015 15:14:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Urx8iY7tr2vjvbVwc+c4eC6dKJ2X87kPy9oYyzo9xh4=; b=cGQKznI2ze7boNzOHcVj+7efAt3eEHniFTlAEIULNwjY3rKmwZLqhev/YlfIGa01vQ tfae0JbbqSgHZ1BCUnCfwziYbsBZTDOFlWZt3JRDfFgeEpea9pzQdEoZJqd5lU01Xo3b 5n0NC9+MW0yoxyoXtzfzT9G3BrR1CDttzgLzEINB8QMrnw3ypbxSieMOILFl5oemKYDc f4rKHlefx2LDVI0/Oh/YL94P+NJ50gdLz+Z2AJIJQSe0JkGtvLjXh15bLfSINyiAK7K3 4kQ38GvYQ/NCF+B8hZmvEIbLG6HLQPLnvaqcQNhp67frRtuM5ENWAkVpbDmBZpeA65Rr s3Dw== X-Received: by 10.152.36.37 with SMTP id n5mr86564665laj.27.1420413266146; Sun, 04 Jan 2015 15:14:26 -0800 (PST) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id zs7sm14282172lbb.18.2015.01.04.15.14.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Jan 2015 15:14:25 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: <831tna9tmr.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98009 Archived-At: On 01/04/2015 11:29 PM, Eli Zaretskii wrote: > Btw, I think I've found another "issue" with xref-find-def: it uses > the TAGS table information without any tolerance. So if you have a > TAGS file that is slightly outdated, you are put on the wrong line. > By contrast, etags.el had special code that would look around the > position specified by TAGS, see etags-goto-tag-location. I see. Sounds like a good reason to add a yet-another xref-location subclass. > And one more thing: after invoking M-. and typing the function name, > then typing '.' to get the first candidate displayed, if I switch to > the window where that candidate is displayed, the window switches > buffers on me, so that the function I wanted to look at disappears. > What am I doing wrong this time? You didn't press RET after `.'? :) Currently, pre-command-hook always restores window configuration to the one before the buffer with the definitions of the current line's xref was displayed. I can see how this can be surprising for a new user, though. In that respect, a `quit-window' approach is better.