From: Teemu Likonen <tlikonen@iki.fi>
To: 28575@debbugs.gnu.org
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 [thread overview]
Message-ID: <87k20o8cot.fsf@mithlond.arda> (raw)
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.
next reply other threads:[~2017-09-24 13:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-24 13:10 Teemu Likonen [this message]
2017-09-24 23:11 ` bug#28575: 25.1; dired-do-find-regexp-and-replace error about previously deleted directory John Wiegley
2017-09-25 3:29 ` Teemu Likonen
2017-09-25 4:28 ` John Wiegley
2017-09-25 22:43 ` Dmitry Gutov
2017-09-26 3:28 ` John Wiegley
2017-09-26 8:19 ` Dmitry Gutov
2017-09-26 16:27 ` John Wiegley
2017-09-26 18:59 ` Dmitry Gutov
2017-09-25 22:48 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k20o8cot.fsf@mithlond.arda \
--to=tlikonen@iki.fi \
--cc=28575@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.