From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#30073: 27.0.50; dired-do-delete ignores customization for short answers Date: Thu, 18 Jan 2018 23:11:30 +0200 Organization: LINKOV.NET Message-ID: <877esfqegt.fsf@mail.linkov.net> References: <87bmi1cryh.fsf@mail.linkov.net> <87o9m1nlpl.fsf@gmail.com> <83po6g4cky.fsf@gnu.org> <87vag8f4da.fsf@mail.linkov.net> <83fu7b2yda.fsf@gnu.org> <87y3l1e68y.fsf@mail.linkov.net> <871sis66w1.fsf@gmail.com> <874lno10di.fsf@mail.linkov.net> <83k1wjzokj.fsf@gnu.org> <87efmqaeea.fsf@mail.linkov.net> <83a7xdy9eo.fsf@gnu.org> <87inc0yt1y.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1516311262 11553 195.159.176.226 (18 Jan 2018 21:34:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2018 21:34:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: contovob@tcd.ie, 30073@debbugs.gnu.org, tino.calancha@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 18 22:34: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 1ecHp9-0002bj-0V for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jan 2018 22:34:15 +0100 Original-Received: from localhost ([::1]:56962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecHr8-0002R1-RS for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Jan 2018 16:36:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecHqv-0002Ph-Cl for bug-gnu-emacs@gnu.org; Thu, 18 Jan 2018 16:36:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecHqt-0004w9-0D for bug-gnu-emacs@gnu.org; Thu, 18 Jan 2018 16:36:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54122) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecHqs-0004vy-Rn for bug-gnu-emacs@gnu.org; Thu, 18 Jan 2018 16:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ecHqs-0003G9-Im for bug-gnu-emacs@gnu.org; Thu, 18 Jan 2018 16:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Jan 2018 21:36: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.151631131212432 (code B ref 30073); Thu, 18 Jan 2018 21:36:02 +0000 Original-Received: (at 30073) by debbugs.gnu.org; 18 Jan 2018 21:35:12 +0000 Original-Received: from localhost ([127.0.0.1]:33778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecHq3-0003EQ-Q4 for submit@debbugs.gnu.org; Thu, 18 Jan 2018 16:35:11 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:47317 helo=homiemail-a100.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecHq0-0003EH-8g for 30073@debbugs.gnu.org; Thu, 18 Jan 2018 16:35:09 -0500 Original-Received: from homiemail-a100.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTP id F2DFB31A073; Thu, 18 Jan 2018 13:35:06 -0800 (PST) Original-Received: from localhost.linkov.net (m91-129-98-183.cust.tele2.ee [91.129.98.183]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a100.g.dreamhost.com (Postfix) with ESMTPSA id AD74D31A078; Thu, 18 Jan 2018 13:35:05 -0800 (PST) In-Reply-To: <87inc0yt1y.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 18 Jan 2018 00:56:57 +0200") 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:142272 Archived-At: >> How many callers does it have now, and which callers are those? > > Currently it will have just one caller in =E2=80=98dired-delete-file=E2= =80=99, > but it's possible to gradually replace all callers that are using > =E2=80=98yes-or-no-p=E2=80=99 and =E2=80=98y-or-n-p=E2=80=99 with equiv= alent calls of =E2=80=98read-answer=E2=80=99 Sorry, I meant only =E2=80=98yes-or-no-p=E2=80=99, not =E2=80=98y-or-n-p=E2= =80=99. For =E2=80=98y-or-n-p=E2=80=99 there is no problem, and also there are se= veral alternatives like =E2=80=98map-y-or-n-p=E2=80=99, =E2=80=98read-multiple-choice=E2=80=99= ... But =E2=80=98yes-or-no-p=E2=80=99 is different because it's used for pote= ntially dangerous operations and should require typing long answers by default. Only when the user gives explicit consent it should allow shorter answers= . Actually this is like long and short options on command line, e.g. as described in (info "(coreutils) Common options"): "Most programs that accept long options recognize unambiguous abbreviations of those options. For example, `rmdir --ignore-fail-on-non-empty' can be invoked as `rmdir --ignore-fail' or even `rmdir --i'."