From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Allow xref to use other than current major-mode Date: Tue, 25 Aug 2015 13:19:49 +0100 Message-ID: References: <86fv37it65.fsf@stephe-leake.org> <55DC5612.9050704@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440505595 24246 80.91.229.3 (25 Aug 2015 12:26:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Aug 2015 12:26:35 +0000 (UTC) Cc: Stephen Leake , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 25 14:26:34 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 1ZUDJB-0001q6-SF for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2015 14:26:34 +0200 Original-Received: from localhost ([::1]:59677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUDJB-0002QI-3C for ged-emacs-devel@m.gmane.org; Tue, 25 Aug 2015 08:26:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUDIs-0002Jf-VZ for emacs-devel@gnu.org; Tue, 25 Aug 2015 08:26:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUDIo-0002FP-Bf for emacs-devel@gnu.org; Tue, 25 Aug 2015 08:26:14 -0400 Original-Received: from mail-io0-x235.google.com ([2607:f8b0:4001:c06::235]:36111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUDIo-0002F4-4e for emacs-devel@gnu.org; Tue, 25 Aug 2015 08:26:10 -0400 Original-Received: by iodv127 with SMTP id v127so183638027iod.3 for ; Tue, 25 Aug 2015 05:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=ckw2JM/wfxlVlB86skesSC4mRcgiAzXeGS+wQHo8sVY=; b=OGOed1JIYcNlJ0yOlrs6HY5BwBQz0uuB7h/POKQAwsZLO9UrTEVlCt77Ab1LbYULXz Qr5Ug2F7pr+oMDmOw2hkFITx1oOdWgyP+Lj18azrEgwjG5IWWke4R2qYHVvyEGUwdyUu iL1DopoC+QOev+ZsToaGPSpO78Mv0yGCf+/k0sc5f3VX6qibPz05JUVU317u8vAiDuyv 9dxDYIqdeqwQtmCZB8DAeoDGAal32gQxXjI79YmrVbtPGKYOHtDH8bo7ssh0ejQknj+x IC0iHJgVAkSMHVsAB+Z9pmqN8otl13k46WgB4z5UrDbdQ4HTjQp6uYnrMNGKqB/OppZB 3W9w== X-Received: by 10.107.151.66 with SMTP id z63mr21143741iod.46.1440505209415; Tue, 25 Aug 2015 05:20:09 -0700 (PDT) Original-Received: by 10.107.183.22 with HTTP; Tue, 25 Aug 2015 05:19:49 -0700 (PDT) In-Reply-To: <55DC5612.9050704@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c06::235 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:189154 Archived-At: > Second, how would a minor mode set an xref backend? It might not be tied = to > a particular major mode. +1 This is important for me. I would like to make `sly-mode' use `xref` when it's available. `sly-mode` is a minor mode active in many buffers of different major modes, all part of the SLY family. Xref should use the same backend in all of them= . > All similar cases can be solved by a project-aware xref backend that know= s > about all languages used, and allows navigating to identifiers in all of > them. Can't see right how I can use this to solve my particular case, but I'm confident I will :-) --=20 Jo=C3=A3o T=C3=A1vora