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:28:32 +0300 Message-ID: <83wpw68j2n.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1441369741 22542 80.91.229.3 (4 Sep 2015 12:29:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 12:29:01 +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: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 04 14:28:52 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 1ZXq6p-0002qy-Md for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 14:28:47 +0200 Original-Received: from localhost ([::1]:58671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq6p-00036t-Ju for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 08:28:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq6d-00034O-Ij for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:28:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXq6Z-0002W3-II for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:28:35 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq6Z-0002Vv-AB for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:28:31 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NU500B00JPBJH00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Fri, 04 Sep 2015 15:28:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NU500BHAJZGA680@a-mtaout22.012.net.il>; Fri, 04 Sep 2015 15:28:29 +0300 (IDT) In-reply-to: <87k2s6o7qh.fsf@igel.home> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:189580 Archived-At: > From: Andreas Schwab > Cc: bruce.connor.am@gmail.com, kaushal.modi@gmail.com, dgutov@yan= dex.ru, monnier@iro.umontreal.ca, drew.adams@oracle.com, emacs-dev= el@gnu.org > Date: Fri, 04 Sep 2015 11:26:46 +0200 >=20 > Eli Zaretskii writes: >=20 > > Any objections to removing yes-or-no-p (with a defalias for backw= ard > > compatibility, of course) and making y-or-n-p serve both duties, > > controlled by some defcustom? >=20 > That doesn't make sense. They implement different intented meaning= . Sorry, I lost you: what different meaning is that? The doc strings of the two functions say the same: (yes-or-no-p PROMPT) Ask user a yes-or-no question. Return t if answer is yes, and nil if the answer is no. PROMPT is the string to display to ask the question. It should end= in a space; =E2=80=98yes-or-no-p=E2=80=99 adds "(yes or no) " to it. vs (y-or-n-p PROMPT) Ask user a "y or n" question. Return t if answer is "y". PROMPT is the string to display to ask the question. It should end in a space; =E2=80=98y-or-n-p=E2=80=99 adds "(y or n) " to it.