aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-11-08 10:49:06 +0000
committerMichael Albinus2009-11-08 10:49:06 +0000
commitc7bd4ebeb5ee493baf78d844234e4d34a09c37e1 (patch)
treec2142a8e6d780af99c94b6529ff7b5db4e027223
parent3120d4fa75655bac97513ee62a10464a34cea560 (diff)
downloademacs-c7bd4ebeb5ee493baf78d844234e4d34a09c37e1.tar.gz
emacs-c7bd4ebeb5ee493baf78d844234e4d34a09c37e1.zip
* tramp.texi (Auto-save and Backup): Disable backups just for a
method.
-rw-r--r--doc/misc/ChangeLog7
-rw-r--r--doc/misc/tramp.texi17
2 files changed, 24 insertions, 0 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 5d08081ec00..d18dbea3b7f 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,10 @@
12009-11-08 Michael Albinus <michael.albinus@gmx.de>
2
3 * tramp.texi (Auto-save and Backup): Disable backups just for a
4 method.
5
6 * trampver.texi: Update release number.
7
12009-11-07 Michael Albinus <michael.albinus@gmx.de> 82009-11-07 Michael Albinus <michael.albinus@gmx.de>
2 9
3 Sync with Tramp 2.1.17. 10 Sync with Tramp 2.1.17.
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 8b82c3638af..2c48fe32c55 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -2057,6 +2057,23 @@ for @value{tramp} files:
2057@end lisp 2057@end lisp
2058@end ifset 2058@end ifset
2059 2059
2060@ifset emacs
2061It is also possible to disable backups depending on the used method.
2062The following code disables backups for the @option{su} and
2063@option{sudo} methods:
2064
2065@lisp
2066(setq backup-enable-predicate
2067 (lambda (name)
2068 (and (normal-backup-enable-predicate name)
2069 (not
2070 (let ((method (file-remote-p name 'method)))
2071 (when (stringp method)
2072 (member method '("su" "sudo"))))))))
2073@end lisp
2074@end ifset
2075
2076
2060Another possibility is to use the @value{tramp} variable 2077Another possibility is to use the @value{tramp} variable
2061@ifset emacs 2078@ifset emacs
2062@code{tramp-backup-directory-alist}. 2079@code{tramp-backup-directory-alist}.