* bug#52004: dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/
@ 2021-11-20 18:56 積丹尼 Dan Jacobson
2021-11-21 8:36 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-11-20 18:56 UTC (permalink / raw)
To: 52004
$ mkdir /tmp/a /tmp/b
$ emacs -Q /tmp/a
Put the cursor on the "." line, and hit R and try and move it to /tmp/b .
Overwrite ‘/tmp/b’? [Type yn!q or C-h] y
dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/
Yes, on /tmp we can move /tmp/a to /tmp/b (creating /tmp/a/b/) easily.
But still, the above problem should be detected earlier, before the
question is shown to the user.
emacs-version "27.1"
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#52004: dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/
2021-11-20 18:56 bug#52004: dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/ 積丹尼 Dan Jacobson
@ 2021-11-21 8:36 ` Lars Ingebrigtsen
2022-09-24 13:28 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-11-21 8:36 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 52004
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> $ mkdir /tmp/a /tmp/b
> $ emacs -Q /tmp/a
> Put the cursor on the "." line, and hit R and try and move it to /tmp/b .
> Overwrite ‘/tmp/b’? [Type yn!q or C-h] y
> dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/
I can't reproduce this in Emacs 29, so I guess it's been fixed since
then.
However, hitting `g' in the directory after the operation gives me an
error about default-directory no longer existing (which is correct), but
this should be handled better.
This is a duplicate of bug#30578, though, so I'm merging these bugs.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#52004: dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/
2021-11-21 8:36 ` Lars Ingebrigtsen
@ 2022-09-24 13:28 ` Lars Ingebrigtsen
0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-24 13:28 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 52004
Lars Ingebrigtsen <larsi@gnus.org> writes:
>> $ mkdir /tmp/a /tmp/b
>> $ emacs -Q /tmp/a
>> Put the cursor on the "." line, and hit R and try and move it to /tmp/b .
>> Overwrite ‘/tmp/b’? [Type yn!q or C-h] y
>> dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/
I've now made it refuse to rename . and .. -- doing so is just too
confusing even if it worked.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-24 13:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-20 18:56 bug#52004: dired-rename-subdir-2: Expected to find ‘/tmp/a/./’ in headerline of /tmp/a/ 積丹尼 Dan Jacobson
2021-11-21 8:36 ` Lars Ingebrigtsen
2022-09-24 13:28 ` Lars Ingebrigtsen
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.