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 22:45:09 +0200 Message-ID: <536b5715-6ccb-0ac6-e7f0-e4aea54d71a0@gutov.dev> References: <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> <06b91a2e-fe4a-76a7-9b84-a239d6d391ac@gutov.dev> <87msvk8nw3.fsf@catern.com> 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="14352"; 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 21:46:08 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 1r1urm-0003Ud-Qx for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Nov 2023 21:46:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1urA-0004GQ-VP; Sat, 11 Nov 2023 15:45:29 -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 1r1ur4-0004G4-22 for emacs-devel@gnu.org; Sat, 11 Nov 2023 15:45:25 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1uqy-0003XJ-Sr for emacs-devel@gnu.org; Sat, 11 Nov 2023 15:45:21 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 140075C0148; Sat, 11 Nov 2023 15:45:13 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 11 Nov 2023 15:45:13 -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= 1699735513; x=1699821913; bh=J+S8NtQLrq0pDafWZoaMM/w3ntXLEO+4KEJ 3LptkgRA=; b=kzxcmDBY9gqWDtMvqDE+YC1X5yoF1Bs/kzwWc8UUnKzJuNgjfyR pkIEtg3cQWsgdcBtxIJTs/JD+3vzZ1Ge3bH50G26gMk/EuXYfSAuEpPL/k6qjPJX HwpaDmmBX4wh6QFYhTMXGiLzrCZ5B1mg/IMIa8pGUqrFa6eW6zxFlJbnTLlJJ6Oa PjWDRs51nMT9EE5KIWCS+8jgikmEZ5MjB4rsdeEN2cLnxojQwdtjJOQjapbJioYX HGQfv6/Xj8ICKDobZK3eAbF3r4A+T6zjc8IE38LNAUdRXx/u/f/muHYzpdmQ9e/w h6upCBujS0NQchEGQembcwjkLCtg5+QC5jw== 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=1699735513; x= 1699821913; bh=J+S8NtQLrq0pDafWZoaMM/w3ntXLEO+4KEJ3LptkgRA=; b=q c3XN0B3oAeanLvqnEr+F4+ZUr68B2vj3z99PjEJQ0RXNlxSwqSwIZSgnH3rqPreo 45vGs5Xjsp1fTu+ghddXIvs4ApiKLQCii9sNxlw/5LfkEwbcrhZVM+/c2SyixLTN Iimo/H1y+PqOFlRs0ch8FXXq38AlXyPSBuRDFpU6qVSBo0kaHxJdximAAXHWw0bp XYdKQDb6YNy7k8rRY3zuj4d7oCDxkQvo7Hr9FtweqPTsDw9cHE4WxnzNgMAqXvK8 LreBNoMqiM+pZ55hVFtUUlofeE96MR+qR9bGavd4ifO4qoPYFpQeCPREHOn2Rq+i U4YS/0099c4Isfe5K13Rg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvhedgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepgeehtdehudejieetuedttdejkeehjeetueekheffuddtjeeuvdefveeuveei uddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 Nov 2023 15:45:12 -0500 (EST) Content-Language: en-US In-Reply-To: <87msvk8nw3.fsf@catern.com> Received-SPF: pass client-ip=66.111.4.29; envelope-from=dmitry@gutov.dev; helo=out5-smtp.messagingengine.com X-Spam_score_int: -69 X-Spam_score: -7.0 X-Spam_bar: ------- X-Spam_report: (-7.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=-4.148, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=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:312610 Archived-At: On 11/11/2023 14:39, Spencer Baugh wrote: > Dmitry Gutov writes: >> 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. > I think we plausibly leave UI decisions to the*major-modes*. I don't think so: major modes provide information to common facilities (other examples are font-lock or indent-line-function or syntax tables), and then the common code uses that information in the same fashion (e.g. obeys font-lock-maximum-decoration).