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: Thu, 21 Sep 2017 11:15:31 +0300 Message-ID: <83zi9oeacc.fsf@gnu.org> References: <87mv5pn1dz.fsf@calancha-pc> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505981834 17550 195.159.176.226 (21 Sep 2017 08:17:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Sep 2017 08:17:14 +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 Thu Sep 21 10:17: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 1duwfU-0004Cu-Dr for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Sep 2017 10:17:08 +0200 Original-Received: from localhost ([::1]:52320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duwfa-0006eg-5c for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Sep 2017 04:17:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duwfR-0006eB-6G for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 04:17:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duwfN-0005so-WF for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 04:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1duwfN-0005s5-Sf for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 04:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1duwfN-00010T-NF for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2017 04:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2017 08:17:01 +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.15059817673802 (code B ref 28525); Thu, 21 Sep 2017 08:17:01 +0000 Original-Received: (at 28525) by debbugs.gnu.org; 21 Sep 2017 08:16:07 +0000 Original-Received: from localhost ([127.0.0.1]:50859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duweU-0000zG-Qc for submit@debbugs.gnu.org; Thu, 21 Sep 2017 04:16:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duweT-0000yW-Ui for 28525@debbugs.gnu.org; Thu, 21 Sep 2017 04:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1duweL-0001DV-Eo for 28525@debbugs.gnu.org; Thu, 21 Sep 2017 04:16:00 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1duwe3-0007IC-Iv; Thu, 21 Sep 2017 04:15:39 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4210 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1duwe2-0007RZ-UU; Thu, 21 Sep 2017 04:15:39 -0400 In-reply-to: <87mv5pn1dz.fsf@calancha-pc> (message from Tino Calancha on Wed, 20 Sep 2017 18:51:52 +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:137196 Archived-At: > From: Tino Calancha > Date: Wed, 20 Sep 2017 18:51:52 +0900 > Cc: npostavs@users.sourceforge.net > > The following commit > > dired-do-delete: Allow to delete dirs recursively without prompts > (cbea38e5c4af5386192fb9a48ef4fca5080d6561) > > doesn't consider the case when an user has aliased 'yes-or-no-p' > to 'y-or-n-p'. That's annoying if you are used to the previous > behaviour. I do. > Recently, I had a private communication with an user whom > complained about this recent change. > > Not sure about the ideal fix. The following patch work > around the issue adding a new function > 'dired-y-or-n-or-a-p', which is called when yes-or-no-p is aliased to > y-or-n-p. This function is y-or-n-p with an additional > possible answer '!' (aka, automatic), as in query-replace. People who make such aliases will have to change their aliases to support the 3rd option, right. What function would they use for that? Does such a function exist? If it doesn't exist, then what is the complaint wrt this change, exactly? We can be asked to do one of the following: . continue supporting y-or-n-p as a defalias of yes-or-no-p, with the understanding that the users who do that will not have a way to use the new functionality; or . allow users to specify a function that accepts single-key responses, like y-or-n-p, but also allows to select the new functionality, e.g., with '!' The solution in each of these cases is different. So we should first decide which problem are we trying to solve.