unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Howard Melman <hmelman@gmail.com>
Cc: 54175@debbugs.gnu.org
Subject: bug#54175: 27.2; Info-follow-reference completions in reverse order
Date: Sun, 27 Feb 2022 19:31:07 +0200	[thread overview]
Message-ID: <838rtwnrms.fsf@gnu.org> (raw)
In-Reply-To: <1C706C79-657B-4B02-B028-0D1BEB448A8B@gmail.com> (message from Howard Melman on Sun, 27 Feb 2022 12:18:49 -0500)

> From: Howard Melman <hmelman@gmail.com>
> 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.





  reply	other threads:[~2022-02-27 17:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-27  0:17 bug#54175: 27.2; Info-follow-reference completions in reverse order Howard Melman
2022-02-27  7:17 ` Eli Zaretskii
2022-02-27 15:43   ` Howard Melman
2022-02-27 16:36     ` Eli Zaretskii
2022-02-27 16:52       ` Howard Melman
2022-02-27 16:49     ` Eli Zaretskii
2022-02-27 16:59       ` Howard Melman
2022-02-27 17:09         ` Eli Zaretskii
2022-02-27 17:18           ` Howard Melman
2022-02-27 17:31             ` Eli Zaretskii [this message]
2022-02-27 17:50               ` Howard Melman
2022-05-04 14:46                 ` Howard Melman
2022-05-05 11:30                   ` Lars Ingebrigtsen
2022-05-05 14:00                     ` Howard Melman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=838rtwnrms.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=54175@debbugs.gnu.org \
    --cc=hmelman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).