From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: make-auto-save-file-name: not using name transforms for mere buffers Date: Wed, 10 Dec 2003 19:06:39 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7443-Wed10Dec2003190639+0200-eliz@elta.co.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1071076782 13040 80.91.224.253 (10 Dec 2003 17:19:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2003 17:19:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 10 18:19:37 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AU7zt-0003mG-00 for ; Wed, 10 Dec 2003 18:19:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AU8u3-0001oF-TF for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Dec 2003 13:17:39 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AU8nc-0007se-HU for help-gnu-emacs@gnu.org; Wed, 10 Dec 2003 13:11:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AU8n1-0007Fa-Gq for help-gnu-emacs@gnu.org; Wed, 10 Dec 2003 13:10:53 -0500 Original-Received: from [192.114.186.22] (helo=gollum.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AU8mX-0006Uy-2x for help-gnu-emacs@gnu.org; Wed, 10 Dec 2003 13:09:53 -0500 Original-Received: from zaretski ([80.230.154.120]) by gollum.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id CAD43520; Wed, 10 Dec 2003 19:07:57 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Florian von Savigny on 10 Dec 2003 17:07:36 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:15127 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:15127 > From: Florian von Savigny > 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).