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

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

Re: make-auto-save-file-name: not using name transforms for mere buffers


From: Eli Zaretskii
Subject: Re: make-auto-save-file-name: not using name transforms for mere buffers
Date: Wed, 10 Dec 2003 19:06:39 +0200

> From: Florian von Savigny <address@hidden>
> Newsgroups: gnu.emacs.help
> Date: 10 Dec 2003 17:07:36 +0100
> 
> I have tried customising auto-save-file-name-transforms, but this does
> not work, apparently because make-auto-save-file-name only uses it if
> the buffer is visiting a file (does anybody know why on earth?).

Because its doc string says, in its very first line:

   *Transforms to apply to buffer file name before making auto-save file name.
                        ^^^^^^^^^^^^^^^^^^^
So buffers with no file name are not subject to such transforms.

> Is there any standard way to make make-auto-save-file-name use it also
> for buffer names, or do I simply have to hack the function?

Instead of hacking make-auto-save-file-name, I'd suggest to hack
convert-standard-file-name.  On GNU and Unix systems, this function
simply returns its argument.  What you need is to redefine it so that
it recognizes that its argument file resides on a VFAT volume, and
then applies the same transformations done by the MS-Windows variant
of convert-standard-file-name (see w32-fns.el).




reply via email to

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