From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jay Belanger Newsgroups: gmane.emacs.help Subject: Re: universal backup directory Date: Mon, 27 Jan 2003 13:27:09 -0600 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <847kcqo55m.fsf@lucy.is.informatik.uni-duisburg.de> Reply-To: belanger@truman.edu NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043695897 11443 80.91.224.249 (27 Jan 2003 19:31:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2003 19:31:37 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18dExv-0002u7-00 for ; Mon, 27 Jan 2003 20:30:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18dExw-0003dB-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 27 Jan 2003 14:30:44 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.newsfirst.net!newshub.more.net!news.more.net!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:/HYEQhnDXkV/H+RPW1yr7inyBU0= Original-Lines: 23 Original-NNTP-Posting-Host: 150.243.167.195 Original-X-Trace: news.more.net 1043695627 150.243.167.195 (Mon, 27 Jan 2003 13:27:07 CST) Original-NNTP-Posting-Date: Mon, 27 Jan 2003 13:27:07 CST Original-Xref: shelby.stanford.edu gnu.emacs.help:109462 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5982 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5982 john doe writes: > ;; MAKE ALL BACKUPS TO A SINGLE DIRECTORY > (setq backup-directory-alist `(("." . > ,(file-name-nondirectory "~/.emacs_backups")))) > > This will make backups in the current directory to a > dir called .emacs_backups -- however, is there a way > to make one universal backup directory that all emacs > files go to regardless of where they are saved? The `file-name-nondirectory' strips the "~/" from "~/.emacs_backups", and so what you have is equivalent to (setq backup-directory-alist '(("." ".emacs_backups"))) and so .emacs_backup is put in the current directory. You probably want (setq backup-directory-alist '(("." "~/.emacs_backups"))) Jay