From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.bugs Subject: bug#28575: 25.1; dired-do-find-regexp-and-replace error about previously deleted directory Date: Sun, 24 Sep 2017 16:10:26 +0300 Message-ID: <87k20o8cot.fsf@mithlond.arda> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1506258670 1369 195.159.176.226 (24 Sep 2017 13:11:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 24 Sep 2017 13:11:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) To: 28575@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 24 15:11:07 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 1dw6gb-0008Vb-RV for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Sep 2017 15:11:05 +0200 Original-Received: from localhost ([::1]:38126 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dw6gi-0005OS-Uj for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Sep 2017 09:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dw6gd-0005OB-4V for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 09:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dw6gY-0006s8-2n for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 09:11:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dw6gX-0006rt-VF for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 09:11:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dw6gX-0000lg-Mu for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 09:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Teemu Likonen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Sep 2017 13:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28575 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15062586492919 (code B ref -1); Sun, 24 Sep 2017 13:11:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Sep 2017 13:10:49 +0000 Original-Received: from localhost ([127.0.0.1]:55297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dw6gL-0000l1-H5 for submit@debbugs.gnu.org; Sun, 24 Sep 2017 09:10:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dw6gJ-0000ko-NR for submit@debbugs.gnu.org; Sun, 24 Sep 2017 09:10:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dw6gD-0006dg-EY for submit@debbugs.gnu.org; Sun, 24 Sep 2017 09:10:42 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43964) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dw6gD-0006dU-Ae for submit@debbugs.gnu.org; Sun, 24 Sep 2017 09:10:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dw6gC-0005Nt-8I for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 09:10:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dw6g6-0006Zj-Sh for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 09:10:39 -0400 Original-Received: from mta-out1.inet.fi ([62.71.2.234]:41332 helo=johanna4.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dw6g6-0006Si-Hb for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 09:10:34 -0400 RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 215 2015-05-29_17-31-22 60ae4a1b4d01d14f868b20a55aced8d7df7b2e28 RazorGate-KAS: Lua profiles 78662 [Jun 02 2015] RazorGate-KAS: Method: none Original-Received: from mithlond (109.240.71.190) by johanna4.inet.fi (9.0.002.03-2-gbe5d057) id 59BF88C70091E091 for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2017 16:10:27 +0300 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:137337 Archived-At: Dired mode command "Q" (dired-do-find-regexp-and-replace) fails when user has deleted a directory in the same Emacs session. Steps to reproduce: 1. Create test files: $ mkdir dir1 dir2 $ touch dir1/file1 dir2/file2 2. Start Emacs in dired-mode inside "dir1": $ emacs -Q dir1 /home/dtw/tmp/dir1: total used in directory 0 available 16454160 drwxr-xr-x 2 dtw dtw 60 2017-09-24 16:02:00 . drwxrwxrwt 4 root root 80 2017-09-24 16:02:00 .. -rw-r--r-- 1 dtw dtw 0 2017-09-24 16:02:00 file1 3. Mark the "file1" with command "m" (dired-mark). 4. Type command "Q" (dired-do-find-regexp-and-replace) and type any strings to the regexp and replace prompts. 5. Go one directory up with command "^" (dired-up-directory). /home/dtw/tmp: total used in directory 4 available 16454160 drwxrwxrwt 4 root root 80 2017-09-24 16:02:00 . drwxr-xr-x 61 dtw dtw 4096 2017-09-24 15:42:49 .. drwxr-xr-x 2 dtw dtw 60 2017-09-24 16:02:00 dir1 drwxr-xr-x 2 dtw dtw 60 2017-09-24 16:02:00 dir2 6. Use "D" (dired-do-delete) to delete "dir1" (confirm with "yes" twice). 7. Go to "dir2". /home/dtw/tmp/dir2: total used in directory 0 available 16454160 drwxr-xr-x 2 dtw dtw 60 2017-09-24 16:02:00 . drwxrwxrwt 3 root root 60 2017-09-24 16:03:32 .. -rw-r--r-- 1 dtw dtw 0 2017-09-24 16:02:00 file2 8. Mark the "file2" with command "m" (dired-mark). 9. Type command "Q" (dired-do-find-regexp-and-replace) and enter some strings to regexp and replace prompts. 10. There will be the following error in the echo area and the *Messages* buffer: call-process-shell-command: Setting current directory: No such file or directory, ~/tmp/dir1/ And the command "Q" can't be performed.