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 20:41:45 +0300 Message-ID: <83oahi84km.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> <87d1xyuwe1.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441388537 12365 80.91.229.3 (4 Sep 2015 17:42:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 17:42:17 +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: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 04 19:42:08 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 1ZXuzx-00039b-7V for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 19:42:01 +0200 Original-Received: from localhost ([::1]:33929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXuzw-0002Lk-ON for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 13:42:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXuzk-0002LK-DD for emacs-devel@gnu.org; Fri, 04 Sep 2015 13:41:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXuzj-00059h-Fy for emacs-devel@gnu.org; Fri, 04 Sep 2015 13:41:48 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:57622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXuze-00058j-U4; Fri, 04 Sep 2015 13:41:43 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NU500N00Y9EA800@mtaout25.012.net.il>; Fri, 04 Sep 2015 20:38:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NU500DRMYBWIZA0@mtaout25.012.net.il>; Fri, 04 Sep 2015 20:38:20 +0300 (IDT) In-reply-to: <87d1xyuwe1.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.181 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:189602 Archived-At: > From: David Kastrup > Cc: Eli Zaretskii , kaushal.modi@gmail.com, dgutov@yandex.ru, drew.adams@oracle.com, bruce.connor.am@gmail.com, emacs-devel@gnu.org > Date: Fri, 04 Sep 2015 15:49:58 +0200 > > Stefan Monnier 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? > > > > I don't object to moving yes-or-no-p to Elisp and/or to share code > > between yes-or-no-p and y-or-n-p, but the default behavior of Emacs > > should still be that yes-or-no-p uses the minibuffer and requires the > > user to type something like `y e s RET' while y-or-n-p is satisfied with > > a simple `y' or `SPC'. > > Difficult since y-or-n-p allows scrolling the current window while using > the echo area for its prompt, and yes-or-no-p instead gives you a full > minibuffer entry as the current window. Not difficult at all, since we could start by lumping both bodies into a single function.