From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64493: 29.0.92; Setting =?UTF-8?Q?=E2=80=98dired-no-confirm=E2=80=99?= to t does not have the expected effect Date: Thu, 06 Jul 2023 13:14:46 +0300 Message-ID: <835y6xibxl.fsf@gnu.org> References: <875y6xwfwc.fsf@whxvd.name> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29098"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64493@debbugs.gnu.org To: Sebastian Miele Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 06 12:15:19 2023 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 1qHM19-0007M8-1f for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Jul 2023 12:15:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHM0u-0003ir-D4; Thu, 06 Jul 2023 06:15:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHM0s-0003iK-Qf for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2023 06:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qHM0s-00043k-I4 for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2023 06:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qHM0s-0000Ft-3l for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2023 06:15:02 -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, 06 Jul 2023 10:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64493 X-GNU-PR-Package: emacs Original-Received: via spool by 64493-submit@debbugs.gnu.org id=B64493.1688638495951 (code B ref 64493); Thu, 06 Jul 2023 10:15:02 +0000 Original-Received: (at 64493) by debbugs.gnu.org; 6 Jul 2023 10:14:55 +0000 Original-Received: from localhost ([127.0.0.1]:39658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHM0k-0000FH-I6 for submit@debbugs.gnu.org; Thu, 06 Jul 2023 06:14:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47842) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qHM0j-0000F3-8A for 64493@debbugs.gnu.org; Thu, 06 Jul 2023 06:14:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHM0d-00040I-0s; Thu, 06 Jul 2023 06:14:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=PLGazb9yJ7qRVDN8h7b9JI5/y+fj2LDOegzXLj1ErA4=; b=PfrFm0WvvZXmiVEsDB6V z5fUlRgAqswt5VITLNbYonM0NpNOieTy0WTw/kQIPgg/Z26/F4OsMvgk9PnT4tX58EvyrhTov6st1 ZKwLvxjlKggAeryzorhr9ZLhbQIxiwRcFGZApkkcNjkkInP8KFJi2PK7IubedIbAMQAtA3ViX6gC5 /y8gpz3Zfrn9J8SBCfYtGDpuDJq3P/nDaHTrEiB0IYeaxCnnbR/EOIyS3b210wRVozdfVyzCM7ojZ ItWiAbMpVWOJkbNIJnvNYZ2E2Galc0npONHUNu79QrT9LCXPmdsRdnQ0FrIMhSahK1LBhVDYxkchb Gdru8Ggoj2pNoQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHM0c-0007ZE-He; Thu, 06 Jul 2023 06:14:46 -0400 In-Reply-To: <875y6xwfwc.fsf@whxvd.name> (message from Sebastian Miele on Thu, 06 Jul 2023 11:25:23 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264673 Archived-At: > From: Sebastian Miele > Date: Thu, 06 Jul 2023 11:25:23 +0200 > > Run src/emacs -Q. Evaluate (setopt dired-no-confirm t). Try to delete > one or more files using Dired (using d and x, or (m and) D). Then Emacs > still asks for confirmation. Expected: After pressing x or D, the files > get deleted without any further questions. > > After also trying to rename (R) files, my impression is that setting > ‘dired-no-confirm’ to t currently just suppresses the pop-up buffer that > shows the list of marked/flagged files while the action is about to be > executed (i.e., while waiting for the confirmation when deleting, or > while finding the destination when renaming multiple files). > > The fact that ‘dired-no-confirm’ does not actually suppress confirmation > questions (at least when deleting files, I did not try all other > possible actions) probably is a bug. > > However, it also would be nice if ‘dired-no-confirm’ would not have the > double meaning of also suppressing the pop-up buffer listing the marked > files (e.g., when finding the destination for renaming). Ideally there > would be a second variable controlling just that. The name of the variable is unfortunate, because its only effect is indeed to prevent the pop-up window with the list of affected files to be shown. This doesn't look like a bug, because this behavior existed since the time the variable was added (30 years ago). It looks like intentional (albeit strange) behavior. I have now updated the doc string on the emacs-29 branch to explain the actual effect of the variable. If you want to avoid the confirmation prompts, you can write a custom dired-deletion-confirmer function that always returns t. Patches implementing a new option that actually prevents the confirmation prompts will also be welcome.