From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#27940: Recursively delete dir34? (yes, no, all, quit) Date: Fri, 04 Aug 2017 18:37:18 +0900 Message-ID: <87r2wr65dd.fsf@calancha-pc> References: <87o9rwxmfz.fsf@jidanni.org> <87r2wrkacy.fsf@calancha-pc> <83a83fybrc.fsf@gnu.org> <87vam365q2.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501839497 12811 195.159.176.226 (4 Aug 2017 09:38:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2017 09:38:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27940@debbugs.gnu.org, jidanni@jidanni.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 04 11:38:13 2017 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 1ddZ3W-0002sQ-Kx for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Aug 2017 11:38:06 +0200 Original-Received: from localhost ([::1]:51062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddZ3c-00017b-Oy for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Aug 2017 05:38:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddZ3W-00017K-4U for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 05:38:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddZ3T-00056y-0B for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 05:38:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddZ3S-00056s-Sf for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 05:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ddZ3S-0001ni-5r for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 05:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Aug 2017 09:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27940 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27940-submit@debbugs.gnu.org id=B27940.15018394486881 (code B ref 27940); Fri, 04 Aug 2017 09:38:02 +0000 Original-Received: (at 27940) by debbugs.gnu.org; 4 Aug 2017 09:37:28 +0000 Original-Received: from localhost ([127.0.0.1]:40891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddZ2u-0001mv-BO for submit@debbugs.gnu.org; Fri, 04 Aug 2017 05:37:28 -0400 Original-Received: from mail-pg0-f65.google.com ([74.125.83.65]:33736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddZ2t-0001mi-33 for 27940@debbugs.gnu.org; Fri, 04 Aug 2017 05:37:27 -0400 Original-Received: by mail-pg0-f65.google.com with SMTP id u185so1338637pgb.0 for <27940@debbugs.gnu.org>; Fri, 04 Aug 2017 02:37:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=rrlyHKLKvZ0UsfAxQA6lpwhmD3GEhkgd/2xCUCvhLeo=; b=WSs782ae0BdxmSgxINdT3ik0u0MClCjAnoL4yU/h+HMGY+Zdbd07usSCrlsAjD4qgm XenHhDeoWqcZBGEsY6cRLzz21NpRFFL5TpovmGGsmaUaSk+JoTDaztMZl81SDrVEbF8h CXiK2moEhIJMczQpHITE+qjqayMsvEjOXLnpPSYwXQOEbuAM/TEDXndm+h++mTXBkypX k1muZU8UK/j2tx3iQMQdRPV1rHHgpYUaWLc2K8fLUdngKlBR7Ht+IbQO3FihHHyi6+4B 5eBX7x2YFeLZ7gYYSeSQNUQ63zW9oM1mcX0+JlCKlkHyMA7x9jlQdXGgpy7oRZHeb5OD gohA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=rrlyHKLKvZ0UsfAxQA6lpwhmD3GEhkgd/2xCUCvhLeo=; b=F43jIDL4Ij51n4EUkiH8+zkmsw7SA5QnOIoO7KwfB69MAUZja7QgVU9mX35jMLJOWs UVujYuQjBlpL9171oF+REkm2vOVncLjDZ46D/cDsJywnj3ZDX9TpLl7/f5b9kez3+MkF JG7Yxm2yFqcrz4dl1DdSnWhrhC0bxHkdblu0QcdlayZswG9bUxcypCgctG9IpACY6X6+ UPFiKNZi5p3bDHjqpQ/M7Bopn3YfP36d2CirMAiBAOd5biH0xKUYIjhj3xcGePQwuzeO yXbMSC2aFdvZSVT9O9JXKk+a7Avcx28SC1aWN4fgwuFHGjnwXkuzTeNKXM6u0K84qzFt WaxQ== X-Gm-Message-State: AIVw110B2cCy1Gm4zsaiBa8RdVpoHGxy2dAu4gCzm3YV6RMoH6u8iQb/ 5rl4h0lhWRQ4lg== X-Received: by 10.99.113.92 with SMTP id b28mr1624713pgn.433.1501839441332; Fri, 04 Aug 2017 02:37:21 -0700 (PDT) Original-Received: from calancha-pc (170.224.128.101.dy.bbexcite.jp. [101.128.224.170]) by smtp.gmail.com with ESMTPSA id b6sm3790298pgn.67.2017.08.04.02.37.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Aug 2017 02:37:20 -0700 (PDT) In-Reply-To: <87vam365q2.fsf@calancha-pc> (Tino Calancha's message of "Fri, 04 Aug 2017 18:29:41 +0900") 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:135333 Archived-At: Tino Calancha writes: > + ;; Otherwise prompt user: > + (while (string= "" answer) (funcall input-fn)) > + (pcase answer > + ('"!" (setq recursive 'always dired-recursive-deletes recursive)) > + ('"y" (if (eq recursive 'top) (setq recursive 'always))) > + ('"q" (keyboard-quit)))) > + (delete-directory file recursive trash)))) Upps, i forgot the 'n' case: @@ -3015,6 +3015,7 @@ dired-delete-file (pcase answer ('"!" (setq recursive 'always dired-recursive-deletes recursive)) ('"y" (if (eq recursive 'top) (setq recursive 'always))) + ('"n" (setq recursive nil)) ('"q" (keyboard-quit)))) (delete-directory file recursive trash))))