GNU bug report logs - #65520
30.0.50; [FR Xref] Project-wide operations

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Gerd Möllmann <gerd.moellmann@HIDDEN>; dated Fri, 25 Aug 2023 06:50:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 27 Aug 2023 06:32:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 27 02:32:38 2023
Received: from localhost ([127.0.0.1]:43911 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qa9K9-0006Hr-RK
	for submit <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:32:38 -0400
Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]:57410)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qa9K6-0006Hc-QM
 for 65520 <at> debbugs.gnu.org; Sun, 27 Aug 2023 02:32:36 -0400
Received: by mail-ej1-x635.google.com with SMTP id
 a640c23a62f3a-99c1d03e124so282067166b.2
 for <65520 <at> debbugs.gnu.org>; Sat, 26 Aug 2023 23:32:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693117943; x=1693722743;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=qCqGE9MfrZzksUi0uDYZggfP/moUOreTc9/M+wxT+hs=;
 b=bJbVf29zoIVrtm9vt/RSql6uQuB7yeYgNvYseZkry2HaEbiQHu+UXqGI9qranvpegv
 zVqWfOExbx6rkCRrnHJw1rSLhMVZcXupMZn7tZHM76u8ACwlKUIxuqNWAL1MX+jVkjMx
 D8SQ1DkFZxWZSyXH5emlPlO9rgpfBDLX+Evxzbv7g48gsYtPp5MWMfsb372XKcp1rudd
 tVjtCkBBw/mnqC58DRpRodznEpi6Flqmk1RvYuelypUbq8NryO1eyLAwXQKQJF44RW25
 fVMBlo/qLcsTKab8guDMXQ0AJojT4aiIj6iwIrvXZS0h74c5lWzAt5AhZiBOPzjd8sP8
 +6WA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693117943; x=1693722743;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=qCqGE9MfrZzksUi0uDYZggfP/moUOreTc9/M+wxT+hs=;
 b=dK96J+LX0RkIPoImB+q8HUMm6PMiyyov7C8b8fHd9crdvAefCIbLMuJhTcFwzCtwOK
 AB4kZ95OXSKcYBPjWQ2sjDChueX03cZqpPAgbuzy4iE+x2hQWDuFN4YsFro+AX6157zY
 R0Q2xrMbe8q9gMjCW8BREEa5QxOpcAhhG25xbhFgavObNg2fPg0nYcSVinp9MWkxBA0r
 XYDwBP8GcBSc+xaYvPyWYd8tf8g6MYqcLJ9eMVj72b50j1AdgMtWEUTrMzYNdgpkE5C1
 MC5AsLtRNad0iR28pVbR36NCvklYBoUGsb1BmQNHqyyfUoMMHIyD0X2XVfesKFsugLHl
 NA8A==
X-Gm-Message-State: AOJu0YzQiEmhQlYDvajDKzEdVg7qvZjZ4PKmsYr59NYpXvKEX8Uoxh7S
 Ubn2lbsq1SuoAiFypKndaIk=
X-Google-Smtp-Source: AGHT+IFiNpedti4Yc3EAoI3a9X572ekK34rR/QKGhYyg+NF6KnWk3loZJlfvnc9xlYm/znLEa5g4gA==
X-Received: by 2002:a17:906:cc0b:b0:9a3:7148:503c with SMTP id
 ml11-20020a170906cc0b00b009a37148503cmr4767439ejb.5.1693117943096; 
 Sat, 26 Aug 2023 23:32:23 -0700 (PDT)
Received: from Mini.fritz.box (p4fe3a918.dip0.t-ipconnect.de. [79.227.169.24])
 by smtp.gmail.com with ESMTPSA id
 n4-20020a170906688400b0099cf840527csm3049720ejr.153.2023.08.26.23.32.22
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 26 Aug 2023 23:32:22 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
In-Reply-To: <e1829d82-b0d7-4eb2-426b-39e1971958c6@HIDDEN> (Dmitry Gutov's
 message of "Sun, 27 Aug 2023 03:32:22 +0300")
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
 <5fc3aec1-019e-49c8-d939-91042f16650b@HIDDEN>
 <m2msyee5eu.fsf@HIDDEN>
 <e1829d82-b0d7-4eb2-426b-39e1971958c6@HIDDEN>
Date: Sun, 27 Aug 2023 08:32:21 +0200
Message-ID: <m2ledxgfm2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65520
Cc: 65520 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dmitry Gutov <dmitry@HIDDEN> writes:

>>> Have you tried it?
>> Not yet.  I'm still hoping someone else (tm) builds something, so
>> that I
>> don't have to do anything.
>
> xref-union is a thing that somebody has already built. Either you try
> it and like it, or you can come back with more targeted feedback.
>
> Which we could then use to improve either it, or the core xref, of
> course.

I know, I know. I'm procrastinating ;-).  

...
>> No, I didn't mean Emacs development specifically, although that's
>> probably the only things I'd use such a facility for.
>> The whole thing would be like in some IDEs, with their "usual" idea
>> of
>> project.  I'm not 100% sure, but I think I've seen vscode being used
>> with different languages (JS, CSS, Java...) and offering such
>> project-wide stuff.
>
> IIRC the LSP protocol includes project type detection, and so Eglot
> can automatically spin up several language servers already.
>
> Without the addition of a similar registry, which all backends would
> have to plug into, the best we could do is loop across the open
> project buffers and see what backends exist there. But that would
> e.g. miss Elisp if you haven't opened any .el files in the current
> session yet.

Can't say anything to that...  BTW, I'm not planning on working on
anything in that are.  Just wishing to have something like I described.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 27 Aug 2023 00:32:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 20:32:46 2023
Received: from localhost ([127.0.0.1]:43605 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qa3hs-00022v-Dr
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 20:32:46 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:41731)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qa3hn-00022e-3Y
 for 65520 <at> debbugs.gnu.org; Sat, 26 Aug 2023 20:32:43 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 1C9CB3200406;
 Sat, 26 Aug 2023 20:32:26 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute1.internal (MEProxy); Sat, 26 Aug 2023 20:32:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1693096345; x=1693182745; bh=0JEGdbkmqcgbOSDl1VWGGAfSbxeKgnITYKQ
 nBdPVAbM=; b=VkUL0PDcGs4JRhQPtSUHLuITSFDhzau1LixfgIy2B9anVu7FPx5
 Cu826rRYG0T0C4XgnLaHjhk5XSukU9MX7RdgFN1X/HZR+LE9UXGWbOujWkKGisjI
 tqFOf5akPM4WcYT3hMr7MXuxvmpsoMslUEfXHTl1tZW6G+GuAWL5qv1L1O2n2RnU
 iejwjY/bxECBnbiMv7KdvAxShPeDTpFxAu+q18tATfCimSaKFkitQ4q2OmigE9uu
 7lY/h7yOzpuR5TTNsofrRx8i7jExVrI+um7RK6AbFVUC/ZbERmqk9FIlCfXpq+cP
 DSP6rhEAFoCYrLIpxUNdSL404pzxUohwKDg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1693096345; x=1693182745; bh=0JEGdbkmqcgbOSDl1VWGGAfSbxeKgnITYKQ
 nBdPVAbM=; b=0OFO8sKapiSjOyoEtMKCVNNtwMzApl//7sZr9weuap4pbSGv8Xe
 zJHG9gDwJs+Z4cF3WrTcIWTrlcXsxhydQuW2voelk9cg+U8TE8KXn1WzTUoEkyEb
 ROmaIbOcpaoUhA1EgQqqcf08za8uXEGJrJF8aD/Uio4Q2emdVYs4uI8iqyyRtqWG
 iy2Cxqva9cVYd32izPg2FmRHSirVOeCHYlMoXAkGHzUQbqJee8yu71/ybitJv0Ts
 YSpThYfwPnHgNa6ARav0+JcmKTZkXDjjJtBs4SucODC+zuT1G3TQepFyvwzQayCD
 r64wXIa3OLZYAmpO+M7Y2foIuFnPjWX2GPw==
X-ME-Sender: <xms:mZnqZAvb7krUOYTy2atnOjH1p50QTpL774aAr1C4RTe4bzHTIB93Dw>
 <xme:mZnqZNdBmUB4PFpMzfWI9f9sibWbG4VDkHw8UJYuXyF9cwxRkEWsq5ohI1WnAOoF6
 4hG_a5KaJp5lrf5Z8E>
X-ME-Received: <xmr:mZnqZLyK_E077vr5KDqV3jWpPWYw2n1sqmVLuT5DL_TwzBxvKS0OTkDSub5Z4MQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefuddgfeeiucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth
 ekredttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehg
 uhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpefhffehleejffegffeugefhkeektd
 ffgfehjedvgeejtedtudehueffgffgfeejheenucevlhhushhtvghrufhiiigvpedtnecu
 rfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:mZnqZDNmX0vemeMeTpA3FDcYMbTv6jPpXSIaMmcKGaFmx53JTfnZJA>
 <xmx:mZnqZA8auHqEEILsoZ8XT9TNVkDmZomanyCPlyb7Cvs_c2OMskimrg>
 <xmx:mZnqZLUuhzDG69KWnaW71ox2Fiaz_E6_UMXbIj5HOk2QuRK8h3FYDQ>
 <xmx:mZnqZOnke4W14vxPfXa6Z422JClko5bUary2b889un4fhpzuyzKMwA>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 26 Aug 2023 20:32:24 -0400 (EDT)
Message-ID: <e1829d82-b0d7-4eb2-426b-39e1971958c6@HIDDEN>
Date: Sun, 27 Aug 2023 03:32:22 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
Content-Language: en-US
To: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
 <5fc3aec1-019e-49c8-d939-91042f16650b@HIDDEN>
 <m2msyee5eu.fsf@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <m2msyee5eu.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 65520
Cc: 65520 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

On 26/08/2023 08:31, Gerd Möllmann wrote:

>>>> No such capability at the moment, but we indeed have an ELPA package
>>>> xref-union which implements the "merging" feature that has been
>>>> requested in the past.
>>> Thanks also to Visuwesh for pointing me to xref-union.
>>
>> Have you tried it?
> 
> Not yet.  I'm still hoping someone else (tm) builds something, so that I
> don't have to do anything.

xref-union is a thing that somebody has already built. Either you try it 
and like it, or you can come back with more targeted feedback.

Which we could then use to improve either it, or the core xref, of course.

>> Indeed, it's also a question of mental model, which we might have
>> different. When I was saying "different projects" and "register
>> globally", I was thinking of being able to jump to Emacs' sources and
>> hack them from anywhere: from any other project I might be working on
>> at the moment.
>>
>> If we're talking about Emacs development only, a "combined" backend
>> might make more sense (see the other email).
> 
> No, I didn't mean Emacs development specifically, although that's
> probably the only things I'd use such a facility for.
> 
> The whole thing would be like in some IDEs, with their "usual" idea of
> project.  I'm not 100% sure, but I think I've seen vscode being used
> with different languages (JS, CSS, Java...) and offering such
> project-wide stuff.

IIRC the LSP protocol includes project type detection, and so Eglot can 
automatically spin up several language servers already.

Without the addition of a similar registry, which all backends would 
have to plug into, the best we could do is loop across the open project 
buffers and see what backends exist there. But that would e.g. miss 
Elisp if you haven't opened any .el files in the current session yet.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 26 Aug 2023 05:31:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 01:31:24 2023
Received: from localhost ([127.0.0.1]:41500 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZltL-0008UQ-K3
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 01:31:23 -0400
Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:51432)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZltF-0008U3-S1
 for 65520 <at> debbugs.gnu.org; Sat, 26 Aug 2023 01:31:21 -0400
Received: by mail-ej1-x636.google.com with SMTP id
 a640c23a62f3a-99bcc0adab4so197495766b.2
 for <65520 <at> debbugs.gnu.org>; Fri, 25 Aug 2023 22:31:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693027867; x=1693632667;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=uH1wpva8qc+hAjQWT4ivbt75fIOEHNHrsDofiywdf1Q=;
 b=DOmTU1vgVELaOFmkqLg8OcG/+6uQ1bUtyfDTbazD3LD/8GfhcxDRFl4P2Wbm/4rCh4
 mR+FNzPe6kZFL2YdpaHNPkPxlMnob8B79jP9vomcixZrvXaVCT/EG4T+MxJoGfedG07q
 q32L68pHLBbvaQZYmZjk9gBh9MGpaSGe/grzPjA1ZygNk5py+MyEAJq/jL0pbYc+J8bd
 I92rC+M5CGHMiFF0YUMF+0hZo346Ouzz1rKfJQi+be3KLd9k1bFDI8x/6wnlwAQrXRjq
 XlrtRHUqSXHq6/NPX4aNUi1tD+ZTlU1inOSgw+1gV1TY8yDFb8iVqKMJt61T5mam7kcV
 nlVQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693027867; x=1693632667;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=uH1wpva8qc+hAjQWT4ivbt75fIOEHNHrsDofiywdf1Q=;
 b=De8UKNmyE/uqjivg8+bbLBz+FZaiRX1OkJ5ARncLKew6Czu5JHsu87ZaKb33mCiSIK
 rFWTe0zVWv7J0DownfW8nfOiRCObYSCxs4F1siLQyYjVaHCEdlD7rpr4vOAFiiS0BJBG
 DXSqzMaliIpp84A8zjyXoFXkPL/S4Y0ctNPg+1/9JGGNDHImv8hq0Lza1JnKaOIFTqkE
 TOpCGbiWIQxe0rVK36AMksOufF0O51s68xNGcmR8gVUNtU5NBPPsK82YXF0iuM+IgXop
 E+dP8qxaThnqeyhlE5573T7aoxo72KFAEZHB3EkL77OewW4Hw25x5Y6sgmXLevLVieUF
 yqew==
X-Gm-Message-State: AOJu0YwkD4C1+5245Q12Vd59+3h9lAIBkELEQfy4pZ2FUFz8fHUzu9y/
 fAcze1M+Ox0kjywHKQYQMDIQS1Ex3i8=
X-Google-Smtp-Source: AGHT+IEs2g9zMeUFh8CazMDSq1ByJKu/hyvlRqLrNadvMyv0e2+eayVyVuP9F5myTqBClnLt5871Qw==
X-Received: by 2002:a17:906:5385:b0:99c:55c0:ad15 with SMTP id
 g5-20020a170906538500b0099c55c0ad15mr15659467ejo.38.1693027866721; 
 Fri, 25 Aug 2023 22:31:06 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36ea3.dip0.t-ipconnect.de.
 [217.227.110.163]) by smtp.gmail.com with ESMTPSA id
 q22-20020a170906361600b0099cadcf13cesm1688162ejb.66.2023.08.25.22.31.06
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Aug 2023 22:31:06 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
In-Reply-To: <5fc3aec1-019e-49c8-d939-91042f16650b@HIDDEN> (Dmitry Gutov's
 message of "Fri, 25 Aug 2023 19:20:03 +0300")
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
 <5fc3aec1-019e-49c8-d939-91042f16650b@HIDDEN>
Date: Sat, 26 Aug 2023 07:31:05 +0200
Message-ID: <m2msyee5eu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65520
Cc: 65520 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dmitry Gutov <dmitry@HIDDEN> writes:

> On 25/08/2023 10:03, Gerd M=C3=B6llmann wrote:
>> Dmitry Gutov <dmitry@HIDDEN> writes:
>>=20
>>>> In C mode, Xref works using Eglot, in ELisp mode it uses something
>>>> else
>>>> (I have no tags tables).  Both work really well, but I apparently have
>>>> to be in an ELisp buffer to use one and in a C buffer to use the other.
>>>> Feature request: Is it possible to use more than one backend at the
>>>> same
>>>> time?  So that I could C-M-. to find an ELisp function while being in a
>>>> C file?  I couldn't find something like that mentioned in the docs, so=
 I
>>>> guess it's not yet possible.
>>>
>>> No such capability at the moment, but we indeed have an ELPA package
>>> xref-union which implements the "merging" feature that has been
>>> requested in the past.
>> Thanks also to Visuwesh for pointing me to xref-union.
>
> Have you tried it?

Not yet.  I'm still hoping someone else (tm) builds something, so that I
don't have to do anything.

> By setting up both it and the
> xref-backend-functions manually (in a hook) in every relevant buffer
> you might get more or less the requested behavior. If not, what does
> feel unsatisfying still?
>
>>> A naive approach, or for the new code to search across different open
>>> buffers and look for different available xref-backend-functions
>>> elements. And then prompt the user, and then call (?) the said
>>> function in one of the buffers it was found in, because in all
>>> likelihood it would fail in unrelated ones.
>>>
>>> Perhaps the solution is to add a new facility to Xref, where different
>>> "projects" would be able to register globally in. A feature request
>>> indeed.
>> I'm not sure about the "different project in the same session"
>> thing.
>> My mental model is like so: I'm in a Git repo (Emacs), which is, I
>> think
>> also a project in the project.el sense.  This project contains differnt
>> sets of files for which information is available using different
>> backends (Eglot, Etags, others depending on the kind of project).  What
>> U'd like to have is something on the level of such a project, if you
>> know what mean.  That is, M-. would take all available info for such a
>> project into account.
>
> Indeed, it's also a question of mental model, which we might have
> different. When I was saying "different projects" and "register
> globally", I was thinking of being able to jump to Emacs' sources and
> hack them from anywhere: from any other project I might be working on
> at the moment.
>
> If we're talking about Emacs development only, a "combined" backend
> might make more sense (see the other email).

No, I didn't mean Emacs development specifically, although that's
probably the only things I'd use such a facility for.

The whole thing would be like in some IDEs, with their "usual" idea of
project.  I'm not 100% sure, but I think I've seen vscode being used
with different languages (JS, CSS, Java...) and offering such
project-wide stuff.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 26 Aug 2023 05:22:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 26 01:22:27 2023
Received: from localhost ([127.0.0.1]:41476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZlkh-00089j-EJ
	for submit <at> debbugs.gnu.org; Sat, 26 Aug 2023 01:22:27 -0400
Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]:50583)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZlke-00089V-CI
 for 65520 <at> debbugs.gnu.org; Sat, 26 Aug 2023 01:22:26 -0400
Received: by mail-lf1-x129.google.com with SMTP id
 2adb3069b0e04-4ff8f2630e3so2395168e87.1
 for <65520 <at> debbugs.gnu.org>; Fri, 25 Aug 2023 22:22:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1693027333; x=1693632133;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=6zg39nPAL/t4f7FU076SFkx8lu2fdEXhb6sxCDDjy+M=;
 b=eoStHrcpKCWQP773y410hlHU42fyK2Hjv0PvgifeV72cShzTLfM5VCClyRAkhRtw3g
 ykLpupSpHVh+cYvrgIAqRQGaXCrlXrvQilTNPHzHxwLREyxwsN8Kd4gCHOAM0GbOhWGi
 /a2ZYJNZ/jbV5/5/3q6HZ3e+C21a5A727t3fpuk89851AgBKAALVe5gmf+EoKXV0v3Nv
 3gE23XgiCgX3RUOl84GVx3RBYZRSSnhI3xVKNtu2GPeCiFTBPsdJ2vO06QHdvYnRUhMR
 HwbPypjuTDA00yNBOaX4P4Aicw16Szf+LI2v5JdrCjDjWNcHpzquifA8io7FIgur5/KZ
 oXgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1693027333; x=1693632133;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=6zg39nPAL/t4f7FU076SFkx8lu2fdEXhb6sxCDDjy+M=;
 b=fEmLvHRTy2F+w4v/XsTRa4eJUZtgNgwmVeeNApujTINtJ1A7WuwtMst6/lm8AWUtfs
 Z+0JOm+nuFc6daKQWiGPD7Fwlgi/xs8bplM2nDigAT2wWdwOEiY1Wr/kOp/pJ+0wMOHI
 YJRLnIrIyPs2mkfLiYRLiI+/6JlraKQOiz75EB+Qkvjbdi2EPHOhg8pO0ZKB7W9T+AX+
 +8FjtTeFu6bMuP+G0fqvn16hMYPPZQa94sRFUns1EvdClQHF8VZh1/JySOi0OPbLsQ5Q
 6TPv6lKeYOZcpCaOpqgGR4mjkxoeSAa7TqknzgJETgx6IE8l2tYwSfWW9luI0sq5Hw4G
 +WYg==
X-Gm-Message-State: AOJu0YxkjjkHrXmbv70luadwmdwKLHs0fzReJsTinzhItIlbAvDwHgT4
 v1AvPGnGFRgvG3izeKaJClw7apNoBA0=
X-Google-Smtp-Source: AGHT+IEFHx1Jl1jVOPsoT2Rmc7CNnCOABLRCjut8viMGyQkZtPDWBVuELAD174Xe/yPIg98Ul45HsQ==
X-Received: by 2002:ac2:5f4b:0:b0:500:9ee2:15f with SMTP id
 11-20020ac25f4b000000b005009ee2015fmr3624586lfz.46.1693027333017; 
 Fri, 25 Aug 2023 22:22:13 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36ea3.dip0.t-ipconnect.de.
 [217.227.110.163]) by smtp.gmail.com with ESMTPSA id
 f15-20020a50ee8f000000b0051e2670d599sm1720761edr.4.2023.08.25.22.22.12
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Aug 2023 22:22:12 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
In-Reply-To: <929f86c4-edb6-46f5-f24c-3b46054a0ad4@HIDDEN> (Dmitry Gutov's
 message of "Fri, 25 Aug 2023 19:17:14 +0300")
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
 <929f86c4-edb6-46f5-f24c-3b46054a0ad4@HIDDEN>
Date: Sat, 26 Aug 2023 07:22:11 +0200
Message-ID: <m2r0nqe5to.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65520
Cc: 65520 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dmitry Gutov <dmitry@HIDDEN> writes:

> On 25/08/2023 10:03, Gerd M=C3=B6llmann wrote:
>> My mental model is like so: I'm in a Git repo (Emacs), which is, I think
>> also a project in the project.el sense.  This project contains differnt
>> sets of files for which information is available using different
>> backends (Eglot, Etags, others depending on the kind of project).  What
>> U'd like to have is something on the level of such a project, if you
>> know what mean.  That is, M-. would take all available info for such a
>> project into account.
>
> One possible alternative is to treat this situation not like a new
> feature, and write a specialized new Xref backend which would collect
> both the info from Lisp and from TAGS when you are anywhere inside the
> Emacs sources. It shouldn't take too many lines either.
>
> The current existing alternative for that, like Eli pointed out, is
> xref-etags-mode: it disables Elisp's own backend and just uses TAGS
> everywhere ('make tags' in Emacs generates tags for Lisp functions as
> well). With the natural downside that you would need to regen tags
> manually for both types of files now. And that you're using Eglot
> instead ;-(.

Yeah ;-).  That's not what I was looking for.=20




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 25 Aug 2023 16:26:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 12:26:57 2023
Received: from localhost ([127.0.0.1]:41115 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZZeD-0000JV-07
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 12:26:57 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:56937)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qZZe9-0000JA-33
 for 65520 <at> debbugs.gnu.org; Fri, 25 Aug 2023 12:26:56 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.west.internal (Postfix) with ESMTP id 847233200B72;
 Fri, 25 Aug 2023 12:26:42 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Fri, 25 Aug 2023 12:26:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1692980802; x=1693067202; bh=ZYCeetozWZHk+1vNrKQ+pH77lD2KgxlVulM
 JUDIYZXM=; b=regghmZ/jvW1VOfA1IxbVYxb9dLEwsbW1PAA/41ffDXFJuJonBV
 FXPg8vgpbqXwklJpw8aix+7D4OV1ro3GMbSnO2lutSe+etrjBXFVfUgy1X2E4f96
 1AMsUixuf0KEuFDOSYtcS4pV0zxjPnNraYrv8eHEN/0oG/meFs4+N7cl0fA08cwE
 vxZNv41NR7JD4euHdaVKHpDQTUDR56D9vJPW37OuhU8OvoeZaJR6qS3iO7IR/cAY
 l2aslqRdSGp34p7Dm/uecItt8+dOcsvFnx3wW9QbbnkaALyGdihkYXItTGagnExd
 jWVbYDUhKgYJt6MBcdXUbYmJENTvveobn6A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1692980802; x=1693067202; bh=ZYCeetozWZHk+1vNrKQ+pH77lD2KgxlVulM
 JUDIYZXM=; b=DQI4h5r74xENwmMzs/DxlJBZxb2b+N9+RHZvq0aZZQPTQfmL7TQ
 JBLOwI/tzPWi3ZIuN0J+oVzsSdSXFhXQxH17adcNXhsuZBaAHhM2PYzDp5mnhgFY
 ql4uo8VLqDxR5BpJzEMwCdK687nO37CuSrEY35Q+7Vjzl5Zg5dSRZDgxp2hx47za
 Ps9BysoGTnux6FttCkY+KdLomhUXyhVCeXq9DZM4qqgvXNyge1HAvURtjq0fbb1S
 Fs+Rplmh+DbigiI8Xzw4LCK1hrf1/kJOwIRHslT15t4Pqai1jUQXwJ/KKrihStIj
 3ThmTCauDgKqmCdBewL2sUt0EY3s7KGlFvA==
X-ME-Sender: <xms:QdboZNgB1YIp6DcukIr9c1rqWEa0R_dNX63lZtHbNffVbrQbwjlPQA>
 <xme:QdboZCD1b1-uof4aOkob73OVrFCPvuZ2UN6vobWxxMNCITEE26ifTyLAwCuq_PRkn
 inpBbh-vOR8jKoFXoo>
X-ME-Received: <xmr:QdboZNF2xunFW_LjYQv4Lqwz1sbrwp0_JpW6fbpGUhypBTOd61f5iGYGlC8n25g>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddvkedgleelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth
 ejredttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehg
 uhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpeeigfetveehveevffehledtueekie
 eikeeufeegudfgfeeghfdulefgfeevledvveenucevlhhushhtvghrufhiiigvpedtnecu
 rfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:QdboZCTJz-MSTk8kHUodjzK8ENMFGCXBMLGn8oo1WnuSnblOzpt1Lw>
 <xmx:QdboZKzAoo-gjBHv8N-pqTJ8hRs92811Lji8sD5xkxx2JoEHQprQgQ>
 <xmx:QdboZI4t3agyw6DWSe0lOt0bTQ2QEmb2HZ5Pmxi3qK6WmjaM7m_2Kw>
 <xmx:QtboZF-3TAMt92gM2429FPRMOYlW1EPFc4s5inoH9ZLZUDxF25h_OQ>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 25 Aug 2023 12:26:40 -0400 (EDT)
Message-ID: <c2bdaa04-6102-14a8-d279-26ffc21d38f3@HIDDEN>
Date: Fri, 25 Aug 2023 19:26:39 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
Content-Language: en-US
To: Eshel Yaron <me@HIDDEN>, =?UTF-8?Q?Gerd_M=c3=b6llmann?=
 <gerd.moellmann@HIDDEN>
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
 <m1h6on36m8.fsf@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <m1h6on36m8.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 65520
Cc: 65520 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

On 25/08/2023 10:48, Eshel Yaron wrote:
> The way I'd suggest structuring it is
> introducing a new command `project-find-definitions` that prompts for an
> identifier defined in the current project and jumps to it, similarly to
> `xref-find-definitions` but limited to the current project and not
> limited to the current `xref` backend.

To make this work ootb (as opposed to custom user setup), this would 
require some global-ish registry of languages available in a project.

project.el itself is unlikely to help too much, but it could host the 
new variable(s).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 25 Aug 2023 16:20:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 12:20:22 2023
Received: from localhost ([127.0.0.1]:41109 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZZXm-00008c-KU
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 12:20:22 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:40375)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qZZXk-00008L-Gd
 for 65520 <at> debbugs.gnu.org; Fri, 25 Aug 2023 12:20:17 -0400
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.west.internal (Postfix) with ESMTP id 0A2823200AB3;
 Fri, 25 Aug 2023 12:20:05 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute1.internal (MEProxy); Fri, 25 Aug 2023 12:20:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1692980405; x=1693066805; bh=jB3Rg5SEYL2S5IMT5HblYKI3dsa0ZrrpUT9
 WN/qS380=; b=N5rHbI2WKjkvrYua+GywjcAmBEXwFBkzJSEVUCDxWf0OQsI4X6b
 LJaRvAhZI3NF+WDKzU/kwd5Fe8LkEs7Tn+Bk8RCytCjY99w7irR/fKCyBXW7rMLz
 C94wDrvABqIwU25cU0C6we+7JjXjmaWBs8zbQqWgEDCwGXo+awZ0NbZdX/537tSF
 WCLy2zcbXiKqvO/DhiLaxzCyJelbZfqmTgAknCRfnsi+QX5DOJBLn4RILgdvW6jI
 IJU1i6x2gDv9bIHqcrdDbjWVZar1LRDVg9mdOsSFdakmmluJwexloOF71PwIthES
 ga7T+KKipwoSi9YGGJN5m9OTijSua7jxOdg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1692980405; x=1693066805; bh=jB3Rg5SEYL2S5IMT5HblYKI3dsa0ZrrpUT9
 WN/qS380=; b=DNb2C4zHqarU9Jr096La7icQV/SdECBaZw27tksPAJ1exd5Gz9N
 NFY1JOUEbVIz7RjaDf19Yh470Lha2XeDGClG6WmJbPQYNMGPNkdjSmoNK6qlMYrF
 wXd1nAwo2O5MODjljs33/mxcjJjoOYY3h7QPyKpbQfMzNp1GffiyBxDxCXmi+3cU
 AmB0bWBUyzghTjnsKat7x/2S5aawuaogn3CKNNtsI9QZjrD9NY8Hl61hotSh4xb7
 Qf0yeQeRnnl7kHxOILXTioV4WXcOy8dixUSDKzM4dVD5hhl+/A9QthL2ZNNBo1UZ
 yuDqgdp9tW2dUcPjZ19PN9sfJs++MlpzEOQ==
X-ME-Sender: <xms:tdToZGgYWYy78Ro49QufI5JxQG2tAQCYqdD0xjfyimGjY7Xp7nZanw>
 <xme:tdToZHDwssU9C9wal4uRrYMZchYA5yZXviiYSFFk8Udkojv2b1PHQlUxmalLK2_7F
 i4iEAmcOlpFSJmKpnE>
X-ME-Received: <xmr:tdToZOFX1a8aRSQm19V6zn0mX5UYzwUCgml8_EwiXSx6v3J0WPx31_rE2NuCzz0>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddvkedgleelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth
 ekredttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehg
 uhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpefhffehleejffegffeugefhkeektd
 ffgfehjedvgeejtedtudehueffgffgfeejheenucevlhhushhtvghrufhiiigvpedtnecu
 rfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:tdToZPT8GfFBW5sKCmPWJkbzypnCn53l2LrLJ1Nl-uJU_y3hs5hufw>
 <xmx:tdToZDywhwbsGpqZNSj4m-lkS1tDlp4HYaBMaFITgWTtLPaOuUY40g>
 <xmx:tdToZN6NUrDA2b6XjBwYL-lvBUNV2YjDogMt0R1g-LKdcS3z_oqsFg>
 <xmx:tdToZMoyEG8oAwN6OeSBHtSxWGIYgDXIxyBI0zAa5S9xtF_1tvlYyw>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 25 Aug 2023 12:20:04 -0400 (EDT)
Message-ID: <5fc3aec1-019e-49c8-d939-91042f16650b@HIDDEN>
Date: Fri, 25 Aug 2023 19:20:03 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
Content-Language: en-US
To: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>,
 65520 <at> debbugs.gnu.org
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <m2msyfr4c4.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 65520
Cc: Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

On 25/08/2023 10:03, Gerd Möllmann wrote:
> Dmitry Gutov <dmitry@HIDDEN> writes:
> 
>>> In C mode, Xref works using Eglot, in ELisp mode it uses something
>>> else
>>> (I have no tags tables).  Both work really well, but I apparently have
>>> to be in an ELisp buffer to use one and in a C buffer to use the other.
>>> Feature request: Is it possible to use more than one backend at the
>>> same
>>> time?  So that I could C-M-. to find an ELisp function while being in a
>>> C file?  I couldn't find something like that mentioned in the docs, so I
>>> guess it's not yet possible.
>>
>> No such capability at the moment, but we indeed have an ELPA package
>> xref-union which implements the "merging" feature that has been
>> requested in the past.
> 
> Thanks also to Visuwesh for pointing me to xref-union.

Have you tried it? By setting up both it and the xref-backend-functions 
manually (in a hook) in every relevant buffer you might get more or less 
the requested behavior. If not, what does feel unsatisfying still?

>> A naive approach, or for the new code to search across different open
>> buffers and look for different available xref-backend-functions
>> elements. And then prompt the user, and then call (?) the said
>> function in one of the buffers it was found in, because in all
>> likelihood it would fail in unrelated ones.
>>
>> Perhaps the solution is to add a new facility to Xref, where different
>> "projects" would be able to register globally in. A feature request
>> indeed.
> 
> I'm not sure about the "different project in the same session" thing.
> 
> My mental model is like so: I'm in a Git repo (Emacs), which is, I think
> also a project in the project.el sense.  This project contains differnt
> sets of files for which information is available using different
> backends (Eglot, Etags, others depending on the kind of project).  What
> U'd like to have is something on the level of such a project, if you
> know what mean.  That is, M-. would take all available info for such a
> project into account.

Indeed, it's also a question of mental model, which we might have 
different. When I was saying "different projects" and "register 
globally", I was thinking of being able to jump to Emacs' sources and 
hack them from anywhere: from any other project I might be working on at 
the moment.

If we're talking about Emacs development only, a "combined" backend 
might make more sense (see the other email).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 25 Aug 2023 16:17:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 12:17:34 2023
Received: from localhost ([127.0.0.1]:41104 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZZV8-0008VP-1u
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 12:17:34 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:37467)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1qZZV3-0008V8-JT
 for 65520 <at> debbugs.gnu.org; Fri, 25 Aug 2023 12:17:33 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailout.west.internal (Postfix) with ESMTP id 8E41D3200B77;
 Fri, 25 Aug 2023 12:17:18 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute6.internal (MEProxy); Fri, 25 Aug 2023 12:17:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to; s=fm3; t=
 1692980238; x=1693066638; bh=O6KY/ENgWY81WgSpa3nx4cUD/63YF4Dmiju
 qylMT6JA=; b=ft7FsM6jIhD5kOu9ESiTlfIl4T9RNulRgJVEgwg1zn6rsvel1HE
 xgGN37kWDbjb1ZRGHIvyjqOyjZMbtTnemoRlQeSg6yXpfR/MaiRR5XrzBGfzxQ88
 Yv2rCyCT0fiukMKRbmw5xidiQ3UOCwftI44F0KZmy9qaDPN8F0k68hElStXtDFnU
 xdCMEyUlF2cBpZMO+/q3PiXMhzOOrNX6sO65XjJm5PBR2D1GfMtVfcKyBpISvSQu
 wM3OHcUPW6ZbfzsLTX5tVXl/EDHT8zlA27ubOBxC77vECd/IUOm9e7Z5Zcx31wQS
 8BnCBeCo52FvGWzIX+jBakjZpYFKUmCgOBA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=
 1692980238; x=1693066638; bh=O6KY/ENgWY81WgSpa3nx4cUD/63YF4Dmiju
 qylMT6JA=; b=1OWqNk6OS+KSbclpnYW1Um5Pz6e5H+EJRFMIzQECHpbLtS6fYWq
 ONNdVYtiRtZJgqShc9DN+D1Avce6ADRaPStB22dPuU1+pjsxfzOuk6UStfJVxBQW
 7UcApqjd4jv46P/2NVqPILDPHZOhZ/giKA87kq5pFbKf1pQSWJnDarZGNdcWEm4b
 C7CVZ2dVGlkxchS3R3soxj9RhB2cP6/H912eRJCgJCxyQ1fzv40WaLm1vsHFUnGA
 YtDygmSkNDEIsHtx1GlsRFC0JXifaT3AMHlu+gFZML4jhZGMVroavaycXzmgRYRf
 221wfGUp0isIGzAKrlptulTcBOxXo0+bxsg==
X-ME-Sender: <xms:DdToZOYU1-CaQ1DZkMa7rR4OHV5bYN4fPvzvEHaG9pygTAuvtcB1PQ>
 <xme:DdToZBamWPisPgOP2m3uAdh_HbbXZ5UN-z94whn20L29Qs2twX3MKjWqKx21vAPGH
 WgVNW1BDmhhYQMARUE>
X-ME-Received: <xmr:DdToZI_TnorQPFVTFCsRKnIIGx8W0R9EFRSI50T0-XEefPSklsDwqlLLdI2W92o>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedruddvkedgleekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth
 ekredttdefjeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehg
 uhhtohhvrdguvghvqeenucggtffrrghtthgvrhhnpefhffehleejffegffeugefhkeektd
 ffgfehjedvgeejtedtudehueffgffgfeejheenucevlhhushhtvghrufhiiigvpedtnecu
 rfgrrhgrmhepmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:DdToZAr6aQZP0XTiGHN855-R5zn2_tHVijiumQw4nCGu5cM_lsnOHg>
 <xmx:DdToZJo2QFt3ixGCH-krcDN7sjmD4a5hwOucEA0qDxZH4mF6-H-owA>
 <xmx:DdToZOQ3RO4KKRvJHeQspWD8chgfAH0knerq23U6f94hQnXKrCsFOg>
 <xmx:DtToZKB8vhrvT25jFGbwJec1XmK60KpCQD1NT4ohlFZpA3M-6tBirA>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 25 Aug 2023 12:17:17 -0400 (EDT)
Message-ID: <929f86c4-edb6-46f5-f24c-3b46054a0ad4@HIDDEN>
Date: Fri, 25 Aug 2023 19:17:14 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.13.0
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
To: =?UTF-8?Q?Gerd_M=c3=b6llmann?= <gerd.moellmann@HIDDEN>,
 65520 <at> debbugs.gnu.org
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <m2msyfr4c4.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 65520
Cc: Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.7 (--)

On 25/08/2023 10:03, Gerd Möllmann wrote:
> My mental model is like so: I'm in a Git repo (Emacs), which is, I think
> also a project in the project.el sense.  This project contains differnt
> sets of files for which information is available using different
> backends (Eglot, Etags, others depending on the kind of project).  What
> U'd like to have is something on the level of such a project, if you
> know what mean.  That is, M-. would take all available info for such a
> project into account.

One possible alternative is to treat this situation not like a new 
feature, and write a specialized new Xref backend which would collect 
both the info from Lisp and from TAGS when you are anywhere inside the 
Emacs sources. It shouldn't take too many lines either.

The current existing alternative for that, like Eli pointed out, is 
xref-etags-mode: it disables Elisp's own backend and just uses TAGS 
everywhere ('make tags' in Emacs generates tags for Lisp functions as 
well). With the natural downside that you would need to regen tags 
manually for both types of files now. And that you're using Eglot 
instead ;-(.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 25 Aug 2023 08:26:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 04:26:42 2023
Received: from localhost ([127.0.0.1]:39226 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZS9S-0000wv-37
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 04:26:42 -0400
Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:57614)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZS9Q-0000wg-5x
 for 65520 <at> debbugs.gnu.org; Fri, 25 Aug 2023 04:26:40 -0400
Received: by mail-ed1-x52b.google.com with SMTP id
 4fb4d7f45d1cf-51d95aed33aso921109a12.3
 for <65520 <at> debbugs.gnu.org>; Fri, 25 Aug 2023 01:26:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1692951989; x=1693556789;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=4+TnVRYSFz7Q2G6qcbZ2Xhea1m+ut/OSV2LRcNoY2SU=;
 b=fVtpmr55VtMI8bOzSgH5XWy5/R97hP7qdEZT7Eeco9Tn436R7hO1w0hs1bimpxD2UJ
 a+Y/kf7hTnGZ86f1bHXpFdR2/dMgUKftTIICFvfTxfcIOeMU9Q/DoMqbXupfygZzaYcb
 LwirxfFDuHIHS8ab0mlLQOb0PHRti3kcVZBSAifTBx7XULwSW8WIne7hHyyCpA0gYJR0
 ursiAGChvwoGGh+JGbPtFIngXefXtXfjtqaelgVmbt7CTdIAVf/aw/cHa3khQhJTDA+j
 znbDw1SlKD/6NCqLOxYNoEiaxjm00bF1OBWOVKf1Tsu4enVQMRw3GORbQh4c4go2m5/e
 VwKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1692951989; x=1693556789;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=4+TnVRYSFz7Q2G6qcbZ2Xhea1m+ut/OSV2LRcNoY2SU=;
 b=lF+0zPafDmxtmOHQd5G87fKtzy+aH+86BrsxMmTaZXmeJPlc1Zy0ysv5xFHkmjg4bR
 DWuKNPYtf491f0qz/vJKe2NzrbJGZ1+4hIZbz4RNZ9sJgKjKNgUf3E+a9+Ulm5kU2oaW
 r+LWR3X6jGSxHKG3pNySLdUKAlm8ljqGQa/GuBzdEyfSlYL8VjKXQFl+SqFIfFYu1fQP
 3TQRqeyFDrY8/c5OWsal3/OxBnzNJXqnsjLnaoxHQQ0GkMyuY6Q/Z7Mn24HXJfPmPIUw
 OHlXdokIC007/VAGeIqoLvZIKBAxiBbJ3Q/T/jdN4al8Ynj2nvpoEN759MdvUzgcI+ND
 9Tcg==
X-Gm-Message-State: AOJu0YxQCDzjpUKB+bCzgHlWNSjF7tGyhOOIUam7K5oWWtgMSPPonpYX
 bXGOCoOVuKVBx362dnKx+0M=
X-Google-Smtp-Source: AGHT+IEFA+ChfFnXfD3NUsnivm4kYhUMA6C9bar4Xvt+jmlwCGu3+C2V4X9wWPtVZJE7qBpJyl30Eg==
X-Received: by 2002:aa7:d78d:0:b0:522:1d30:efce with SMTP id
 s13-20020aa7d78d000000b005221d30efcemr11692902edq.22.1692951989441; 
 Fri, 25 Aug 2023 01:26:29 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36a34.dip0.t-ipconnect.de. [217.227.106.52])
 by smtp.gmail.com with ESMTPSA id
 bf8-20020a0564021a4800b00529fb5fd3b9sm749168edb.80.2023.08.25.01.26.28
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Aug 2023 01:26:29 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: 65520 <at> debbugs.gnu.org
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
In-Reply-To: <m2msyfr4c4.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 25 Aug 2023 09:03:39 +0200")
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
Date: Fri, 25 Aug 2023 10:26:28 +0200
Message-ID: <m2il93r0i3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65520
Cc: Dmitry Gutov <dmitry@HIDDEN>, Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> My mental model is like so: I'm in a Git repo (Emacs), which is, I think
> also a project in the project.el sense.  This project contains differnt
> sets of files for which information is available using different
> backends

Just want to add, because I didn't clearly state that: these set of
files don't have to be disjoint, i.e. more than one backend might have
information about the same file.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 25 Aug 2023 07:48:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 03:48:26 2023
Received: from localhost ([127.0.0.1]:39151 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZRYP-0005fc-MJ
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 03:48:26 -0400
Received: from mail.eshelyaron.com ([107.175.124.16]:40554 helo=eshelyaron.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1qZRYN-0005fI-Nx
 for 65520 <at> debbugs.gnu.org; Fri, 25 Aug 2023 03:48:24 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com;
 s=mail; t=1692949698;
 bh=EFZQ+jVJ7V/Y7UYUDzoW0KbxHNdE1ZRR3Isf4JLuUMw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=RRbC1Mn0OzMdd++IgmjXreUJpgJxqqmut8dheGaOLn1/sK9Dnh5FTWW1XigaQHG9S
 dgoadDV2GCN4xJ6ahoYiG7sPSbWdeDL+PKet9lK+NkwpYtpGQzT1QV/jV5IuHKudL7
 zIgEOFHKQgZmkkvNWUDZg6fC9IzvoJumOrRjiE7vVQS4dYvHA09OflFyKPii20GrTC
 PjHDU8eY4rANf3mAWgkx2qG/0rjBcu+Uv9jZvnWzyNu1vDoDfpf4TWwDjU+UpXIntj
 fmF8eU71bFPDw/VEvW8V0ru67ZRcdWDy0vVfnsMuijq9FaCiBQSmdRjjR4G3Xr/53L
 b2qhpNU+AW93g==
From: Eshel Yaron <me@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
In-Reply-To: <m2msyfr4c4.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 25 Aug 2023 09:03:39 +0200")
References: <m2y1hzr50i.fsf@HIDDEN> <m2msyfr4c4.fsf@HIDDEN>
Date: Fri, 25 Aug 2023 09:48:15 +0200
Message-ID: <m1h6on36m8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 65520
Cc: 65520 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>,
 Dmitry Gutov <dmitry@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

>>> Feature request: Is it possible to use more than one backend at the
>>> same time?  So that I could C-M-. to find an ELisp function while
>>> being in a C file?  I couldn't find something like that mentioned in
>>> the docs, so I guess it's not yet possible.

Note that specifically for Elisp functions, you can use `find-function`
from anywhere (including your C buffers).

>> A naive approach, or for the new code to search across different open
>> buffers and look for different available xref-backend-functions
>> elements. And then prompt the user, and then call (?) the said
>> function in one of the buffers it was found in, because in all
>> likelihood it would fail in unrelated ones.
>>
>> Perhaps the solution is to add a new facility to Xref, where different
>> "projects" would be able to register globally in. A feature request
>> indeed.

> My mental model is like so: I'm in a Git repo (Emacs), which is, I think
> also a project in the project.el sense.  This project contains differnt
> sets of files for which information is available using different
> backends (Eglot, Etags, others depending on the kind of project).  What
> U'd like to have is something on the level of such a project, if you
> know what mean.  That is, M-. would take all available info for such a
> project into account.

That sounds really interesting!  The way I'd suggest structuring it is
introducing a new command `project-find-definitions` that prompts for an
identifier defined in the current project and jumps to it, similarly to
`xref-find-definitions` but limited to the current project and not
limited to the current `xref` backend.  The way
`project-find-definitions` finds this definitions would be up to the
`project` backend.  Crucially, ISTM that it would be better to build
this as an extension of `project`, not `xref`.  Of course, the "naive
approach" based on `xref` described above would be a perfectly good
starting point for any `project` backend and may be used as a default.


Best,

Eshl




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 25 Aug 2023 07:21:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 03:21:18 2023
Received: from localhost ([127.0.0.1]:39127 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZR8A-0004r9-5T
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 03:21:18 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:36684)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1qZR88-0004qt-Or
 for 65520 <at> debbugs.gnu.org; Fri, 25 Aug 2023 03:21:17 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1qZR7y-0003Rj-TR; Fri, 25 Aug 2023 03:21:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=iqdwOidBZPQqz/WPmcREk7ensVQh/Nixz+QT/WDRbMo=; b=Q2oHSj4Ugu6eIFsj3w1r
 NjJepKkloT425n+xwjs5DV2cdhSvMB7dxPXwKpgFKokFuOSqIXjPk5/yQaZkMUgx90t9uu8y1oBWU
 6asBM8pw2Y/WZeQN346+0HnVqyzeKupdeSMjcKQU0Nx4vvaecB60Qz7qjT1Vtp9WX/KAROyL9Rfx2
 rrh15ceMasaKwtZUz2avHplGSI9JgvjoNivSemju0WpM8YW3HdYUB1QuA10y1bOWx0gJoAi9sFBbN
 uizjpEXLN7s6qySgWFLrQc94DYHhi/zqimJGZ+rAXh+84BVQPDr4hyoTzj3iLonlfEG9urpDgLElS
 CSGGUfkLXvfMsA==;
Date: Fri, 25 Aug 2023 10:21:34 +0300
Message-Id: <83jztjoadd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
In-Reply-To: <m2y1hzr50i.fsf@HIDDEN> (message from Gerd
 =?utf-8?Q?M=C3=B6llmann?= on Fri, 25 Aug 2023 08:49:01 +0200)
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
References: <m2y1hzr50i.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 65520
Cc: 65520 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Gerd Möllmann <gerd.moellmann@HIDDEN>
> Date: Fri, 25 Aug 2023 08:49:01 +0200
> 
> In C mode, Xref works using Eglot, in ELisp mode it uses something else
> (I have no tags tables; don't know how that works).

It works by using the ELisp's own backend.

> Both work really
> well, but I apparently have to be in an ELisp buffer to use one and in a
> C buffer to use the other.
> 
> Feature request: Is it possible to use more than one backend at the same
> time?  So that I could C-M-. to find an ELisp function while being in a
> C file?  I couldn't find something like that mentioned in the docs, so I
> guess it's not yet possible.

Probably not what you had in mind, but "M-x xref-etags-mode" will
cause ELisp to use etags as well, and then you can have what you want
(at least in Emacs) with a single backend.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at 65520 <at> debbugs.gnu.org:


Received: (at 65520) by debbugs.gnu.org; 25 Aug 2023 07:03:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 03:03:53 2023
Received: from localhost ([127.0.0.1]:39102 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZQrI-0004Nm-QA
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 03:03:53 -0400
Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:47226)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZQrH-0004NZ-88
 for 65520 <at> debbugs.gnu.org; Fri, 25 Aug 2023 03:03:52 -0400
Received: by mail-ed1-x52f.google.com with SMTP id
 4fb4d7f45d1cf-52a06f5f556so880029a12.2
 for <65520 <at> debbugs.gnu.org>; Fri, 25 Aug 2023 00:03:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1692947021; x=1693551821;
 h=mime-version:user-agent:message-id:date:cc:references:in-reply-to
 :subject:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=QSDe/WUGmnQag2k5/x3zOLlteB1glX8w/kYYRIksb+U=;
 b=oVRCk9Rsf1kFWCyeBrzMsctTdBknqeKQ/eCobSx/klV7tBFxkc752RjaEu/LlflCkA
 PXYC5tPgSjl9T/g/HM296U4YpAMpoEv7FBQY3+yPhMevgDkyp3MCRfJ7Bariuu8UJhlC
 IDyKWjowtSXT3a/WwizAHTdO0KdhBAAsmawoO+LvecPYihI1nxVjf4ecv+kL+XshCl2I
 vKLvuOSvaQ1zRyvW0Q7QcomPm8XJkV3PCK6heVaYEQ/obzEUhLltTgZjAoF21Bonjfuu
 nHi4ZyFd6fBVQtDKWdDYd7Ieo9Gt7QNq2d2d1NSO38Gsk+Zokvo+ODdQNBmZ7Z3tPzr5
 O8RA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1692947021; x=1693551821;
 h=mime-version:user-agent:message-id:date:cc:references:in-reply-to
 :subject:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=QSDe/WUGmnQag2k5/x3zOLlteB1glX8w/kYYRIksb+U=;
 b=WYx1FoowzXoliXC6nQ9xAvmxh8nr7FUqW7WTvow5EByWwSJh16CpqHJJsTybKK9E/g
 9QPfUWwwGITPiYsaW1Xd+HHrgllgNfT2ljTK0E4oZjQAsMJnDDdl6fO5SGEtbzWj9o2T
 f8fWX0sWOl9rQ07e87ayVE+TiOgk4tp/fyOPUpzASIBXRWVFicKxxFk5jFwlixlJh/LP
 6LNmt3P7rSzP1rpts+w6to0amCE+5KiOaUEBnMAmeQt/QUZX4COwhimtP2AkkJG04x1d
 olzCKDiJDD/Q4Opzg4uf0X+LG1ml+95aZqJ09AaqCKCEJSo4vWn2aA7X7Z5um2C0H16/
 OM3Q==
X-Gm-Message-State: AOJu0YwgXmtGXYDRkXa/6SjoMhmHzcj0G5EC2aHg3BydLBA9biQ/XJA/
 NZq5clQ8jHw+EBDmXWCG/68=
X-Google-Smtp-Source: AGHT+IF8a9XeWMjnO6RB6aMIGbHuamQzk9DorTUcrp6GAMeLNCxEAxHQGd33zIxfJmmkl8aM3ZO+IQ==
X-Received: by 2002:a05:6402:1a46:b0:51d:9db8:8257 with SMTP id
 bf6-20020a0564021a4600b0051d9db88257mr13800764edb.30.1692947020702; 
 Fri, 25 Aug 2023 00:03:40 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36a34.dip0.t-ipconnect.de. [217.227.106.52])
 by smtp.gmail.com with ESMTPSA id
 k6-20020aa7c386000000b0052889d090bfsm673256edq.79.2023.08.25.00.03.40
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 25 Aug 2023 00:03:40 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: 65520 <at> debbugs.gnu.org
Subject: Re: bug#65520: 30.0.50; [FR Xref] Project-wide operations
In-Reply-To: <m2y1hzr50i.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Fri, 25 Aug 2023 08:49:01 +0200")
References: <m2y1hzr50i.fsf@HIDDEN>
Date: Fri, 25 Aug 2023 09:03:39 +0200
Message-ID: <m2msyfr4c4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 65520
Cc: Dmitry Gutov <dmitry@HIDDEN>, Visuwesh <visuweshm@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Dmitry Gutov <dmitry@HIDDEN> writes:

>> In C mode, Xref works using Eglot, in ELisp mode it uses something
>> else
>> (I have no tags tables).  Both work really well, but I apparently have
>> to be in an ELisp buffer to use one and in a C buffer to use the other.
>> Feature request: Is it possible to use more than one backend at the
>> same
>> time?  So that I could C-M-. to find an ELisp function while being in a
>> C file?  I couldn't find something like that mentioned in the docs, so I
>> guess it's not yet possible.
>
> No such capability at the moment, but we indeed have an ELPA package
> xref-union which implements the "merging" feature that has been
> requested in the past.

Thanks also to Visuwesh for pointing me to xref-union.

> You are asking for something a little different, though: to be able to
> switch to a different language/project that's also present in the
> current Emacs session. Its backend function cannot be found in the
> xref-backend-functions in the current buffer (local or global), unlike
> the examples with mixing in etags or imenu results, like mentioned by
> Visuwesh.
>
> A naive approach, or for the new code to search across different open
> buffers and look for different available xref-backend-functions
> elements. And then prompt the user, and then call (?) the said
> function in one of the buffers it was found in, because in all
> likelihood it would fail in unrelated ones.
>
> Perhaps the solution is to add a new facility to Xref, where different
> "projects" would be able to register globally in. A feature request
> indeed.

I'm not sure about the "different project in the same session" thing.

My mental model is like so: I'm in a Git repo (Emacs), which is, I think
also a project in the project.el sense.  This project contains differnt
sets of files for which information is available using different
backends (Eglot, Etags, others depending on the kind of project).  What
U'd like to have is something on the level of such a project, if you
know what mean.  That is, M-. would take all available info for such a
project into account.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Aug 2023 06:49:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Aug 25 02:49:19 2023
Received: from localhost ([127.0.0.1]:39082 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qZQdC-0003ys-Rh
	for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 02:49:19 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57358)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1qZQdB-0003yc-2S
 for submit <at> debbugs.gnu.org; Fri, 25 Aug 2023 02:49:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1qZQd0-0004bM-Hj
 for bug-gnu-emacs@HIDDEN; Fri, 25 Aug 2023 02:49:06 -0400
Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <gerd.moellmann@HIDDEN>)
 id 1qZQcy-0005tA-FP
 for bug-gnu-emacs@HIDDEN; Fri, 25 Aug 2023 02:49:06 -0400
Received: by mail-ej1-x631.google.com with SMTP id
 a640c23a62f3a-986d8332f50so69503266b.0
 for <bug-gnu-emacs@HIDDEN>; Thu, 24 Aug 2023 23:49:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1692946142; x=1693550942;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=tS5ntMxut1NFkaH5WbF3MrP97a0rhTg0+lMBgdba16A=;
 b=UBAadzbEaWuD8Q+z5qf2iIR/FgTJdizy6urQOpBjatCOh++oFePRBgG6RFhW4SdgVH
 kFfX+0Ak71G9PySGR8AK1QiR9R6ObcrZgxt92ygnx2bDzB10/vMuzKJoFwP/l+uzHaVP
 vP4M9zWMxhOr7goyPZVb2q8NElZd8ES5srcXxPi51TgVnYDu4Hgml5dsfkmZrWTed+GG
 rkCtYNulgYMKZxSfA3PFWDmZSs/SwB3HDuxggG2AKzxb8897eCmyW4fiO/vsJenmp/37
 Rpdly2tSc2Tx0HYDYxt+vszToUYik/yek9ZupL35dYQ1pED1gFLYGNKICMV9OdhsbODi
 cmLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1692946142; x=1693550942;
 h=content-transfer-encoding:mime-version:message-id:date:subject:to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=tS5ntMxut1NFkaH5WbF3MrP97a0rhTg0+lMBgdba16A=;
 b=XsWRQVTLHQKWj0/Y0jldqK1jXB6ysBm86fgzh5GO7wtF7K0y2VhuSl8yQWhERVsBwu
 pr9TuuYQNGHb+KA9I9WGB1/MCD6rcADXVnMAisd9aTGPPOeT/13Wz95UaywdhifMse7R
 kqv4ZOvZXKfEb/mYj5MuY9vAClhhweu4ifmcRXmWd2pMRMadpqwgCtJiQr77gpHxGv0h
 arpHpzRELH6Vx4tYQ5jU8GA3UZJZDD93g+CYojyuM+U3G5yr9meu2h6/I/m0danJoeGi
 xf418gOn7GM7XZKYT7sYq1oJ8u+NlTpF9fLtKabdvwFJMcuG1vvE2mB/47BsqaG4raHE
 6QPg==
X-Gm-Message-State: AOJu0Ywini6vt6x0mAvrqK6vEIZ4y05I6gyFeTmTdoz3UILrTCOl4iPB
 tx35w87knkOiwit5/O5noQVb9FlnmQHpdQ==
X-Google-Smtp-Source: AGHT+IGKPu4b5wdN77wavEiU3BISIxP14xLyj8fO/asoI6sZIq17zqZr01rYbVVBZAXAHgFOOm0q2g==
X-Received: by 2002:a17:906:2097:b0:9a2:19ea:88f7 with SMTP id
 23-20020a170906209700b009a219ea88f7mr3085861ejq.64.1692946142513; 
 Thu, 24 Aug 2023 23:49:02 -0700 (PDT)
Received: from Mini.fritz.box (pd9e36a34.dip0.t-ipconnect.de. [217.227.106.52])
 by smtp.gmail.com with ESMTPSA id
 gh20-20020a170906e09400b0099bcb44493fsm610337ejb.147.2023.08.24.23.49.01
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 24 Aug 2023 23:49:02 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; [FR Xref] Project-wide operations
Date: Fri, 25 Aug 2023 08:49:01 +0200
Message-ID: <m2y1hzr50i.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::631;
 envelope-from=gerd.moellmann@HIDDEN; helo=mail-ej1-x631.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

In C mode, Xref works using Eglot, in ELisp mode it uses something else
(I have no tags tables; don=C3=84t know how that works).  Both work really
well, but I apparently have to be in an ELisp buffer to use one and in a
C buffer to use the other.

Feature request: Is it possible to use more than one backend at the same
time?  So that I could C-M-. to find an ELisp function while being in a
C file?  I couldn't find something like that mentioned in the docs, so I
guess it's not yet possible.

In GNU Emacs 30.0.50 (build 2, aarch64-apple-darwin22.6.0, NS
 appkit-2299.70 Version 13.5 (Build 22G74)) of 2023-08-24 built on
 Mini.fritz.box
Repository revision: 53c07bd04bf59f63e49af2c626714bf3fdd03ad6
Repository branch: scratch/pkg
Windowing system distributor 'Apple', version 10.3.2299
System Description:  macOS 13.5




Acknowledgement sent to Gerd Möllmann <gerd.moellmann@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#65520; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 2 Sep 2023 16:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.