[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[h-e-w] About backup-enable-predicate
From: |
Ismael Valladolid Torres |
Subject: |
[h-e-w] About backup-enable-predicate |
Date: |
Tue, 26 Apr 2005 16:46:49 +0200 |
User-agent: |
Mutt/1.4.1i |
When I edit files in my USB disk, I don't want backups to be
created. This snippet works lovely on my Linux box:
(defun my-backup-enable-predicate (filename)
(not (string= "/media/usbdisk" (substring filename 0 14))))
(setq backup-enable-predicate 'my-backup-enable-predicate)
However, at work, using W2K, the USB disk gets mounted as E:. Then
I've tried this but doesn't work!
(defun my-backup-enable-predicate (filename)
(not (string= "e:" (substring filename 0 2))))
(setq backup-enable-predicate 'my-backup-enable-predicate)
Any ideas, comments or suggestions are welcome!
Cordially, Ismael
- [h-e-w] About backup-enable-predicate,
Ismael Valladolid Torres <=