mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
equals -> file-equal-p refactor
Use more reliable file comparison function.
This commit is contained in:
@@ -49,8 +49,7 @@
|
||||
(make-directory new-path-dir t))
|
||||
(when (buffer-modified-p)
|
||||
(save-buffer))
|
||||
(cond ((equal (file-truename old-path)
|
||||
(file-truename new-path))
|
||||
(cond ((file-equal-p old-path new-path)
|
||||
(throw 'status 'overwrite-self))
|
||||
((and (file-exists-p new-path)
|
||||
(not force-p)
|
||||
|
Reference in New Issue
Block a user