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:
parent
4d4b75e888
commit
35fd0881e6
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user