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 11:14:13 +0200 Message-ID: <87twrav95m.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 1441358083 31383 80.91.229.3 (4 Sep 2015 09:14:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Sep 2015 09:14:43 +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: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 04 11:14:42 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 1ZXn4y-0006VP-9p for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 11:14:40 +0200 Original-Received: from localhost ([::1]:57274 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXn4x-0003Xk-Qq for ged-emacs-devel@m.gmane.org; Fri, 04 Sep 2015 05:14:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXn4l-0003Uy-1q for emacs-devel@gnu.org; Fri, 04 Sep 2015 05:14:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXn4k-00044y-1C for emacs-devel@gnu.org; Fri, 04 Sep 2015 05:14:27 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:42423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXn4Z-0003yk-7H; Fri, 04 Sep 2015 05:14:15 -0400 Original-Received: from localhost ([127.0.0.1]:55457 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZXn4Y-0000am-4k; Fri, 04 Sep 2015 05:14:14 -0400 Original-Received: by lola (Postfix, from userid 1000) id 81C84E0F38; Fri, 4 Sep 2015 11:14:13 +0200 (CEST) In-Reply-To: <83zj128slp.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 04 Sep 2015 12:02:42 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 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:189573 Archived-At: Eli Zaretskii writes: >> Date: Thu, 3 Sep 2015 19:43:25 +0100 >> From: Artur Malabarba >> Cc: emacs-devel , Brief Busters , >> Stefan Monnier , >> Drew Adams , Kaushal Modi >> >> >> >> 2. User preferences vary. Some users never want to respond to >> >> a `yes-or-no-p' prompt. That's their choice. It should be easy >> >> for them to express their choice and have Emacs respect it. >> > >> > But if (1) is not enough, then I think we should fix the rest >> > of the use cases via a user option that redirects yes-or-no-p to >> > y-or-n-p. Requesting us to drag on with supporting such defaliases is >> > an unjustified maintenance burden. >> >> I agree with any solution that makes it possible. Be it user option >> or whatnot. > > Does anyone see a reason why we even have 2 functions, instead of just > one that can either accept a single character or a string? How would that even work? > Let alone why yes-or-no-p is implemented in C, while y-or-n-p in Lisp? > > 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? You mean, controlled by an optional argument? With some defcustom for specifying the interpretation of the optional argument? Because otherwise you'll have a hard time retaining the current default behavior for emacs -Q. -- David Kastrup