mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
* tramp.texi (Auto-save and Backup): Disable backups just for a
method.
This commit is contained in:
parent
3120d4fa75
commit
c7bd4ebeb5
@ -1,3 +1,10 @@
|
||||
2009-11-08 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* tramp.texi (Auto-save and Backup): Disable backups just for a
|
||||
method.
|
||||
|
||||
* trampver.texi: Update release number.
|
||||
|
||||
2009-11-07 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
Sync with Tramp 2.1.17.
|
||||
|
@ -2057,6 +2057,23 @@ for @value{tramp} files:
|
||||
@end lisp
|
||||
@end ifset
|
||||
|
||||
@ifset emacs
|
||||
It is also possible to disable backups depending on the used method.
|
||||
The following code disables backups for the @option{su} and
|
||||
@option{sudo} methods:
|
||||
|
||||
@lisp
|
||||
(setq backup-enable-predicate
|
||||
(lambda (name)
|
||||
(and (normal-backup-enable-predicate name)
|
||||
(not
|
||||
(let ((method (file-remote-p name 'method)))
|
||||
(when (stringp method)
|
||||
(member method '("su" "sudo"))))))))
|
||||
@end lisp
|
||||
@end ifset
|
||||
|
||||
|
||||
Another possibility is to use the @value{tramp} variable
|
||||
@ifset emacs
|
||||
@code{tramp-backup-directory-alist}.
|
||||
|
Loading…
Reference in New Issue
Block a user