From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#28525: 26.0.60; dired-delete-file: Accept y/n if yes-or-no-p is aliased to y-or-n-p Date: Mon, 02 Oct 2017 20:41:15 +0300 Message-ID: <83wp4d1m84.fsf@gnu.org> References: <87mv5pn1dz.fsf@calancha-pc> <83zi9oeacc.fsf@gnu.org> <87tvzktk75.fsf@gmail.com> <87poa7tstz.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1506966133 31476 195.159.176.226 (2 Oct 2017 17:42:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Oct 2017 17:42:13 +0000 (UTC) Cc: 28525@debbugs.gnu.org, npostavs@users.sourceforge.net To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 02 19:42:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz4jI-0007qK-Je for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Oct 2017 19:42:08 +0200 Original-Received: from localhost ([::1]:53554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz4jQ-0004a6-1E for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Oct 2017 13:42:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz4jI-0004Yz-38 for bug-gnu-emacs@gnu.org; Mon, 02 Oct 2017 13:42:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz4jC-0002Q5-Dl for bug-gnu-emacs@gnu.org; Mon, 02 Oct 2017 13:42:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35805) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dz4jC-0002Q0-AB for bug-gnu-emacs@gnu.org; Mon, 02 Oct 2017 13:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dz4jC-0007hn-3Y for bug-gnu-emacs@gnu.org; Mon, 02 Oct 2017 13:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Oct 2017 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28525 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28525-submit@debbugs.gnu.org id=B28525.150696612029611 (code B ref 28525); Mon, 02 Oct 2017 17:42:02 +0000 Original-Received: (at 28525) by debbugs.gnu.org; 2 Oct 2017 17:42:00 +0000 Original-Received: from localhost ([127.0.0.1]:44486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz4j9-0007hX-J0 for submit@debbugs.gnu.org; Mon, 02 Oct 2017 13:41:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz4j6-0007hF-Uh for 28525@debbugs.gnu.org; Mon, 02 Oct 2017 13:41:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz4iy-0002DE-Dm for 28525@debbugs.gnu.org; Mon, 02 Oct 2017 13:41:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz4ij-00020O-Nk; Mon, 02 Oct 2017 13:41:33 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2227 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dz4ii-00052z-TU; Mon, 02 Oct 2017 13:41:33 -0400 In-reply-to: <87poa7tstz.fsf@gmail.com> (message from Tino Calancha on Sun, 01 Oct 2017 13:06:32 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:137796 Archived-At: > From: Tino Calancha > Cc: 28525@debbugs.gnu.org, npostavs@users.sourceforge.net > Date: Sun, 01 Oct 2017 13:06:32 +0900 > > Tino Calancha writes: > > > In my previous patch i checked if `yes-or-no-p' is aliased to > > `y-or-n-p'. > > A more general way is to add new functions `yes-or-no-or-else-p', > > `y-or-n-or-else-p': they ask the question and > > accept additional answers according with an optional argument. > Indeed, we don't need new functions just add an optional argument makes > the thing (see below patch). > In some cases it might be useful to allow more answers than just 'yes' > or 'no'. On second thought, maybe we should simply ignore this issue, and let users who want to override these functions write their own variants for them? Especially since packages do exist out there to do something like that already. We don't need to solve every single problem with exotic customizations in the core. WDYT?