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: Sat, 05 Sep 2015 10:03:05 +0300 Message-ID: <83fv2t8i1i.fsf@gnu.org> References: <83fv2v9y9z.fsf@gnu.org> <57355235-9af7-49fb-81b5-93182cfc9d49@default> <83a8t39x3t.fsf@gnu.org> <83zj128slp.fsf@gnu.org> <87k2s6o7qh.fsf@igel.home> <83wpw68j2n.fsf@gnu.org> <871teenysf.fsf@igel.home> <83r3me8ho3.fsf@gnu.org> <20150904133439.GB2991@acm.fritz.box> <83lhcm83vl.fsf@gnu.org> <87fv2ut5k4.fsf@fencepost.gnu.org> <83k2s682el.fsf@gnu.org> <877fo6t4f9.fsf@fencepost.gnu.org> <83io7q7yrq.fsf@gnu.org> <83h9na7ydq.fsf@gnu.org> <87pp1yrlx0.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441436602 13580 80.91.229.3 (5 Sep 2015 07:03:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Sep 2015 07:03:22 +0000 (UTC) Cc: dgutov@yandex.ru, bruce.connor.am@gmail.com, emacs-devel@gnu.org, schwab@linux-m68k.org, monnier@iro.umontreal.ca, kaushal.modi@gmail.com, acm@muc.de, drew.adams@oracle.com To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 05 09:03:12 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 1ZY7VG-0005vw-2C for ged-emacs-devel@m.gmane.org; Sat, 05 Sep 2015 09:03:10 +0200 Original-Received: from localhost ([::1]:38083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZY7VF-0003ce-KV for ged-emacs-devel@m.gmane.org; Sat, 05 Sep 2015 03:03:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZY7VD-0003cX-2t for emacs-devel@gnu.org; Sat, 05 Sep 2015 03:03:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZY7VB-0000oa-Sx for emacs-devel@gnu.org; Sat, 05 Sep 2015 03:03:07 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:42856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZY7V7-0000nG-S5; Sat, 05 Sep 2015 03:03:02 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NU600700Z2FFO00@mtaout27.012.net.il>; Sat, 05 Sep 2015 09:59:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NU6005OVZFJB630@mtaout27.012.net.il>; Sat, 05 Sep 2015 09:59:44 +0300 (IDT) In-reply-to: <87pp1yrlx0.fsf@fencepost.gnu.org> 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:189626 Archived-At: > From: David Kastrup > Cc: dgutov@yandex.ru, bruce.connor.am@gmail.com, emacs-devel@gnu.org, schwab@linux-m68k.org, monnier@iro.umontreal.ca, kaushal.modi@gmail.com, acm@muc.de, drew.adams@oracle.com > Date: Fri, 04 Sep 2015 22:04:27 +0200 > > Eli Zaretskii writes: > > > I meant it already works if the script supplies "y" or "n", not > > literally "yes" and "no". If you had the latter in mind, then I see > > no reason for a script to supply "yes" when it knows that Emacs needs > > "y". > > How would the script know which user settings for the proposed > customizable yes-or-no-p behavior options are active when it is used in > a manner reading in the user init file before proceeding? The issue at hand was whether we need to have a way to make y-or-n-p behave like yes-or-no-p. So the scripts we are supposed to discuss are those that invoke y-or-n-p, whose behavior is not subject to customizations under my proposal. So the scripts should always supply y followed by a newline. > > But we could, of course, extend y-or-n-p to accept "yes" and "no" when > > in batch mode. > > > > IOW, it's a separate issue, whose solution is not necessarily to make > > y-or-n-p work as yes-or-no-p. > > It's not entirely separate since it extends the manners in which Emacs > might "legitimately" behave. In that regard, it indeed is not separate. But the number of manners in which Emacs might behave is truly infinite, so IMO it isn't useful to lump issues together just because they belong to that wide class. The problem you describe with scripts that feed Emacs with "yes" when they should have fed it with "y", if it exists, is already here. We should have heard about it by now. If, for some reason, we didn't and will hear later, we could always extend y-or-n-p as I mentioned above. IOW, it's a separate issue because its reasons and solution are independent of the one which triggered this thread.