From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: yes-or-no-p prompt conditionally broken in master? Date: Fri, 04 Sep 2015 15:30:42 +0300 Message-ID: <83vbbq8iz1.fsf@gnu.org> References: <83k2s7a247.fsf@gnu.org> <55E88336.5060703@yandex.ru> <83h9nb9z5l.fsf@gnu.org> <55E8879B.9050107@yandex.ru> <83fv2v9y9z.fsf@gnu.org> <57355235-9af7-49fb-81b5-93182cfc9d49@default> <83a8t39x3t.fsf@gnu.org> <83zj128slp.fsf@gnu.org> <87k2s6o7qh.fsf@igel.home> <87si6umqbs.fsf@mbork.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441369874 24582 80.91.229.3 (4 Sep 2015 12:31:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 12:31:14 +0000 (UTC) Cc: kaushal.modi@gmail.com, bruce.connor.am@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru, drew.adams@oracle.com To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 04 14:31:06 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZXq8w-0004Ul-B8 for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 14:30:58 +0200 Original-Received: from localhost ([::1]:58692 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq8w-000476-9z for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 08:30:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq8j-00046h-3I for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:30:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXq8e-0003dy-Qu for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:30:44 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:59648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq8d-0003bN-Vm for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:30:40 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NU500N00JACX700@mtaout27.012.net.il> for emacs-devel@gnu.org; Fri, 04 Sep 2015 15:27:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NU500NGUJXNJX20@mtaout27.012.net.il>; Fri, 04 Sep 2015 15:27:23 +0300 (IDT) In-reply-to: <87si6umqbs.fsf@mbork.pl> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189581 Archived-At: > From: Marcin Borkowski > Date: Fri, 04 Sep 2015 12:32:04 +0200 > > > On 2015-09-04, at 11:26, Andreas Schwab wrote: > > > Eli Zaretskii writes: > > > >> Any objections to removing yes-or-no-p (with a defalias for backward > >> compatibility, of course) and making y-or-n-p serve both duties, > >> controlled by some defcustom? > > > > That doesn't make sense. They implement different intented meaning. > > +1. They serve different purposes, and they are both needed. This is a misunderstanding: I didn't suggest to remove any functionality. You will still be able to do exactly what each of these functions do, just their implementation will be in a single function. > While I understand that someone might want to make yes-or-no-p > behave like y-or-n-p all the time, someone else (like, say, me) > might want to use y-or-n-p in places where just a confirmation is a > nice thing to have, and yes-or-no-p in places where you really want > to make sure that the user does not accidentally press `y'. That's a no-brainer, and I never said anything to the contrary.