* bug#66272: 30.0.50; Dired fails to revert when wildchars in path
@ 2023-09-30 3:29 Michael Heerdegen
2023-10-01 1:27 ` Michael Heerdegen
0 siblings, 1 reply; 3+ messages in thread
From: Michael Heerdegen @ 2023-09-30 3:29 UTC (permalink / raw)
To: 66272
Hello,
I have created a directory for demonstration with names and contents
like this (in my Debian system using master):
/home/micha/Treasure/today/test?dir/:
.
..
a
/home/micha/Treasure/today/test?dir/a:
.
..
some
random
files
It follows a recipe for a bug using emacs -Q:
1. dired /home/micha/Treasure/today/test?dir/a [I see the three
files as expected]
2. Rename directory "a" to "b". I did that from a second dired buffer
of "test?dir" using wdired, but it should not matter.
3. Go back to the first dired buffer and hit g. Then my buffer
only displays these contents:
| ls: cannot access 'test?dir/b/': No such file or directory
| //DIRED-OPTIONS// --quoting-style=literal
This also happens with autorevert.
TIA,
Michael.
In GNU Emacs 30.0.50 (build 11, x86_64-pc-linux-gnu, cairo version
1.16.0) of 2023-09-29 built on drachen
Repository revision: 11b21f7015b6b74f7e72b8e1cbb99ec495320f1f
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101007
System Description: Debian GNU/Linux 12 (bookworm)
Configured using:
'configure --with-x-toolkit=no'
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#66272: 30.0.50; Dired fails to revert when wildchars in path
2023-09-30 3:29 bug#66272: 30.0.50; Dired fails to revert when wildchars in path Michael Heerdegen
@ 2023-10-01 1:27 ` Michael Heerdegen
2023-10-02 0:16 ` Michael Heerdegen
0 siblings, 1 reply; 3+ messages in thread
From: Michael Heerdegen @ 2023-10-01 1:27 UTC (permalink / raw)
To: 66272
Michael Heerdegen <michael_heerdegen@web.de> writes:
> 1. dired /home/micha/Treasure/today/test?dir/a [I see the three
> files as expected]
> 2. Rename directory "a" to "b". I did that from a second dired buffer
> of "test?dir" using wdired, but it should not matter.
> 3. Go back to the first dired buffer and hit g. Then my buffer
> only displays these contents:
>
> | ls: cannot access 'test?dir/b/': No such file or directory
> | //DIRED-OPTIONS// --quoting-style=literal
Hmm - reverting seems to fail always (dired doesn't know that the
directory name changed), but in the case of a name without special
wildcard patterns dired just complains that the file doesn't exist. The
way of failing seems to be different in these cases, which confused me.
Can we make it so that the failing behavior is the same in both cases?
Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#66272: 30.0.50; Dired fails to revert when wildchars in path
2023-10-01 1:27 ` Michael Heerdegen
@ 2023-10-02 0:16 ` Michael Heerdegen
0 siblings, 0 replies; 3+ messages in thread
From: Michael Heerdegen @ 2023-10-02 0:16 UTC (permalink / raw)
To: 66272
Michael Heerdegen <michael_heerdegen@web.de> writes:
> Can we make it so that the failing behavior is the same in both cases?
A nicer behavior would be to leave the buffer contents intact and say
"can't revert, file not found" so that I don't loose information like
file marks.
Bonus points if I would be allowed to specify the new directory name and
revert using that path, keeping things like marks. Maybe that
would already be possible indirectly using vdired - if Emacs would not
leave me with an erased buffer.
Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-02 0:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-30 3:29 bug#66272: 30.0.50; Dired fails to revert when wildchars in path Michael Heerdegen
2023-10-01 1:27 ` Michael Heerdegen
2023-10-02 0:16 ` Michael Heerdegen
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.