From: Michael Albinus <michael.albinus@gmx.de>
To: Ian Eure <ian@digg.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Backup remote files to local host
Date: Sun, 05 Apr 2009 10:19:29 +0200 [thread overview]
Message-ID: <87prfr5x7y.fsf@gmx.de> (raw)
In-Reply-To: <FF029104-FCBE-4423-AC95-C542E72782B3@digg.com> (Ian Eure's message of "Fri, 3 Apr 2009 18:54:24 -0700")
[-- Attachment #1: Type: text/plain, Size: 576 bytes --]
Ian Eure <ian@digg.com> 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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1095 bytes --]
*** /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
prev parent reply other threads:[~2009-04-05 8:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-04 1:54 Backup remote files to local host Ian Eure
2009-04-05 8:19 ` Michael Albinus [this message]
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=87prfr5x7y.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=help-gnu-emacs@gnu.org \
--cc=ian@digg.com \
/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).