From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: yes-or-no-p prompt conditionally broken in master? Date: Fri, 04 Sep 2015 13:03:49 +0200 Message-ID: <87lhcmv42y.fsf@fencepost.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441364651 5983 80.91.229.3 (4 Sep 2015 11:04:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 11:04:11 +0000 (UTC) Cc: kaushal.modi@gmail.com, bruce.connor.am@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, dgutov@yandex.ru, Eli Zaretskii , drew.adams@oracle.com To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 04 13:04:09 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 1ZXomv-0002Wg-6v for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 13:04:09 +0200 Original-Received: from localhost ([::1]:57983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXomq-0004fX-72 for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 07:04:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXomm-0004e9-Ih for emacs-devel@gnu.org; Fri, 04 Sep 2015 07:04:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXomg-0005nS-UY for emacs-devel@gnu.org; Fri, 04 Sep 2015 07:04:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXomd-0005mV-Aj; Fri, 04 Sep 2015 07:03:51 -0400 Original-Received: from localhost ([127.0.0.1]:33635 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZXomc-0008NE-6k; Fri, 04 Sep 2015 07:03:50 -0400 Original-Received: by lola (Postfix, from userid 1000) id A1821E0FA8; Fri, 4 Sep 2015 13:03:49 +0200 (CEST) In-Reply-To: <87si6umqbs.fsf@mbork.pl> (Marcin Borkowski's message of "Fri, 04 Sep 2015 12:32:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:189578 Archived-At: Marcin Borkowski writes: > 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. At the > same time. 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'. Not just 'y'. y-or-n-p is quite apt to turn any kind of typeahead into an unintended answer. From its DOC string: No confirmation of the answer is requested; a single character is enough. SPC also means yes, and DEL means no. -- David Kastrup