unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: completing-read does not display options in new frames
Date: Mon, 01 May 2023 14:51:34 +0300	[thread overview]
Message-ID: <834jowp8vt.fsf@gnu.org> (raw)
In-Reply-To: <CAHap1Hu+7W6GOsVY5XEqtpYKQ_80kfbKVpOFF+PSM4St_0k5Qw@mail.gmail.com> (message from Ma Gelan on Mon, 1 May 2023 12:52:09 +0900)

> From: Ma Gelan <magel4n@gmail.com>
> Date: Mon, 1 May 2023 12:52:09 +0900
> Cc: help-gnu-emacs@gnu.org
> 
> I feel that I did not explain my issue well.
> 
> I tried this: emacs -Q -l test.el
> 
> With test.el having the code.
> 
> What I get is two emacs frames. The main frame is on *scratch* buffer,
> and the other frame is just a miniframe. If I focus the miniframe I get
> the 'Select:' prompt, no options are shown. I expect to see a list of
> vertical options but they only show if I press tab. In this case they
> show in the other window, because that is the vanilla behavior in emacs,
> but In my version I have the completion directly in the minibuffer. In
> both cases, my configuration and emacs -Q, the options do not show right
> away, which means that I have to actively press Tab to show them.
> 
> My question is: How do I show the options without having to press Tab?

You can't, not with the default vanilla completing-read behavior.

You need to understand the concept behind the default Emacs completion
scheme.  It was devised for users who (a) are very fast typists, and
(b) know very well what they want to type, so they don't need any
hints before they start typing.  What they do need is TAB-completion
so that they could type only a small part of input, and have the rest
completed by Emacs for them.

Therefore, there are no completion candidates shown unless you ask for
them, by typing TAB.

> I would like to see them listed as soon as the minibuffer shows up.

Then you need a non-default completion behavior, like ibuffer or
similar.



      parent reply	other threads:[~2023-05-01 11:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-30  9:44 completing-read does not display options in new frames MaGelan
2023-04-30 23:24 ` Platon Pronko
2023-05-01  3:52   ` Ma Gelan
2023-05-01  5:52     ` Platon Pronko
2023-05-05  7:04       ` MaGelan
2023-05-05  7:12         ` MaGelan
2023-05-01 11:51     ` Eli Zaretskii [this message]

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=834jowp8vt.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).