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.devel Subject: Re: Confused by y-or-n-p Date: Wed, 23 Dec 2020 19:35:12 +0200 Message-ID: <83im8spgrz.fsf@gnu.org> References: <834kkcr1eo.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38768"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 23 18:36:36 2020 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 1ks83w-0009ye-6Y for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Dec 2020 18:36:36 +0100 Original-Received: from localhost ([::1]:51706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ks83v-0008NI-8x for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Dec 2020 12:36:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks82u-00078x-NT for emacs-devel@gnu.org; Wed, 23 Dec 2020 12:35:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54152) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ks82r-0006Vq-In; Wed, 23 Dec 2020 12:35:32 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2336 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ks82j-0004So-SW; Wed, 23 Dec 2020 12:35:22 -0500 In-Reply-To: (message from Stefan Monnier on Wed, 23 Dec 2020 11:45:46 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:261625 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org, Richard Stallman > Date: Wed, 23 Dec 2020 11:45:46 -0500 > > > Would it make sense to add a user option to disallow switching from > > the minibuffer in the middle of y-or-n-p? Then people who get > > confused by this could set it to avoid the confusion. > > I wonder what makes `y-or-n-p` special in this respect. > IOW, I think the answer is "yes, it would make sense" but I also think > this option should apply to other cases that `y-or-n-p`. > > Maybe it could/should even apply to most uses of the minibuffer? Could be. However, y-or-n-p is somewhat special, in that it allowed only very restricted set of things to type. By contrast read-from-minibuffer always allowed switching out of the minibuffer.