]> git.eshelyaron.com Git - emacs.git/commit
Fix moving to trash files that overwrite dangling symlinks there
authorEli Zaretskii <eliz@gnu.org>
Fri, 16 Dec 2022 15:54:35 +0000 (17:54 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 16 Dec 2022 15:54:35 +0000 (17:54 +0200)
commit303d6ac1423de298dd46728bc21a18ebb42662dc
treefddc173bec25dce6ddcbb535616df8a573c7e0f9
parentdc78779c0cd1f057830458f341c280ddb6695409
Fix moving to trash files that overwrite dangling symlinks there

* lisp/files.el (file-exists-in-trash-p): New function.
(move-file-to-trash): Use it instead of 'file-exists-p' when
testing whether the file exist in the trash.  (Bug#59986)
lisp/files.el