From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (=?iso-8859-1?q?Johan_Bockg=E5rd?=) Newsgroups: gmane.emacs.help Subject: Re: auto-saving in other directory Date: Thu, 27 Nov 2003 23:20:43 +0100 Organization: Chalmers University of Technology, Sweden Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1069973270 31252 80.91.224.253 (27 Nov 2003 22:47:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Nov 2003 22:47:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 27 23:47:48 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 1APUvL-0000lI-00 for ; Thu, 27 Nov 2003 23:47:48 +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 1APVpR-0003wX-9s for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2003 18:45:45 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!ircam.fr!news.completel.fr!fr.ip.ndsoftware.net!193.162.153.118.MISMATCH!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!news.net.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: frealaf.dd.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (usg-unix-v) Cancel-Lock: sha1:Kapc01v52g+vIUExIi7IxNxlgA0= Original-Xref: shelby.stanford.edu gnu.emacs.help:118727 Original-To: help-gnu-emacs@gnu.org 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:14669 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14669 Jesper Harder writes: > "leo" writes: > >> for backup files (like "filename.~1~) i can easily tell emacs to >> create them in its own subdirectory via backup-directory-alist. >> >> regarding auto-saving files (like "#filename#") this mechanism >> doesn't exist. > > I think you should be able to do it by customizing > `auto-save-file-name-transforms'. I thought so too, but I have found this as well (also mentioned in the Emacs manual): ,----[ C-h f make-auto-save-file-name RET ] | make-auto-save-file-name is a compiled Lisp function in `files'. | (make-auto-save-file-name) | | Return file name to use for auto-saves of current buffer. Does not | consider `auto-save-visited-file-name' as that variable is checked | before calling this function. You can redefine this for | customization. See also `auto-save-file-name-p'. `---- -- Johan Bockgård