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: Sat, 11 Nov 2023 02:07:37 +0200 Message-ID: <06b91a2e-fe4a-76a7-9b84-a239d6d391ac@gutov.dev> References: <4639d7ca-2109-864c-33c0-38e65f26f262@yandex.ru> <835ybb3txt.fsf@gnu.org> <83wn3q311i.fsf@gnu.org> <412afa2d-5dbc-52da-39c4-99be3873929c@yandex.ru> <83o7p20wdi.fsf@gnu.org> <72b09256-5a1b-8962-9e3c-7d2ffd0dc0d7@yandex.ru> <83ilf925n8.fsf@gnu.org> <95afa441-18ae-e62a-be16-be73a545bbba@yandex.ru> <65a16247-1b1a-149c-b413-71612f88f184@yandex.ru> <9377bf2b-13ed-8d86-4294-0b88e6808d80@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13168"; 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 To: Spencer Baugh , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 11 01:08:36 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 1r1bY9-0003Dr-Ph for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Nov 2023 01:08:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1bXQ-0006H7-P8; Fri, 10 Nov 2023 19:07:49 -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 1r1bXL-0006Gj-O5 for emacs-devel@gnu.org; Fri, 10 Nov 2023 19:07:43 -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 1r1bXJ-0001mM-9p for emacs-devel@gnu.org; Fri, 10 Nov 2023 19:07:42 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3FDE55C02C7; Fri, 10 Nov 2023 19:07:40 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 10 Nov 2023 19:07:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=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=fm2; t= 1699661260; x=1699747660; bh=pxJXtOSn5gJ7pGR3gBrr8kqsAJhmE9hHtyx xOCmpnLs=; b=jEvuGDFLpmjxdzExxoeD6ihMUVuEQFOsfxu3ZjKpXkvtMft1k1C KAsulU/r+UMvsnJG2LQYNX4XTPBEeGh24xqhDmc/qBgEmVXoB/t9GAItjnrTBjbf rbmiAtQgkZVlYUbLRqYOQ3ZR8F3KFDPu9vAqNABmllDK1YxJfVN9q3uZQEhbW0LI y90MqHWtbNdJlXy3DfXicCSVlXzwtIfh3IkxYZ1XdlViOIvEPzF4+zyDs/Rsr1TT Zr1ZKOKiG/fTNkoWVyZjmXdhU9TlPSe4LAOGN99V21M4vONl2R1+9RfEUicRjPvj muvMHTJ64+rQJV0z/8PTZ/fJmc5yKGo7zwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm3; t=1699661260; x= 1699747660; bh=pxJXtOSn5gJ7pGR3gBrr8kqsAJhmE9hHtyxxOCmpnLs=; b=v hb14BbVFEZDFmHVF+bRW4+c39LysyVJa19hqpBPZSI3mCTzsNN7IOSUZjAaR60kE yw+CXSTIvUYsIK1i/WlYL/a8uAc1Padq+Se2XtHbTXh04nfmFtOkH40U4+jD47FP 9MJKvW8001dqJDgzIdoiprIF4QAEN8Xdtcj5xRtox4waCSz4GjKpavLtRpw6b2Hu 9JMEfZdhPBDRlLYyqODR23DvkXVaFbVbS7bSvTJCWJ/Ws9dkflh4Q9hyIq5tMq7Q uLfQlahIVxKvk/SPu/hlrxWCOwA9+OHBWPBJafafe2IJyrwQxK2IgAG/s0+kB4EK kRTReZwVjxRcg+5pDvMQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvgedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeghedthedujeeiteeutddtjeekheejteeukeehffdutdejuedvfeevueeviedu udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Nov 2023 19:07:38 -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: -60 X-Spam_score: -6.1 X-Spam_bar: ------ X-Spam_report: (-6.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, NICE_REPLY_A=-3.265, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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:312506 Archived-At: On 09/11/2023 19:07, Spencer Baugh wrote: > Custom kinds would still require you to type in the kind symbol. (Or a > backend or mode can make a "quick-access" command specific to that kind, > if they want.) If we leave all the UI decisions to the backends (both extra commands and the dispatch which kind to use in the "unifying" command as well), then there might be little point in adding extra infrastructure to xref.el itself. xref-show-xrefs is a public function, FETCHER just needs to return a list of xrefs, the same data that backend functions like xref-backend-definitions return.