emacs-devel
[Top][All Lists]
Advanced

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

Re: auto-save-file-name-transforms too simple?


From: Eli Zaretskii
Subject: Re: auto-save-file-name-transforms too simple?
Date: Wed, 21 Nov 2001 19:02:31 +0200

> From: address@hidden (Kai =?iso-8859-1?q?Gro=DFjohann?=)
> Date: Wed, 21 Nov 2001 09:33:31 +0100
> 
> "Stefan Monnier" <monnier+gnu/address@hidden> writes:
> 
> >>  (defcustom auto-save-file-name-transforms
> >> -  '(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)" "/tmp/\\2"))
> >> +  `(("\\`/[^/]*:\\(.+/\\)*\\(.*\\)"
> >> +     ,(format "%s\\2" (file-name-as-directory temporary-file-directory))))
> >
> > What's wrong with (expand-file-name "\\2" temporary-file-directory) ?
> 
> Silly me.  Thanks.  Committed.

Btw, since this explicitly targets remote files, I think it should run
the result of expand-file-name through convert-standard-filename.  The
latter is a no-op on Unix and GNU systems, but on Windows and DOS it
replaces characters that the underlying filesystem disallows.  Remote
file names are likely to suffer from this problem.

Jason, do you agree?



reply via email to

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