From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: Xref/Eglot feature requests and a question Date: Thu, 24 Aug 2023 19:36:26 +0530 Message-ID: <878ra0357h.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11516"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Gerd =?utf-8?Q?M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 24 16:07:19 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qZAzX-0002mM-Lz for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Aug 2023 16:07:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZAys-0002OW-DF; Thu, 24 Aug 2023 10:06:39 -0400 Original-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 ) id 1qZAyo-0002KR-RV for emacs-devel@gnu.org; Thu, 24 Aug 2023 10:06:35 -0400 Original-Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZAyl-0003Kd-ST for emacs-devel@gnu.org; Thu, 24 Aug 2023 10:06:34 -0400 Original-Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-1bf078d5f33so53880095ad.3 for ; Thu, 24 Aug 2023 07:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692885989; x=1693490789; 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=n5jvoZesVOxWMJ75bzVwpOQwfcjpdg9r5zwiNjBpZiM=; b=RJuciYIu3W9aHmiiRHZbxdPuy0UKS8Cux7cwSRbbpf5cp1BW19f4Z2fm0t254XVSED B7QWBcdtI964FAsfL6EkLzckL0PDC0SWoL0RiPAiJIAtyY+md88YrhtBPv6k1VTZ8lB7 0Fl0JgdkkUruJwba2G/C8eSAWZQfMLm85kFFM/uzsRF/ma+yqzaBuVzZ52cZHrtTdNUY imqad7c1lj4QxRd3032f/Yognnr7mdkl4r91jCCghN9PgJE5vq38GfymhRgvXq+eMW9b +DaXgc8/DBMOJQaMcqEJyf1RKYNZOSC/yP6MHWgu6AuCgUEohIlRkdn5Meo+nd0wb1pF 1Thw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692885989; x=1693490789; 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=n5jvoZesVOxWMJ75bzVwpOQwfcjpdg9r5zwiNjBpZiM=; b=K1+tykpSP0HChQU1F7BKeBneZF7ZBTqxLyWnDCOwSJhcstJfIqoGXOejB5UEnai7ZB GlJHCErh++niEbJP00R03GJtzXrkdC/3Gn3kfhAroNhyiBQg8YaL3btNi0JxKMlkvQqq Z/wn7lgWOoFuzNF/CaZrxtxzpDcsyx5DIctBYllR6jtr3JZT9sTCGUwAXKlwKz+8jhgT 2hgtKrXvWMIY4wiaqKxXWpeQNga+gj/UfXfHqsWGQswtfec7oD8ImuSHBajm14BNd7nv IqjHn+UsUor1oJ1WeGy+3TbFlwGXGDnt3bcqXrrwjxXpbkSqo+10/2FrbyqSUthzXBOk Qrew== X-Gm-Message-State: AOJu0Yx5LB1fxhMFPsjdplQ4ASJsCNMFodEweEBIq20nBmU5CtoPMg6s F/DjS4o1ayFmDuRildY4vlfpiK+HaIjM+Q== X-Google-Smtp-Source: AGHT+IFLKN3D40iG6D+juQ8HEdazMTaGdmt7mkb7TzBMP3x/hMpAopM72VDdznfawRBKLxh4YxSSvA== X-Received: by 2002:a17:902:7087:b0:1bf:11cd:cde4 with SMTP id z7-20020a170902708700b001bf11cdcde4mr14091346plk.69.1692885989446; Thu, 24 Aug 2023 07:06:29 -0700 (PDT) Original-Received: from localhost ([118.185.152.162]) by smtp.gmail.com with ESMTPSA id u11-20020a17090282cb00b001bdccf6b8c9sm12774430plz.127.2023.08.24.07.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 07:06:29 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 24 Aug 2023 15:33:23 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::643; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x643.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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:309169 Archived-At: [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE=86= =E0=AE=95=E0=AE=B8=E0=AF=8D=E0=AE=9F=E0=AF=8D 24, 2023] Gerd M=C3=B6llmann = wrote: > 3. > > 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. Fallback to other backend was discussed in bug#28407, and there's also the xref-union [1] GNU ELPA package. IME implementing imenu-xref for bug#28407, etags xref backend was/is particularly annoying so I am not sure how well xref-union will work for you if etags is not the _last_ xref backend to check. 1. https://git.sr.ht/~pkal/xref-union