Thierry Volpiatto <
thierry....@gmail.com> writes:
> Julien Cubizolles <
j.cubi...@free.fr> writes:
>
>> In helm-mode, write-file can't be used to copy a file to another
>> directory with the same name. When visiting
file.org, invoking
>> write-file and selecting ~/directory/ in the completing buffer gives
>> "File ''~/directory/.' exists; overwrite ?" Of course that's not what I
>> want, I want to write ~/directory/
file.org.
>
> Of course.
> It is working in emacs-25.3, I can only reproduce your bug in
> emacs-27.0.50, which is due to recent changes (stupid IMO) in files.el,
Here are the changes:
61946d991b663c9d35a50b758d0108c3cbf8027b
Author: Paul Eggert <
egg...@cs.ucla.edu>
AuthorDate: Sun Sep 10 22:19:01 2017 -0700
Commit: Paul Eggert <
egg...@cs.ucla.edu>
CommitDate: Sun Sep 10 22:31:23 2017 -0700
Parent: e22794867d8 Make copy-directory act like copy-file etc.
Containing: master
Follows: emacs-25.1 (129998)
Make write-file act like copy-file etc.
Change write-file to be consistent with the new behavior
of copy-file, etc.
* etc/NEWS: Mention this.
* lisp/files.el (write-file): Treat the destination as special
only if it is a directory name.
--
Thierry