From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Adding support for xref jumping to headers/interfaces Date: Sun, 26 Nov 2023 20:37:55 +0000 Message-ID: References: <953056ea-9cfb-34ad-6515-9036633dfdbb@yandex.ru> <2d964697-2b4e-64c7-2f16-aae87e57def4@yandex.ru> <87il697r5g.fsf@catern.com> <87r0kw8nxu.fsf@catern.com> <3fe5a8cd-b355-d7eb-10ad-8846aef3387b@gutov.dev> <878r6mx1xc.fsf@betli.tmit.bme.hu> <90e4b9a7-3b51-587d-e317-b89e5d5464d9@gutov.dev> <87sf4scxax.fsf@betli.tmit.bme.hu> 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="39135"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Felician Nemeth , Spencer Baugh , emacs-devel@gnu.org, Eshel Yaron , John Yates , Ergus , Filipp Gunbin To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 26 21:39:21 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 1r7LuS-0009y7-LB for ged-emacs-devel@m.gmane-mx.org; Sun, 26 Nov 2023 21:39:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7LtX-0006Hg-9L; Sun, 26 Nov 2023 15:38:23 -0500 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 1r7LtO-0006Gh-6I for emacs-devel@gnu.org; Sun, 26 Nov 2023 15:38:15 -0500 Original-Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7LtM-0006zi-IA for emacs-devel@gnu.org; Sun, 26 Nov 2023 15:38:13 -0500 Original-Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-507975d34e8so4959278e87.1 for ; Sun, 26 Nov 2023 12:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701031089; x=1701635889; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tRXGYiY6B/IYElOC4DPTqps/gzHhTGF7JpheVKveY58=; b=YVxZAf3IJxF6OO32eZoKoiOxziMsjSXxCEL38DqdzPXh+uQt92lNqVowlYUci1yLkn V5iDM7ITkTA+et2ID+vKIGuC3XLU/H1CgN3MrHYCfB7cNVsxtg99Uzntk8I4e+LXcKMb Wy2FRyWbeov1Ai7U205BwUa+BtV9zEOKzPmO7DYIjVIZ0liLW0qDN5vk/Si8rwm8mhx4 caDNZ8pErNZWk8INPfUqO6FCPtqkfhOYPVKOSGlLLlqm2icv5r3/dDnHLecjrHGXeTO2 gtE9OqRwhSpGNIH7U8EsfRm4FbPsgjDa2mhO+xOH8sD11e+qqkJJWpog5qOz7vklH9PC 4F+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701031089; x=1701635889; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tRXGYiY6B/IYElOC4DPTqps/gzHhTGF7JpheVKveY58=; b=cUoXH4DUuNtKMH7OcEW4XihFOatY2dSwIApShkKbDi6pwhwwxz/pOKJGp2X6Huj+lA I9AOvMKwHEVV2KO1h2YcClXPCfl6+sFpBtVgcFliiwCBliG7xW0aLyahYWh1EghG5cx/ NvumoOkJat4jPqlcugUStARD1q9WLHVXh2P6SgdiQ3R9d1QOwvI6J5058Ja1NgoVydoH wDMTAHXEoLicHzKiQoyHzsLH7MJUSprAKhQa2N8I4uyLrCKwbngH0iq243wa57seL4HK ss+t87trsRR1ciEJM6d+hrsbrfcwFRYUoZ3y9h80GX9cDqFeCcKyXR3FEzQujBvDi052 ZPrw== X-Gm-Message-State: AOJu0Ywahz21V6X+aC7SRmzhKrxdetAgnUte8YizOrTNF+/73+CLK2OD PBC3zgkYRpaILwZDUd5Qc9X0Gbk9H8Rx5TZ5nBI= X-Google-Smtp-Source: AGHT+IH6y4OTua63Tw+1YcDN9O3PAy6+QBvy28DjMKSQM3ZTXDsd6fuitzkWQmWvSi3TLPXgZdhkPUGMCDWH2xWkDHE= X-Received: by 2002:a05:6512:b03:b0:50a:a5c6:35ea with SMTP id w3-20020a0565120b0300b0050aa5c635eamr8245434lfu.50.1701031089157; Sun, 26 Nov 2023 12:38:09 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x12d.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, T_SCC_BODY_TEXT_LINE=-0.01 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:313251 Archived-At: On Sun, Nov 26, 2023 at 8:15=E2=80=AFPM Dmitry Gutov wro= te: > Eglot's integration shows that we don't in advance know whether a > backend actually supports a specific kind. At least, we cannot know > whether that kind is supported for a specific symbol at a given position > (my tests with Eglot in the Emacs repo and clangd more than often ended > up in "nothing found"). So to provide a list like ("definition/A" > "documentation/B" ...) we'd have to first query all available backends > about all kinds for the symbol at point. I think somebody said that this > can be slow at least for some kind/backend/ls combinations. Who? Was it me? If so (I don't think so), I take it back. This is absolutely fine. Eglot takes this list, from the capabilities reported at the start of the LSP session and is very fast. > >> 2. Whether Eglot should, in time, deprecate its corresponding three > >> commands if Xref adds its own versions. > > > > I think one of Jo=C3=A3o's design goals of Eglot is to rely on existing= Emacs > > features as much as possible. > > That was my expectation indeed, but lately he said that since the > commands are already in Eglot, they will remain there. This is not my argument, as you well know. Jo=C3=A3o