unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@elta.co.il>
Subject: Re: make-auto-save-file-name: not using name transforms for mere buffers
Date: Wed, 10 Dec 2003 19:06:39 +0200	[thread overview]
Message-ID: <7443-Wed10Dec2003190639+0200-eliz@elta.co.il> (raw)
In-Reply-To: <m3y8tkvepj.fsf@uboot.com> (message from Florian von Savigny on 10 Dec 2003 17:07:36 +0100)

> From: Florian von Savigny <florian265@uboot.com>
> 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	other threads:[~2003-12-10 17:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10 16:07 make-auto-save-file-name: not using name transforms for mere buffers Florian von Savigny
2003-12-10 17:06 ` Eli Zaretskii [this message]
2003-12-10 17:10 ` Kevin Rodgers
     [not found] ` <mailman.1505.1071080061.399.help-gnu-emacs@gnu.org>
2003-12-11 11:46   ` Florian von Savigny
2003-12-11 15:07     ` Eli Zaretskii
     [not found]     ` <mailman.1581.1071159027.399.help-gnu-emacs@gnu.org>
2003-12-12  1:19       ` Florian von Savigny
2003-12-12 18:38         ` Eli Zaretskii
2003-12-12 23:02         ` Kevin Rodgers
2003-12-13 11:44           ` Florian von Savigny
     [not found]         ` <mailman.1655.1071258163.399.help-gnu-emacs@gnu.org>
2003-12-13 11:51           ` Florian von Savigny
2003-12-13 16:25             ` Eli Zaretskii
     [not found]             ` <mailman.25.1071336560.868.help-gnu-emacs@gnu.org>
2003-12-13 19:52               ` Florian von Savigny
2003-12-14  6:28                 ` Eli Zaretskii
2004-01-04  3:57             ` David Combs
2004-01-04  6:33               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7443-Wed10Dec2003190639+0200-eliz@elta.co.il \
    --to=eliz@elta.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).