bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58919: 28.2; dired-copy-file-recursive fails to overwrite directory


From: Michael Albinus
Subject: bug#58919: 28.2; dired-copy-file-recursive fails to overwrite directory
Date: Fri, 23 Dec 2022 11:26:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Paul Eggert <eggert@cs.ucla.edu> writes:

Hi Paul,

>> I re-read your make-directory code, it looks like
>> PARENTS isn't propagated any longer to the file name handlers. So this
>> must be handled documented there, at least.
>
> Yes, the idea is that in Emacs 29, make-directory handlers never are
> passed a non-nil PARENTS flag, and their return values are always
> ignored. That way, Emacs 28 style make-directory handlers should work
> fine in Emacs 29 since only the intersection of the Emacs 28 and 29
> make-directory APIs is used when calling a make-directory handler.
>
> In Emacs 30, once we've updated make-directory handlers to support the
> Emacs 29 make-directory API, we can simplify the code that calls these
> handlers.

In Emacs 30, I have adapted tramp-*-make-directory and
ange-ftp-make-directory accordingly.

There's also url-dav-make-directory, but I don't know whether it is
still used. At least, I haven't been able to trigger it by a respective
"dav://..." URL. And it looks strange, because it ignores PARENTS, and
it doesn't raise an error in case the directory exists already. Hmmm.

There don't seem to be other file name handlers for make-directory in
core Emacs and in GNU ELPA packages. Do you want to simplify
make-directory accordingly?

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]