1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Small break-hardlink-on-save fix.

* files.el (basic-save-buffer-2):
Fix handling of break-hardlink-on-save with non-existent files.
This commit is contained in:
Nix 2011-05-19 17:51:46 -07:00 committed by Glenn Morris
parent 4d4b75e888
commit 35fd0881e6
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-05-20 Nix <nix@esperi.org.uk>
* files.el (basic-save-buffer-2):
Fix handling of break-hardlink-on-save with non-existent files.
2011-05-19 Deniz Dogan <deniz@dogan.se>
* net/rcirc.el (rcirc-mode): Initialize rcirc-urls to nil.

View File

@ -4517,6 +4517,7 @@ Before and after saving the buffer, this function runs
(dir-writable (file-writable-p dir)))
(if (or (and file-precious-flag dir-writable)
(and break-hardlink-on-save
(file-exists-p buffer-file-name)
(> (file-nlinks buffer-file-name) 1)
(or dir-writable
(error (concat (format