diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2010-11-06 15:04:23 +0100 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2010-11-06 15:04:23 +0100 |
commit | 6ce78fdc207098b4932a19e8f1dd5293264037d4 (patch) | |
tree | 4eb27fd7c92de53549058f9b623cff51c2c907ca /lisp/net | |
parent | a16b2d46ffd8180c359425db98f7905d73587c69 (diff) | |
download | emacs-6ce78fdc207098b4932a19e8f1dd5293264037d4.tar.gz |
* files.el (backup-by-copying-when-mismatch): Make it a buffer local
variable (permanent-local).
* net/tramp.el (tramp-handle-insert-file-contents): Do not set
`permanent-local' property for `(backup-by-copying-when-mismatch'.
Diffstat (limited to 'lisp/net')
-rw-r--r-- | lisp/net/tramp.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 50fbaed01e0..17c8c074c46 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -5011,8 +5011,7 @@ coding system might not be determined. This function repairs it." (set-buffer-modified-p nil) ;; For root, preserve owner and group when editing files. (when (string-equal (file-remote-p filename 'user) "root") - (set (make-local-variable 'backup-by-copying-when-mismatch) t) - (put 'backup-by-copying-when-mismatch 'permanent-local t))) + (set (make-local-variable 'backup-by-copying-when-mismatch) t))) (when (and (stringp local-copy) (or remote-copy (null tramp-temp-buffer-file-name))) (delete-file local-copy)) |