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 15:49:58 +0200 Message-ID: <87d1xyuwe1.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441375958 27541 80.91.229.3 (4 Sep 2015 14:12:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 14:12:38 +0000 (UTC) Cc: kaushal.modi@gmail.com, bruce.connor.am@gmail.com, emacs-devel@gnu.org, dgutov@yandex.ru, Eli Zaretskii , drew.adams@oracle.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 04 16:12:37 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 1ZXrjG-0007zL-NL for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 16:12:34 +0200 Original-Received: from localhost ([::1]:59572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXrjG-0006NZ-0M for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 10:12:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXrip-0006GT-Ho for emacs-devel@gnu.org; Fri, 04 Sep 2015 10:12:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXrio-0004p9-81 for emacs-devel@gnu.org; Fri, 04 Sep 2015 10:12:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXrif-0004fl-Ux; Fri, 04 Sep 2015 10:11:57 -0400 Original-Received: from localhost ([127.0.0.1]:40522 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZXrie-0004pJ-IL; Fri, 04 Sep 2015 10:11:56 -0400 Original-Received: by lola (Postfix, from userid 1000) id ADB42E3CBF; Fri, 4 Sep 2015 15:49:58 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Fri, 04 Sep 2015 09:24:41 -0400") 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:189592 Archived-At: 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. -- David Kastrup