From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Backup remote files to local host Date: Sun, 05 Apr 2009 10:19:29 +0200 Message-ID: <87prfr5x7y.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1238919632 15087 80.91.229.12 (5 Apr 2009 08:20:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Apr 2009 08:20:32 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ian Eure Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 05 10:21:50 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LqNbu-0007Jx-P5 for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 10:21:47 +0200 Original-Received: from localhost ([127.0.0.1]:38922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqNaW-0008Jy-JD for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 04:20:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqNZr-0008DS-AK for help-gnu-emacs@gnu.org; Sun, 05 Apr 2009 04:19:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqNZm-0008DA-9X for help-gnu-emacs@gnu.org; Sun, 05 Apr 2009 04:19:38 -0400 Original-Received: from [199.232.76.173] (port=49357 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqNZm-0008D7-1R for help-gnu-emacs@gnu.org; Sun, 05 Apr 2009 04:19:34 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:59419) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LqNZl-0005ru-Is for help-gnu-emacs@gnu.org; Sun, 05 Apr 2009 04:19:33 -0400 Original-Received: (qmail invoked by alias); 05 Apr 2009 08:19:31 -0000 Original-Received: from brln-4db96b8e.pool.einsundeins.de (EHLO magdalene.local) [77.185.107.142] by mail.gmx.net (mp031) with SMTP; 05 Apr 2009 10:19:31 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19VnxhAzsBV11GzhAOBzf3Ue5ueVCsuNFuGyWwvra q1glkybA7Rww/L In-Reply-To: (Ian Eure's message of "Fri, 3 Apr 2009 18:54:24 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.7 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63485 Archived-At: --=-=-= Ian Eure writes: > I want to put backups of files I edit via Tramp on my local machine, > rather than on the remote one, since I expect this to be a bit faster. There is an error in Tramp (thanks for reporting!). The appended patch shall fix it; likely you need to adjust the line numbers, because it is for Tramp 2.1.16-pre. Then you can simply say (add-to-list 'backup-directory-alist (cons tramp-file-name-regexp "~/.emacs.d/backups/")) I'll commit it later today to the Emacs and Tramp CVS repositories. > - Ian Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment *** /home/albinus/src/tramp/lisp/tramp.el.~2.681.~ 2009-03-23 15:26:12.000000000 +0100 --- /home/albinus/src/tramp/lisp/tramp.el 2009-04-05 10:08:55.000000000 +0200 *************** *** 4227,4233 **** (let ((backup-directory-alist ;; Emacs case (when (boundp 'backup-directory-alist) ! (if (boundp 'tramp-backup-directory-alist) (mapcar '(lambda (x) (cons --- 4227,4233 ---- (let ((backup-directory-alist ;; Emacs case (when (boundp 'backup-directory-alist) ! (if (symbol-value 'tramp-backup-directory-alist) (mapcar '(lambda (x) (cons *************** *** 4243,4249 **** (bkup-backup-directory-info ;; XEmacs case (when (boundp 'bkup-backup-directory-info) ! (if (boundp 'tramp-bkup-backup-directory-info) (mapcar '(lambda (x) (nconc --- 4243,4249 ---- (bkup-backup-directory-info ;; XEmacs case (when (boundp 'bkup-backup-directory-info) ! (if (symbol-value 'tramp-bkup-backup-directory-info) (mapcar '(lambda (x) (nconc --=-=-=--