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.help Subject: Re: completing-read does not display options in new frames Date: Mon, 01 May 2023 14:51:34 +0300 Message-ID: <834jowp8vt.fsf@gnu.org> References: <87zg6pln5l.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28230"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 01 13:51:37 2023 Return-path: Envelope-to: geh-help-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 1ptS48-00079d-Kp for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 May 2023 13:51:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptS3V-0006y0-GC; Mon, 01 May 2023 07:50:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptS3S-0006xh-8X for help-gnu-emacs@gnu.org; Mon, 01 May 2023 07:50:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptS3R-00035Y-4w for help-gnu-emacs@gnu.org; Mon, 01 May 2023 07:50:53 -0400 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=WfmQVcGNvA2unQqSvYnBigYgvarMx5lxAMDibO4w4/I=; b=PLW2jZtb8O3n 62NfBvbOBYkw5MEiiaIuskCvTRQat1n5g0uGbrdM9AmXl5HTBzizX0D0GxgpF8bpJI6mig2mVhWzx 41royTMoz/zOAAQmP3Jc61899lMgZQkMBXSr/hd5qN6JejqK2jAEVLgFyGyAWH0p+3lZ41h3cFW6Z gsTnqYQZCS//fnDxYgpw+PY/GdceCFyJt+oHGgyxm3YBCdTb2uOttrAfkdil4DtKFIvCh/PsaWnyE ZMODIVcKBryStkJdfmycVcbluGD5MK47iEKHSl71Obya2ecOlD+1BhDIfrZzJJ0xCiuBGzGgfKw2Q WO8ah4+/4rFMVJu06o8U9Q==; Original-Received: from [87.69.77.57] (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 1ptS3Q-0000tA-7r for help-gnu-emacs@gnu.org; Mon, 01 May 2023 07:50:52 -0400 In-Reply-To: (message from Ma Gelan on Mon, 1 May 2023 12:52:09 +0900) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143485 Archived-At: > From: Ma Gelan > 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.