From: Drew Adams <drew.adams@oracle.com>
To: Ergus <spacibba@aol.com>, "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Cc: Po Lu <luangruo@yahoo.com>, Eli Zaretskii <eliz@gnu.org>,
Stefan Monnier <monnier@iro.umontreal.ca>
Subject: RE: [External] : Re: Question about completion behavior
Date: Sat, 12 Mar 2022 20:25:46 +0000 [thread overview]
Message-ID: <SJ0PR10MB5488DD1144C44CBB20749FB4F30D9@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <20220310140331.xa53sex6wywkr56l@Ergus>
> configure the Initial line in the Completions buffer
> ... add a sort of counter there to indicate the
> total number of candidates
I assume you mean the current number of candidates,
i.e., the matches of your current minibuffer input.
(For empty input this is the number of candidates
in the matching domain, i.e., all-completions.)
A better place for such a count, IMO, as well as
for other info about the current completion state
(completion style/mode, sort order etc.), is the
_mode-line_ of the `*Completions* window.
That's what Icicles does. (In Icicles you can
change things like completion style/mode, and
sort order on the fly, and their defaults can be
configured per command.)
E.g., `M-x forw TAB' might show you this in the
*Completions* mode-line:
18 candidates, vanilla completion, sorting alphabetical (reversed)
^^^^^^^^^^^^^
(Plus other completion status info.)
You can limit the number of candidates displayed,
in which case, e.g., "142 candidates shown/3247",
meaning that you're shown 142 out of 3247 total.
And (by default) when cycling, the *Completions*
mode-line briefly shows you short help about the
current candidate (it then returns to showing the
current general completion status).
E.g. `M-x forw TAB', with candidate `forward-char'
current (which means highlighted in *Completions*
and present in the minibuffer), briefly shows the
first line of its doc string:
Move point N characters forward (backward if N is negative)
And `C-x C-f' foo TAB', might show this briefly
for the current file-name candidate:
Bytes: 10083, Saved: 1/14/2022 12:52:46 PM, Access: 3/12/2022 11:05:27 AM, Perm: -rw-rw-rw-
More info about what's shown:
https://www.emacswiki.org/emacs/Icicles_-_Completions_Display#CompletionsModeLine
next prev parent reply other threads:[~2022-03-12 20:25 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220309001013.gxyh2uasbuxiz6ww.ref@Ergus>
2022-03-09 0:10 ` Question about completion behavior Ergus
2022-03-09 0:22 ` Stefan Monnier
2022-03-09 1:46 ` Ergus
2022-03-09 3:05 ` Stefan Monnier
2022-03-09 3:37 ` Eli Zaretskii
2022-03-09 10:11 ` Ergus
2022-03-09 11:46 ` Ergus
2022-03-09 13:16 ` Eli Zaretskii
2022-03-09 13:46 ` Po Lu
2022-03-09 17:32 ` Stefan Monnier
2022-03-09 17:41 ` Ergus
2022-03-10 0:42 ` Po Lu
2022-03-10 10:21 ` Ergus
2022-03-10 11:15 ` Po Lu
2022-03-10 14:03 ` Ergus
2022-03-10 18:50 ` Juri Linkov
2022-03-10 22:35 ` Ergus
2022-03-12 18:31 ` Juri Linkov
2022-03-13 14:58 ` Ergus
2022-03-12 0:17 ` Ergus
2022-03-12 18:34 ` Juri Linkov
2022-03-13 11:21 ` Ergus
2022-03-13 17:44 ` Juri Linkov
2022-03-13 18:50 ` Ergus
2022-03-13 18:57 ` Eli Zaretskii
2022-03-13 19:49 ` Ergus
2022-03-13 20:48 ` [External] : " Drew Adams
2022-03-13 21:15 ` Ergus
2022-03-13 23:14 ` Drew Adams
2022-03-13 23:38 ` Ergus
2022-03-14 2:23 ` Drew Adams
2022-03-12 20:25 ` Drew Adams [this message]
2022-03-09 14:30 ` Ergus
2022-03-09 16:14 ` [PATCH] " Ergus
2022-03-09 16:56 ` Eli Zaretskii
2022-03-09 13:10 ` Eli Zaretskii
2022-03-09 14:22 ` Ergus
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=SJ0PR10MB5488DD1144C44CBB20749FB4F30D9@SJ0PR10MB5488.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=luangruo@yahoo.com \
--cc=monnier@iro.umontreal.ca \
--cc=spacibba@aol.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).