all messages for Emacs-related lists mirrored at yhetil.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 09:17:07 +0200	[thread overview]
Message-ID: <831qzopymk.fsf@gnu.org> (raw)
In-Reply-To: <7A89A71F-708C-4217-989C-2E9990759E13@gmail.com> (message from Howard Melman on Sat, 26 Feb 2022 19:17:21 -0500)

> From: Howard Melman <hmelman@gmail.com>
> Date: Sat, 26 Feb 2022 19:17:21 -0500
> 
> This is the same issue as in bug#38614 which was about
> Info-complete-menu-item, but this is about
> Info-follow-reference.  I hope it will also be fixed.
> 
> Info-follow-reference calls completing-read with a list of
> candidates found in the node.  It scans the node from top to
> bottom pushing references onto a completions list.  The list
> ends up being in the reverse order of position in the node.
> For the default completion mechanism this isn't a problem,
> but with a completion package like fido or ivy which
> immediately displays the list of candidates, this order
> isn't particularly useful.
> 
> My use case is browsing an info manual, going to a new node
> via n, so my point is near the top of the node.  I see I
> want to follow the first reference and type f and I'm
> presented with a list of completion candidates. The first
> candidate is from the bottom of the node, it's not even
> visible on my screen.  If the list was in the order as found
> in the mode I could just type RET, but now I have to type to
> complete or beforehand position point at the reference so
> that it will be used as a default.
> 
> I suggest adding something like the following in
> Info-follow-reference just after the while loop that builds
> completions:
> 
>      (setq completions (nreverse completions))

I must say that I'm uneasy with such changes, which punish every user
of Info because some optional completion facility out there would like
that.  It sounds wrong.  Why shouldn't we expect from those optional
completion facilities to do this if and when they need?





  reply	other threads:[~2022-02-27  7:17 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 [this message]
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
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

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

  git send-email \
    --in-reply-to=831qzopymk.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.