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: Tue, 16 Jan 2018 01:02:27 +0200 Organization: LINKOV.NET Message-ID: <87efmqaeea.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> 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 1516059149 18778 195.159.176.226 (15 Jan 2018 23:32:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Jan 2018 23:32:29 +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 Tue Jan 16 00:32:24 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 1ebEEc-0003WT-EN for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jan 2018 00:32:10 +0100 Original-Received: from localhost ([::1]:44056 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebEGc-00018M-3u for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jan 2018 18:34:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebEGT-000186-Qg for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 18:34:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebEGQ-00021I-M3 for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 18:34:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49984) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebEGQ-00020s-Hi for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 18:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ebEGQ-0007gU-8f for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2018 18:34: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: Mon, 15 Jan 2018 23:34: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.151605919729467 (code B ref 30073); Mon, 15 Jan 2018 23:34:02 +0000 Original-Received: (at 30073) by debbugs.gnu.org; 15 Jan 2018 23:33:17 +0000 Original-Received: from localhost ([127.0.0.1]:57878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebEFh-0007fC-Ie for submit@debbugs.gnu.org; Mon, 15 Jan 2018 18:33:17 -0500 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:49664 helo=homiemail-a17.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebEFg-0007f4-6u for 30073@debbugs.gnu.org; Mon, 15 Jan 2018 18:33:16 -0500 Original-Received: from homiemail-a17.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTP id 2A4382B206A; Mon, 15 Jan 2018 15:33:15 -0800 (PST) Original-Received: from localhost.linkov.net (m91-129-109-142.cust.tele2.ee [91.129.109.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPSA id CAB722B2065; Mon, 15 Jan 2018 15:33:13 -0800 (PST) In-Reply-To: <83k1wjzokj.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 15 Jan 2018 07:19:24 +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:142189 Archived-At: >> What I'm thinking about is introducing a boolean customizable variable >> that would define whether abbreviated answers are preferred by the use= r. >> Then a new minibuffer-reading function could accept a list of abbrevia= tions >> and map them to long full answers. >> >> Something like =E2=80=98read-multiple-choice=E2=80=99 or =E2=80=98map-= y-or-n-p=E2=80=99, but that >> would allow either long or short answers depending on customization >> like =E2=80=98rmail-confirm-expunge=E2=80=99, =E2=80=98url-confirmatio= n-func=E2=80=99, >> =E2=80=98org-confirm-shell-link-function=E2=80=99, =E2=80=98org-confir= m-elisp-link-function=E2=80=99, >> or on its argument like =E2=80=98strong-query=E2=80=99 in =E2=80=98cus= tom-command-apply=E2=80=99. >> >> WDYT? > > Why limit this to Dired? People who use fset to get y-or-n-p want > that everywhere, right? Right, this is not specific to Dired. So we could add a new customizable variable, and easily change =E2=80=98yes-or-no-p=E2=80=99 to= call =E2=80=98y-or-n-p=E2=80=99 if it's non-nil. Oh, wait, not so easily, I see that =E2=80=98yes-or-no-p=E2=80=99 is implemented in C. Is there a particular reason why it's not in Lisp? In any case this would be better customization to choose between =E2=80=9Cyes/no=E2=80=9D and =E2=80=9Cy/n=E2=80=9D. Regarding a new mult= iple options reading function =E2=80=98read-answer=E2=80=99, I'm not sure where to put it. There is a = separate file map-ynp.el for a single function =E2=80=98map-y-or-n-p=E2=80=99, and a se= parate file rmc.el for a single function =E2=80=98read-multiple-choice=E2=80=99. But= I hesitate to do the same and create a new file for just one function.