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: Sun, 01 Feb 2015 04:24:50 +0200 Message-ID: <54CD8E72.5000902@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> <54A9C94F.8040701@yandex.ru> <83vbkl99vm.fsf@gnu.org> <54B8878A.4050506@yandex.ru> <54B8C22B.3080200@gmx.at> <54BC7A77.5020307@yandex.ru> <54BCC033.2010104@gmx.at> <83oapuy8ew.fsf@gnu.org> <54BDC34C.5070309@yandex.ru> <83wq4hwejl.fsf@gnu.org> <54BEBF63.9050709@yandex.ru> <8361c0w16n.fsf@gnu.org> <54C063E3.8020401@yandex.ru> <83a91avglz.fsf@gnu.org> <54C1655E.4050403@yandex.ru> <83r3uluawd.fsf@gnu.org> <54C28635.8070606@yandex.ru> <83twzhryyq.fsf@gnu.org> <54C2C9DC.1050908@yandex.ru> <83h9vgsehi.fsf@gnu.org> <54C3CCB2.5030708@yandex.ru> <83y4ojjpqy.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 1422757515 3759 80.91.229.3 (1 Feb 2015 02:25:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 02:25:15 +0000 (UTC) Cc: 19466@debbugs.gnu.org, eller.helmut@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 03:25:14 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 1YHkDn-0000Mp-Ol for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 03:25:12 +0100 Original-Received: from localhost ([::1]:43349 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHkDm-0006FB-QA for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 21:25:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHkDi-0006Dh-S2 for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 21:25:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHkDf-0007eM-8g for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 21:25:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHkDf-0007dz-52 for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 21:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YHkDd-0001ve-NK for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 21:25:01 -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, 01 Feb 2015 02:25:01 +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.14227575007404 (code B ref 19466); Sun, 01 Feb 2015 02:25:01 +0000 Original-Received: (at 19466) by debbugs.gnu.org; 1 Feb 2015 02:25:00 +0000 Original-Received: from localhost ([127.0.0.1]:59282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHkDc-0001vM-87 for submit@debbugs.gnu.org; Sat, 31 Jan 2015 21:25:00 -0500 Original-Received: from mail-wi0-f182.google.com ([209.85.212.182]:56593) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHkDa-0001v8-K2 for 19466@debbugs.gnu.org; Sat, 31 Jan 2015 21:24:59 -0500 Original-Received: by mail-wi0-f182.google.com with SMTP id n3so9081766wiv.3 for <19466@debbugs.gnu.org>; Sat, 31 Jan 2015 18:24:53 -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=9cWsNf4LD2BiebQd3Jf46Ocb5HsMGxmxlAHcTaq1hWU=; b=xhfgshAvP9JGUYJgwzOxOP52IhGtexEdnY/v7ft9/dOuOdxYKdrr21OxX6Vjf8OQQL Ud3zURgj/DVO5RVobCYbH/eErz00tWS5hsIJCnu/2g5LQLkWMSWIavucZkvm+qAvFauz FamliCX4wbl0XNj2AkzPMsNqQc8kbrHDtRdzl8W7aoNhgHlSiq5DFkXuHTu/neaihkuq BYRcgP6xmnF0DvL49M5KyubytVYW/+uCHaNxhypyjgveVMEz7nJig56AcfwiM4OBFF2F 7KPim7v2gC+1jtMu+skXuyDNOAxX/4BXf3E6At4tbxDe74K8+vM9bAEoGP5EZeOSyMhH Ab3g== X-Received: by 10.180.79.131 with SMTP id j3mr10000384wix.33.1422757493005; Sat, 31 Jan 2015 18:24:53 -0800 (PST) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id cm7sm13486328wib.6.2015.01.31.18.24.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 31 Jan 2015 18:24:52 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: <83y4ojjpqy.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:98941 Archived-At: On 01/31/2015 10:52 AM, Eli Zaretskii wrote: > I tried that a few days ago, but didn't see any significant changes in > behavior. I'm probably missing something -- what exactly did you want > me to pay attention to? What have you tried, exactly? You should have noticed that `M-.' in emacs-lisp-mode buffers behaves like in other buffers and uses the current tags table (and prompts for it if the tags table hasn't been visited yet). I've found one caveat now: even though the tags list is not buffer-local (right?), (tags-lazy-completion-table) returns different results in lisp/**/*.el buffers and src/*.c buffers. `find-tag' completion exhibits the same difference. For instance, calling `M-x find-tag' in src/disp.c, then typing `display_li' and pressing TAB will complete it to `display_line'. No so in lisp/progmodes/etags.el. Doing it in that buffer results in [No match]. However, typing `display_line' fully in either, then pressing RET, brings you to that function's definition. This should be considered a bug, right? Until it is fixed, to be able to jump to `display_line' from lisp/** buffers, we have to disable the strict matching in `xref--read-identifier'. Please try #41 again with this patch applied: diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 55405b6..f550282 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -562,7 +562,7 @@ Return an alist of the form ((FILENAME . (XREF ...)) ...)." (cond ((or current-prefix-arg (not id)) (completing-read prompt (funcall xref-identifier-completion-table-function) - nil t id + nil nil id 'xref--read-identifier-history)) (t id))))