From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Adding support for xref jumping to headers/interfaces Date: Mon, 6 Mar 2023 23:15:36 -0800 Message-ID: References: <1587ddb6-f631-0890-965a-c7acb5729fa6@yandex.ru> <87r0u2ax26.fsf@betli.tmit.bme.hu> <253cdcdd-863e-e8e3-a783-62ce1c570cfb@yandex.ru> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) 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="33415"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= , Felician Nemeth , John Yates , Helmut Eller , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 07 08:16:49 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 1pZRZ3-0008Yt-QM for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Mar 2023 08:16:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZRYC-00074Z-RU; Tue, 07 Mar 2023 02:15:57 -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 1pZRY8-0006vV-D0 for emacs-devel@gnu.org; Tue, 07 Mar 2023 02:15:53 -0500 Original-Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZRY6-0006mB-JR for emacs-devel@gnu.org; Tue, 07 Mar 2023 02:15:52 -0500 Original-Received: by mail-pj1-x1032.google.com with SMTP id kb15so12344556pjb.1 for ; Mon, 06 Mar 2023 23:15:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678173349; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EgubwvE5nPMsL5lOVI2eDv7X7HRxWBkGk1EFOtuag6c=; b=bxiX5WU8DbANkzO2TYyuL82XYJvS/XHcLOZd+P/MMnY89K/ac1QFHLLVO2pOe3OTZm w8BZdBP+nlmELJiF8CbeCQS8gB+AkqabnCo0N97qFkNX3v0V1Fv//nTAJwY55krVcJs0 LI4ccu+ZlP6kUu6T1t8d0MHwQQ3tLC+oyKo6gn/TM4vzsDa9HsrprVkStqDXhPmX66iL 9a/B8P/FWYPt3crErKx4ZRBaVXVUs4iOfHrXdym7xLICbNxhE/ihUX3oKSjVAmH/NAfS iCP/yKhgXHjrNjKRNJ9wUwCFv4XxuvPF2h56OhaVayeJeivQK5AnITpPsd/XE1lzkhZr txiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678173349; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EgubwvE5nPMsL5lOVI2eDv7X7HRxWBkGk1EFOtuag6c=; b=x1LohVPWlinnIXfObRtlAK3pGwlDsb3B/3wErgWJguIIDjzZQgn/TznFrMeaEdW33v 7ULH6qZxYUmmYZymZX2T6srlDl+gqO66BUqziNFz23OuabvNFfggC01H9SHNywNQZEb5 JTFgcqvenXvDyuSw9wL8XPv9Yu8Yq0nMRtUp6dzE2+YG9hXlwlZPpY40BGXLM5Tjca/N Dn5XNf/PX77a/6DGEt7r6R8fWIcIcxSf4yelQNrRU/CR09pxASi94GJ3f+7q6fP//HYL zWEd4SEMyhFYk+AjcGGxblDmJMjUeOLmOPEC6bnKEv8cDgyqviOmuU8hrWR1GGZRJ2t4 8U1A== X-Gm-Message-State: AO0yUKWhKSc5VYEMU0EuhziO1FOyD4bCXsQ8p44n8LKWw0NlwOb3v5kl 2pa8WMZcv12k+hIQ2ucADGQ= X-Google-Smtp-Source: AK7set9DRqCRTLZ4ArUzJPYlABgq1+zoC/jrpa9jJRfWNKCgJRGdRrWuTz3Fh3O4jOP5L8OWwOOKHw== X-Received: by 2002:a17:902:ee46:b0:19e:3725:8fc6 with SMTP id 6-20020a170902ee4600b0019e37258fc6mr12549039plo.20.1678173348926; Mon, 06 Mar 2023 23:15:48 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id t18-20020a170902d21200b00185402cfedesm7757784ply.246.2023.03.06.23.15.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2023 23:15:48 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3731.400.51.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=casouri@gmail.com; helo=mail-pj1-x1032.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:304070 Archived-At: > On Mar 6, 2023, at 5:50 AM, Dmitry Gutov wrote: >=20 > On 06/03/2023 15:38, Jo=C3=A3o T=C3=A1vora wrote: >> The LSP names are clear enough and we can even decamelify them >> automatically to be nicer to the camelically disinclined like >> myself. >=20 > There's also the issue of assigning keys to them (for tmm-menubar = alike interface), which might be harder to do automatically. >=20 > We could just do completing-read, but that's bound to be slower to = work with. >=20 I like the idea of xref-find-extra. For keys we can support both = auto-compute (use first character) and backend-chosen keys, similar to = read-multiple-choice. We can even allow users to customize it. Completing-read is a bad idea, as you said, it=E2=80=99s going to be = slow, much slower and less pleasant to use. With keys I can just type = the binding for xref-find-extra and type the key, which would feels just = like compound keybindings. Yuan=