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 20:44:08 +0200 Message-ID: <83ft3wpdl3.fsf@gnu.org> References: <834kkcr1eo.fsf@gnu.org> <83im8spgrz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19195"; 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 19:45:33 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 1ks98e-0004tc-H9 for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Dec 2020 19:45:32 +0100 Original-Received: from localhost ([::1]:33206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ks98d-0004lA-Fp for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Dec 2020 13:45:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks97Z-0004Ht-LZ for emacs-devel@gnu.org; Wed, 23 Dec 2020 13:44:25 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55532) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ks97Z-0006J0-EE; Wed, 23 Dec 2020 13:44:25 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2806 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ks97S-00054W-B7; Wed, 23 Dec 2020 13:44:18 -0500 In-Reply-To: (message from Stefan Monnier on Wed, 23 Dec 2020 13:11:53 -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:261632 Archived-At: > From: Stefan Monnier > Cc: emacs-devel@gnu.org, rms@gnu.org > Date: Wed, 23 Dec 2020 13:11:53 -0500 > > >> 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. > > So you're saying the only reason to treat `y-or-n-p` differently is to > avoid surprising old users? Old users who have the previous operation of y-or-n-p burned into their muscle memory, yes. > Fair enough, but IIRC `y-or-n-p` is not the only function we changed > recently to use a minibuffer instead of an ad-hoc modal read-event loop, > so I suspect we might want to apply this new option to those other > functions as well. I think you are right.