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#30073: 27.0.50; dired-do-delete ignores customization for short answers Date: Thu, 11 Jan 2018 17:52:45 +0200 Message-ID: <83po6g4cky.fsf@gnu.org> References: <87bmi1cryh.fsf@mail.linkov.net> <87o9m1nlpl.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1515685881 27928 195.159.176.226 (11 Jan 2018 15:51:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Jan 2018 15:51:21 +0000 (UTC) Cc: 30073@debbugs.gnu.org, juri@linkov.net To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 11 16:51:17 2018 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 1eZf8F-0006LR-7j for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jan 2018 16:51:07 +0100 Original-Received: from localhost ([::1]:51967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZfAE-0002UH-GJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jan 2018 10:53:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZfA7-0002Tj-TO for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2018 10:53:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZfA6-0002jN-PQ for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2018 10:53:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44455) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eZfA6-0002iy-Ld for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2018 10:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eZfA6-0001FQ-FR for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2018 10:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Jan 2018 15:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30073 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 30073-submit@debbugs.gnu.org id=B30073.15156859804788 (code B ref 30073); Thu, 11 Jan 2018 15:53:02 +0000 Original-Received: (at 30073) by debbugs.gnu.org; 11 Jan 2018 15:53:00 +0000 Original-Received: from localhost ([127.0.0.1]:52352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZfA3-0001F9-OG for submit@debbugs.gnu.org; Thu, 11 Jan 2018 10:52:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZfA2-0001Ex-Cp for 30073@debbugs.gnu.org; Thu, 11 Jan 2018 10:52:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZf9t-0002QT-3k for 30073@debbugs.gnu.org; Thu, 11 Jan 2018 10:52:53 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZf9t-0002QI-0K; Thu, 11 Jan 2018 10:52:49 -0500 Original-Received: from [176.228.60.248] (port=3090 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eZf9s-0002g8-GK; Thu, 11 Jan 2018 10:52:48 -0500 In-reply-to: <87o9m1nlpl.fsf@gmail.com> (contovob@tcd.ie) 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:142032 Archived-At: > From: "Basil L. Contovounesios" > Date: Thu, 11 Jan 2018 03:00:38 +0000 > Cc: 30073@debbugs.gnu.org > > Juri Linkov writes: > > > I customized ‘yes-or-no-p’ in ~/.emacs to short answers: > > > > (fset 'yes-or-no-p 'y-or-n-p) > > > > but now ‘dired-do-delete’ ignores this customization, and always requires > > typing a full answer “yes” with RET when deleting recursively all subdirs, > > instead of accepting just a single letter ‘y’ as before the recent change. > > > > I think in this case better is to accept ‘y’ for “yes”, and ‘!’ for “all” > > like in ‘query-replace-map’. > > Just linking bug#27940, where the move away from using yes-or-no-p in > function dired-delete-file was discussed: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27940 Indeed, this horse has been beaten to death already. The current solution is for you to set dired-deletion-confirmer to y-or-n-p. Admittedly, that's not a very user-friendly customization method, but then neither is fset.