From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: completing-read, empty collection, require match Date: Sun, 05 Dec 2021 11:21:43 +0000 Message-ID: <8735n7mh4o.fsf@posteo.net> References: <4BB55705-49C3-45E0-80CE-2F56E2BD9DE4@stanford.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36995"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 12:22:37 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mtpbJ-0009Ry-2Y for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 12:22:37 +0100 Original-Received: from localhost ([::1]:55460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtpbI-0004yP-2o for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 06:22:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtpaZ-0004Ig-WF for emacs-devel@gnu.org; Sun, 05 Dec 2021 06:21:52 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:49555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtpaX-0002MI-IN for emacs-devel@gnu.org; Sun, 05 Dec 2021 06:21:51 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 1EE79240028 for ; Sun, 5 Dec 2021 12:21:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1638703306; bh=LkxYJTQM2iqzr+RrvaW1bmTfwMw1ujZAV0f5XAQuzFY=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=Dj8GcB6xpqUCV5qxqw4LXV9HLqIftyBr0Yl/racjJIGHqHsbRHMuio+r9wt8HDXBz NfV/apGDp2DyGCPdsJDCTq76Ol0S6pa1dAT7FKkPsyJOTPkfPIL996HOIl/Ot86h69 WoYRW4cXUJw2JSdZwJBcfvIZlCCN7RcYN3QS5eRDSyDmC9EjVVOcCAqlB2CdUHRYNx 4T1fRKtWnDqBKymrNxVTwh/0Q/73SJyym/ALIXTC5n/0YQKHQ1mElFBmIc1h08A91d mOYdgDsLsb0MMK9M4tCh6jGDaCkiOfWSnRKG+DruTnbQrfGnHBiT4GTEiHcyCSSyE+ XKq4R35BUAr/w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J6PK50cxcz9rxT; Sun, 5 Dec 2021 12:21:44 +0100 (CET) Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata= mQGNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA AbQSdGhpZXZvbEBwb3N0ZW8ubmV0iQHUBBMBCgA+FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAl8y lcICGwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQDsVtFB0W75MB3QwAlTsVzFmr +S/tMKwwwOibjhNPi/OZiUC2AYfaqfVAiIHDT3RbzDe03sAJoomJkJnYVjGzQZwibCMO2+ITkMPV 2wvrd4CbgS1KCVbrltwcuK/nxPCBaHytOCZUIInnhJo5PE/h03K In-Reply-To: <4BB55705-49C3-45E0-80CE-2F56E2BD9DE4@stanford.edu> (Qiantan Hong's message of "Sat, 4 Dec 2021 14:30:09 +0000") Received-SPF: pass client-ip=185.67.36.65; envelope-from=thievol@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280986 Archived-At: Qiantan Hong writes: > (completing-read "test: " nil nil t) > will pop up a prompt in mini buffer, pretend asking you for something > and then inevitably fail. > > Is there some rationale behind the current behavior? > Failing immediately seems strictly more efficient. Helm is now quitting when collection is empty and require-match is strict (i.e. `t'). (completing-read "test: " nil nil t) => Quit. (completing-read "test: " nil nil) => Returns input. (completing-read "test: " nil nil 'confirm) => Returns input after confirmation (press RET twice). -- Thierry