Mercurial > emacs
comparison lisp/files.el @ 12145:bd3e59a5c0b3
(file-precious-flag): Doc clarification.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 09 Jun 1995 01:00:42 +0000 |
parents | ecc3d54df49e |
children | 0bd2831dff40 |
comparison
equal
deleted
inserted
replaced
12144:12720a817d83 | 12145:bd3e59a5c0b3 |
---|---|
129 (put 'buffer-file-number 'permanent-local t) | 129 (put 'buffer-file-number 'permanent-local t) |
130 | 130 |
131 (defconst file-precious-flag nil | 131 (defconst file-precious-flag nil |
132 "*Non-nil means protect against I/O errors while saving files. | 132 "*Non-nil means protect against I/O errors while saving files. |
133 Some modes set this non-nil in particular buffers. | 133 Some modes set this non-nil in particular buffers. |
134 Note that this forces backups to be made by copying. | 134 |
135 This feature works by writing the new contents into a temporary file | |
136 and then renaming the temporary file to replace the original. | |
137 In this way, any I/O error in writing leaves the original untouched, | |
138 and there is never any instant where the file is nonexistent. | |
139 | |
140 Note that this feature forces backups to be made by copying. | |
135 Yet, at the same time, saving a precious file | 141 Yet, at the same time, saving a precious file |
136 breaks any hard links between it and other files.") | 142 breaks any hard links between it and other files.") |
137 | 143 |
138 (defvar version-control nil | 144 (defvar version-control nil |
139 "*Control use of version numbers for backup files. | 145 "*Control use of version numbers for backup files. |