From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54175: 27.2; Info-follow-reference completions in reverse order Date: Sun, 27 Feb 2022 19:31:07 +0200 Message-ID: <838rtwnrms.fsf@gnu.org> References: <7A89A71F-708C-4217-989C-2E9990759E13@gmail.com> <831qzopymk.fsf@gnu.org> <83bkysntjv.fsf@gnu.org> <5EDDF26F-4350-469D-B98C-99D7743E9424@gmail.com> <83a6ecnsn5.fsf@gnu.org> <1C706C79-657B-4B02-B028-0D1BEB448A8B@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18234"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54175@debbugs.gnu.org To: Howard Melman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 27 18:32:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nONP4-0004a3-As for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 18:32:14 +0100 Original-Received: from localhost ([::1]:34460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nONP3-0005GF-2n for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 12:32:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nONOs-0005G7-7b for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 12:32:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nONOr-0004xy-Uq for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 12:32:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nONOr-0002PS-Ni for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 12:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 17:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54175 X-GNU-PR-Package: emacs Original-Received: via spool by 54175-submit@debbugs.gnu.org id=B54175.16459830859214 (code B ref 54175); Sun, 27 Feb 2022 17:32:01 +0000 Original-Received: (at 54175) by debbugs.gnu.org; 27 Feb 2022 17:31:25 +0000 Original-Received: from localhost ([127.0.0.1]:59159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nONOH-0002OY-BD for submit@debbugs.gnu.org; Sun, 27 Feb 2022 12:31:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nONOG-0002OM-AO for 54175@debbugs.gnu.org; Sun, 27 Feb 2022 12:31:24 -0500 Original-Received: from [2001:470:142:3::e] (port=53326 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nONOB-0004oQ-2w; Sun, 27 Feb 2022 12:31:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6RGyAadYqRegLcnflkd4YEzo1hRjPMCF0kbFsaxF5Jg=; b=WuiuWEDRYHzc inq3sAghinCK05gtHpKjEcim8lroIv6OhFDB3sbl4NLuxrj1Ouj2QVgWKHuKOXo1H/OoyZu2ikGyp ukqT+9xmMjWqfjN+D9oy05NyhAX0sWfi+MBre2sqj4GOkZjcPV71ESA5aB+hLfxdwCRB5mKPbDXPz kiVzBMcEImjMJYYGuu7Gh06qzvJOT+EFTOQIkExxlNu8RneWH4OvbBrbsnHosljrBtXIgT3w6vJRN XgPBGIizPRCLfl0TfivoCAf0aqR9n0SlvMlh9qaS80S8CnzSjk/524ghIHTGc93BiQIeht1sJxHU8 41YjWH5WHl0K9hgdwHslPw==; Original-Received: from [87.69.77.57] (port=3219 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nONOA-0005kb-Ll; Sun, 27 Feb 2022 12:31:18 -0500 In-Reply-To: <1C706C79-657B-4B02-B028-0D1BEB448A8B@gmail.com> (message from Howard Melman on Sun, 27 Feb 2022 12:18:49 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:227736 Archived-At: > From: Howard Melman > Date: Sun, 27 Feb 2022 12:18:49 -0500 > > >> I believe I explained this. It is the order they are found in the node. It means > >> the offered candidates appear to me in the order I see them in the > >> node. > > > > But if your position is near the end of the buffer, the first > > cross-reference in the node will also be the one that's the farthest. > > I'm not sure I understand the utility of such an order. > > It doesn't help in all cases. If you're positioned near the end of the node > then you might be positioned near the reference and get it as the default. > But when visiting a node you start at the top, and many nodes fit entirely > on one screen, so it's a more common case that it will help (again for a > imperceptible cost). It's certainly a more intuitive order than what is returned > now. I don't think I agree. I could understand if the request was to order them starting from the current position, or to sort them by their distance from the current position, but starting from the node beginning sounds as arbitrary as starting from the end. In any case, instead of sorting or reversing, an alternative could be to collect the cross-reference in the desired order to begin with, to avoid the cost of sorting/reversing. And finally, Info-follow-reference is called by other functions, so we should make sure we don't break them by changing the order.