help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [h-e-w] About backup-enable-predicate


From: Dr Francis J Wright
Subject: RE: [h-e-w] About backup-enable-predicate
Date: Tue, 26 Apr 2005 16:28:40 +0100

> From: 
> address@hidden 
> [mailto:address@hidden
> rg] On Behalf Of Ismael Valladolid Torres
> Sent: Tuesday 26 April 2005 3:47 pm
> To: address@hidden
> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]