From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#13649: boobytrapped dired-do-async-shell-command question Date: Wed, 11 May 2022 19:59:23 +0300 Organization: LINKOV.NET Message-ID: <86lev8zcgk.fsf@mail.linkov.net> References: <871ucsjdl1.fsf@jidanni.org> <878rrubngy.fsf@gnus.org> <861qxmpmm2.fsf@mail.linkov.net> <875ymy8oej.fsf@gnus.org> <86levti48q.fsf@mail.linkov.net> <87fsm0jhtb.fsf@gnus.org> <86sfpzuaaf.fsf@mail.linkov.net> <87o80md8ud.fsf@gnus.org> <86fslkl8f4.fsf@mail.linkov.net> <87ee13ca9f.fsf@gnus.org> <864k1yzgp4.fsf@mail.linkov.net> <87fslinofz.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10279"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 13649@debbugs.gnu.org, jidanni@jidanni.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 19:23:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noq3J-0002TR-3o for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 19:23:09 +0200 Original-Received: from localhost ([::1]:37022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noq3I-0006aP-24 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 13:23:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noq2E-0005RI-BR for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44445) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noq2E-0008GK-2g for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noq2D-0001qg-Qm for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 17:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13649 X-GNU-PR-Package: emacs Original-Received: via spool by 13649-submit@debbugs.gnu.org id=B13649.16522897157075 (code B ref 13649); Wed, 11 May 2022 17:22:01 +0000 Original-Received: (at 13649) by debbugs.gnu.org; 11 May 2022 17:21:55 +0000 Original-Received: from localhost ([127.0.0.1]:38340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noq26-0001q3-Ru for submit@debbugs.gnu.org; Wed, 11 May 2022 13:21:55 -0400 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:54047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noq25-0001pW-Ex for 13649@debbugs.gnu.org; Wed, 11 May 2022 13:21:53 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id F135F1BF20D; Wed, 11 May 2022 17:21:45 +0000 (UTC) In-Reply-To: <87fslinofz.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 10 May 2022 03:53:04 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231971 Archived-At: >> y-or-n-p has special handling for these keys: >> >> (define-key map [remap recenter] #'minibuffer-recenter-top-bottom) >> (define-key map [remap scroll-up] #'minibuffer-scroll-up-command) >> (define-key map [remap scroll-down] #'minibuffer-scroll-down-command) >> (define-key map [remap scroll-other-window] >> #'minibuffer-scroll-other-window) >> (define-key map [remap scroll-other-window-down] >> #'minibuffer-scroll-other-window-down) >> >> but yes-or-no-p doesn't. > > I guess it should do that, too. Unfortunately, yes-or-no-p is implemented in C. But maybe there are not too many changes required, and it would be enough to add a new keymap to this call: ans = Fdowncase (Fread_from_minibuffer (prompt, Qnil, Qnil, Qnil, Qyes_or_no_p_history, Qnil, Qnil));