From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.devel Subject: Re: yes-or-no-p prompt conditionally broken in master? Date: Fri, 04 Sep 2015 14:29:57 +0200 Message-ID: <854mjaxt65.fsf@iznogoud.viz> References: <83k2s7a247.fsf@gnu.org> <55E88336.5060703@yandex.ru> <83h9nb9z5l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441369929 25406 80.91.229.3 (4 Sep 2015 12:32:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 12:32:09 +0000 (UTC) Cc: kaushal.modi@gmail.com, emacs-devel@gnu.org, monnier@iro.umontreal.ca, bruce.connor.am@gmail.com, Dmitry Gutov To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 04 14:32:00 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 1ZXq9u-0005AL-I7 for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 14:31:58 +0200 Original-Received: from localhost ([::1]:58695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq9n-0004hp-AS for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 08:31:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq9S-0004e2-Vk for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:31:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXq9P-0004A6-3X for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:31:30 -0400 Original-Received: from b2bfep16.mx.upcmail.net ([62.179.121.61]:38239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXq9O-00049q-Qa for emacs-devel@gnu.org; Fri, 04 Sep 2015 08:31:27 -0400 Original-Received: from edge12.upcmail.net ([192.168.13.82]) by b2bfep16.mx.upcmail.net (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20150904122959.CTRC27507.b2bfep16-int.chello.at@edge12.upcmail.net> for ; Fri, 4 Sep 2015 14:29:59 +0200 Original-Received: from iznogoud.viz ([91.119.84.93]) by edge12.upcmail.net with edge id D0XE1r00z20p94T0C0XFVj; Fri, 04 Sep 2015 14:31:15 +0200 X-SourceIP: 91.119.84.93 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1ZXq9C-0000Ps-IY; Fri, 04 Sep 2015 14:31:14 +0200 Mail-Followup-To: Eli Zaretskii , Dmitry Gutov , kaushal.modi@gmail.com, monnier@iro.umontreal.ca, bruce.connor.am@gmail.com, emacs-devel@gnu.org User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.179.121.61 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:189582 Archived-At: On Thu, Sep 03 2015, Eli Zaretskii wrote: >> Cc: emacs-devel , >> Stefan Monnier , >> Kaushal Modi >> From: Dmitry Gutov >> Date: Thu, 3 Sep 2015 20:28:22 +0300 >> >> (defalias 'yes-or-no-p 'y-or-n-p) > > Why? Just don't. FWIW, I don't, but I've been aware of this trick for a long time as part of the emacs folklore (when I search for yes-or-no-p, DuckDuckGo suggests the emacs wiki page[*], which mentions it, right after some mirror of the Common Lisp Hyperspec) So, IMHO, you are right in general, of course, that emacs developers can't guarantee that such tricks will always work, but I don't think that it would make sense to break user expectations in this particular case. [*] http://www.emacswiki.org/emacs/YesOrNoP