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:58:52 +0300 Message-ID: <83r3me8ho3.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> <83wpw68j2n.fsf@gnu.org> <871teenysf.fsf@igel.home> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441371568 19213 80.91.229.3 (4 Sep 2015 12:59:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 12:59:28 +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:59:19 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 1ZXqaL-0000j4-Ho for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 14:59:17 +0200 Original-Received: from localhost ([::1]:58905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXqaL-0005lY-GA for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 08:59:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXqa0-0005hQ-BF for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:58:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXqZw-0008Uz-0o for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:58:56 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:33276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXqZv-0008Uk-PA for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:58:51 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NU500800KK1M900@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Fri, 04 Sep 2015 15:58:50 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NU50081OLE0LZ30@a-mtaout23.012.net.il>; Fri, 04 Sep 2015 15:58:50 +0300 (IDT) In-reply-to: <871teenysf.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.175 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:189587 Archived-At: > From: Andreas Schwab > Cc: bruce.connor.am@gmail.com, kaushal.modi@gmail.com, dgutov@yandex.ru, monnier@iro.umontreal.ca, drew.adams@oracle.com, emacs-devel@gnu.org > Date: Fri, 04 Sep 2015 14:40:00 +0200 > > Eli Zaretskii writes: > > >> From: Andreas Schwab > >> Cc: bruce.connor.am@gmail.com, kaushal.modi@gmail.com, dgutov@yandex.ru, monnier@iro.umontreal.ca, drew.adams@oracle.com, emacs-devel@gnu.org > >> Date: Fri, 04 Sep 2015 11:26:46 +0200 > >> > >> 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. > > > > Sorry, I lost you: what different meaning is that? > > (elisp) Yes-or-No Queries Still no clue, sorry. Just to be sure we are talking about the same thing: the signature of both functions and the return value are the same. What I propose is to change the body so that it could act like one or the other, depending on the value of some defcustom. If you still think this is wrong, please elaborate.