[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: specific backup
From: |
Kevin Rodgers |
Subject: |
Re: specific backup |
Date: |
Fri, 17 Oct 2008 07:34:36 -0600 |
User-agent: |
Thunderbird 2.0.0.17 (Macintosh/20080914) |
harven wrote:
Is there a way to inhibit backups (that is the making of ~ files)
for files satisfying some regular expression, or for files in a
given list ?
RTFM (Emacs):
The default value of the `backup-enable-predicate' variable prevents
backup files being written for files in the directories used for
temporary files, specified by `temporary-file-directory' or
`small-temporary-file-directory'.
RTFM (Emacs Lisp):
-- Variable: backup-enable-predicate
This variable's value is a function to be called on certain
occasions to decide whether a file should have backup files. The
function receives one argument, an absolute file name to consider.
If the function returns `nil', backups are disabled for that file.
Otherwise, the other variables in this section say whether and how
to make backups.
The default value is `normal-backup-enable-predicate', which checks
for files in `temporary-file-directory' and
`small-temporary-file-directory'.
--
Kevin Rodgers
Denver, Colorado, USA