From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: [SPAM UNSURE] Xref completion Date: Tue, 17 Nov 2020 10:22:42 -0800 Message-ID: <86ima3onbh.fsf@stephe-leake.org> References: <873617ets1.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21384"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Cc: emacs-devel@gnu.org To: Pierre Neidhardt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 17 19:23:27 2020 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 1kf5dW-0005R0-TI for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Nov 2020 19:23:26 +0100 Original-Received: from localhost ([::1]:49752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kf5dV-0003pM-Qh for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Nov 2020 13:23:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf5cy-0003O6-Jg for emacs-devel@gnu.org; Tue, 17 Nov 2020 13:22:52 -0500 Original-Received: from gateway20.websitewelcome.com ([192.185.50.28]:20689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf5cw-0006hu-GS for emacs-devel@gnu.org; Tue, 17 Nov 2020 13:22:52 -0500 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway20.websitewelcome.com (Postfix) with ESMTP id 350F6400D3193 for ; Tue, 17 Nov 2020 12:19:37 -0600 (CST) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id f5crkMGwwiQiZf5crk4BVG; Tue, 17 Nov 2020 12:22:46 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mad57jysEAXYFrNK6m1/S1gVVwmi/olkK1QMSWpIz2M=; b=jYSyfvxG6O4A8t/uA1XKlOmAt tNOrPgnDzulYkBeOL983955lS3x52oq2Ux8QIJmGTTAU3l5HY8snFN9pxdz8NMdmpCYdKoeMU+ydy UCry6b0hnZYMXi14hXdBtOo4nZE9JmGx/mAF+4NA8cwDRW7Zv8HbyME00REgsk/ePesVErnKmQcbb hea8v/AiZgR0fjD7l8QgEQ1aJQZCOmEiH22WV1munN73+XKLrxrZTerUSb7SNVPIo8maUDMMmGINK zWAmap5AqRGXac3ZMrhg8FBmq7cxaqfeTOo9tth8EWmQux7U3hnGkS8LeE359Bco3lGuyGaO4gtuT DX1YcBdLg==; Original-Received: from [76.77.182.20] (port=50023 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1kf5cq-002XMp-UF; Tue, 17 Nov 2020 11:22:45 -0700 In-Reply-To: <873617ets1.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Tue, 17 Nov 2020 19:13:18 +0100") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1kf5cq-002XMp-UF X-Source-Sender: (Takver4) [76.77.182.20]:50023 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 2 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: neutral client-ip=192.185.50.28; envelope-from=stephen_leake@stephe-leake.org; helo=gateway20.websitewelcome.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 13:22:46 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:259300 Archived-At: Pierre Neidhardt writes: > Hello! > > Currently, when a xref query hits multiple candidates Emacs shows a Xref > buffer with the various candidates and their location. > > While informative, it's a bit slow in terms of UX because the user has > to navigate an extra buffer just to confirm the candidate. > > I've addressed this issue as part of my work on Helm-SLY, a Helm for the > fork of SLIME. > > https://github.com/emacs-helm/helm-sly > > In particular, I've overridden the behaviour with regards to Xrefs and > instead of showing the Xref buffer, I'm now offering completion: the > user can match against the symbol but also against the file and line > position. > > See screenshot attached. > > What do you think of adding this behaviour to upstream Emacs' xref? Sometimes choosing a single definition is what you want, other times you want to see the list. So this would have to use a different keybinding or prefix. -- -- Stephe Written from unceded ancestral homelands of the Huichiun, an Ohlone people,for which I pay Shuumi Land Tax (https://sogoreate-landtrust.com/shuumi-land-tax) as an inadequate token of reparation.