From: Mike Campbell Date: 2002-12-08T00:14:30+09:00 Subject: [ot] emacs backups, was RE: Thank God for backups backup-directory-alist's value is nil Documentation: Alist of filename patterns and backup directory names. Each element looks like (REGEXP . DIRECTORY). Backups of files with names matching REGEXP will be made in DIRECTORY. DIRECTORY may be relative or absolute. If it is absolute, so that all matching files are backed up into the same directory, the file names in this directory will be the full name of the file backed up with all directory separators changed to `!' to prevent clashes. This will not work correctly if your filesystem truncates the resulting name. For the common case of all backups going into one directory, the alist should contain a single element pairing "." with the appropriate directory name. If this variable is nil, or it fails to match a filename, the backup is made in the original file's directory. On MS-DOS filesystems without long names this variable is always ignored. You can customize this variable. Defined in `files'. > -----Original Message----- > From: zem [mailto:zem@timbit.novylen.net]On Behalf Of Martin DeMello > Sent: Saturday, December 07, 2002 2:35 AM > To: ruby-talk ML > Subject: Re: Thank God for backups > > > Daniel Carrera wrote: > > > >> vim: set backupdir=/tmp [I presume the *~ files come from vim?] > > > > They come from Emacs. Do you know how to do the equivalent in Emacs? > > I usually have a 'make clean' in each of my project directories to > delete the junk specific to that project (usually ~ files and things > like latex intermediate stuff). Safer than using rm, and often handier. > > martin