> From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > rg] On Behalf Of Ismael Valladolid Torres > Sent: Tuesday 26 April 2005 3:47 pm > To: [email protected] > Subject: [h-e-w] About backup-enable-predicate > > 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!
If your USB disk is really mounted as E: then I suggest you try E: instead of e: in your defun; I don't think string= ignores case. Francis
