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: Bad moves with xref-find-definitions Date: Sat, 25 Apr 2015 22:07:13 +0300 Message-ID: <553BE5E1.70105@yandex.ru> References: <87h9s6c27z.fsf@gmail.com> <87zj5wnlyt.fsf@gmail.com> <87oamcnivp.fsf@gmail.com> 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 1429988983 15957 80.91.229.3 (25 Apr 2015 19:09:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Apr 2015 19:09:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 25 21:09:38 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 1Ym5SK-0006IL-IE for ged-emacs-devel@m.gmane.org; Sat, 25 Apr 2015 21:09:36 +0200 Original-Received: from localhost ([::1]:49164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym5SJ-0007Ly-PK for ged-emacs-devel@m.gmane.org; Sat, 25 Apr 2015 15:09:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym5S5-00078w-5H for emacs-devel@gnu.org; Sat, 25 Apr 2015 15:09:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ym5QE-0008Nj-BM for emacs-devel@gnu.org; Sat, 25 Apr 2015 15:07:29 -0400 Original-Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:38682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ym5QE-0008Gl-4H for emacs-devel@gnu.org; Sat, 25 Apr 2015 15:07:26 -0400 Original-Received: by wiun10 with SMTP id n10so51677335wiu.1 for ; Sat, 25 Apr 2015 12:07:16 -0700 (PDT) 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:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=pZ4mNgYG1x3r8TUV4+zZyOJtxJ1H88vEqLQM17lxN8U=; b=N/1tgYul7H8TkvToJTOZPn7scndwqyc81TIDWU77v8NqQPKWh2adMeq8IzthoL4v+W WhReFXY3/PG0ko7+FRcFRL5upcmtOIu/HzHDZdLpIaVe65ULguqbza/euR5vKKq27ieG kEYW2V6RcZLPad7N5asyqKMsh6UzHPHWmWCMNB4cTAqFUUYTCf7ZxYjSjnM8UxRLl+Y/ wCy6JeL+O8fsOtQuBHMzJIyCI0rjgM89QO5yOzUnqhtWKidA32JZM5qA/RAuYT8diuQF CZNyGJuGfTCY7f/+Bcd7ROq60WNOM5NcJHcRiKUyYiQLYWnI0dCaO0PC7AL/l/DC/VCo CLvg== X-Received: by 10.180.82.41 with SMTP id f9mr7044878wiy.48.1429988836102; Sat, 25 Apr 2015 12:07:16 -0700 (PDT) Original-Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id bm9sm12153899wjc.21.2015.04.25.12.07.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Apr 2015 12:07:16 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Thunderbird/36.0 In-Reply-To: <87oamcnivp.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22e 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:185886 Archived-At: On 04/25/2015 09:49 PM, Vitalie Spinu wrote: > > As to my 2nd original point. I think the exclusive approach of tags *or* > dynamic completion is not the correct one. There should be a way to > merge tag candidates with dynamic candidates. xref-find-function defined by the major mode could as well do that. > Having C/C++ api interface > to higher order languages is a commonality rather than an exception > nowadays. I'm not sure what the above is referring to. > So maybe xref-identifier-completion-table-function and > xref-find-function should be better lists of functions to allow for > grouped backends? The prevailing thought on that subject is that modes can (or maybe should) employ the nadvice package to modify these values. See http://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00338.html and the following messages.