From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Adding support for xref jumping to headers/interfaces Date: Mon, 27 Nov 2023 16:43:26 +0200 Message-ID: References: <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; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6947"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Spencer Baugh , emacs-devel@gnu.org, Eshel Yaron , John Yates , Ergus , Filipp Gunbin To: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Felician Nemeth Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 27 15:44:38 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 1r7cqh-0001XN-4g for ged-emacs-devel@m.gmane-mx.org; Mon, 27 Nov 2023 15:44:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7cpw-0001Np-RL; Mon, 27 Nov 2023 09:43:48 -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 1r7cpu-0001NF-87 for emacs-devel@gnu.org; Mon, 27 Nov 2023 09:43:46 -0500 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7cpg-0002Uy-Bd for emacs-devel@gnu.org; Mon, 27 Nov 2023 09:43:45 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 352175C0243; Mon, 27 Nov 2023 09:43:31 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 27 Nov 2023 09:43:31 -0500 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= 1701096211; x=1701182611; bh=7uVc6CJgubJ1BoInFEPJcKT66zA/kRp3t5r 6FE87XFs=; b=PMWq5XRGVjqjRaZxlZTXiQlUsuR35pI8dj3FJ/Ic5G/DLYIAXM5 yLnh7CZu/+jkLKxkBoUFN5OP+vzJTOGjwcqMf8ZLTgJIv8+/GHhqGK2Wo/d2/tKu xNNIQwHhfMDcX90NdJHbs62s5t2KfGnry2gL5Kyd/uOxuvUaqavdyBXvpRBKukQi FK2YvpKEj1zwQSDRd8AMV4tcOx/7rDhZ+vhMa2OngZLuA/bYMuSl9gLF60cnIIx4 GVJ7lLHAhP+kltUeG9XkHy711vLSWZaDkUIcxnY/WfR1u6SltLCf3l9ZwKX/0RSh iVkv8Ehw8MJRJmnT/Be+Zb+ltpl2WtwfBnA== 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= 1701096211; x=1701182611; bh=7uVc6CJgubJ1BoInFEPJcKT66zA/kRp3t5r 6FE87XFs=; b=CVnmJSSFXYoLhGd+EIADg9STCW1xlKKsOwzIE73bpEmos0ppdFR NzJBVIPyBlvIc//zL4fELSo9AElH5/S51WqltFKYzV8C2Zm5CtD5u0fsxGLRQNPZ chqRf7q3aTOUkx/dDMflbvCvxRuHzi5cNtMUG1i7gIzQ0q/esINyGSZBMir7WkF+ ApZYs/90TPGd3Oy/x0nEnuivc0NH4UH6K3x2TrCYhC3g88LY53GsilRr2JGn2qJT RLIaFfu6BgztUBRXTg/muqtZ7t9K8ZQW1fOLAsuzQX4a3qQcggOpKB035No1Fnsu avGApn/GHbzOHEA0ABG4GgkrFppGDfA0/Xw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeiuddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephfffheeljeffgeffueeghfekkedtfffgheejvdegjeettdduheeufffggfef jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Nov 2023 09:43:27 -0500 (EST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=dmitry@gutov.dev; helo=out2-smtp.messagingengine.com X-Spam_score_int: -39 X-Spam_score: -4.0 X-Spam_bar: ---- X-Spam_report: (-4.0 / 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, NICE_REPLY_A=-1.857, SPF_HELO_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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:313269 Archived-At: On 26/11/2023 22:40, João Távora wrote: > On Sun, Nov 26, 2023 at 4:08 PM Felician Nemeth > wrote: >> >> Dmitry Gutov writes: > >> However, in the past it made sense to find the first xref backend that >> knew the definition of an identifier. Now let's assume backend A >> provides definitions with letter "d" and backend B provides >> documentation locations also with letter "d". > > I think according to Dmitry these documentation locations > should be crammed somewhere in either "definition", "declaration" or > "typeDefinition" or "implementation". Go figure. Err, of course not. Every backend is free to return additional kinds (that's what the completing-read approach is for), and whenever we find out that particular kinds get supported by many backends (or by most of the available/popular ones), we could "pull them into the core", adding a global command with one binding which would work across languages. That's one of the balances to pick: both choosing a set of commands to support across the backends, and to allow frictionless extensions for special capabilities.