summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2010-11-21 20:39:21 +0100
committerMichael Albinus <michael.albinus@gmx.de>2010-11-21 20:39:21 +0100
commite274eb13e0bbe9d200aa813b7ec3ef559f76405c (patch)
treea52b1b664b002eef628fcbb077905b44af931151 /lisp/files.el
parent77af54d7c2d9e1ebcbbe1dffec4004b7079ce6bf (diff)
downloademacs-e274eb13e0bbe9d200aa813b7ec3ef559f76405c.tar.gz
* files.el (backup-by-copying-when-mismatch): The default value is
now t. * startup.el (normal-top-level): * net/tramp.el (tramp-handle-insert-file-contents): Do not set `backup-by-copying-when-mismatch'.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 3b130a20d2b..42a3f87cb11 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -115,13 +115,14 @@ This variable is relevant only if `backup-by-copying' is nil."
:type 'boolean
:group 'backup)
-(defcustom backup-by-copying-when-mismatch nil
+(defcustom backup-by-copying-when-mismatch t
"Non-nil means create backups by copying if this preserves owner or group.
Renaming may still be used (subject to control of other variables)
when it would not result in changing the owner or group of the file;
that is, for files which are owned by you and whose group matches
the default for a new file created there by you.
This variable is relevant only if `backup-by-copying' is nil."
+ :version "24.1"
:type 'boolean
:group 'backup)
(put 'backup-by-copying-when-mismatch 'permanent-local t)