diff options
| author | Michael Albinus | 2009-11-08 10:49:06 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-11-08 10:49:06 +0000 |
| commit | c7bd4ebeb5ee493baf78d844234e4d34a09c37e1 (patch) | |
| tree | c2142a8e6d780af99c94b6529ff7b5db4e027223 | |
| parent | 3120d4fa75655bac97513ee62a10464a34cea560 (diff) | |
| download | emacs-c7bd4ebeb5ee493baf78d844234e4d34a09c37e1.tar.gz emacs-c7bd4ebeb5ee493baf78d844234e4d34a09c37e1.zip | |
* tramp.texi (Auto-save and Backup): Disable backups just for a
method.
| -rw-r--r-- | doc/misc/ChangeLog | 7 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 17 |
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 @@ | |||
| 1 | 2009-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 | |||
| 1 | 2009-11-07 Michael Albinus <michael.albinus@gmx.de> | 8 | 2009-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 | ||
| 2061 | It is also possible to disable backups depending on the used method. | ||
| 2062 | The 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 | |||
| 2060 | Another possibility is to use the @value{tramp} variable | 2077 | Another 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}. |