|
From: | Peter Woo |
Subject: | Re: tramp (2.0.39); backup file naming error (%backup% resulted) |
Date: | Sun, 21 Mar 2004 00:21:53 +0800 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 |
However, while it works fine for tramp's ftp option, for ssh, it fails when saving. The 'Not a tramp file' error still appears.
Initially, I thought it was the "!" which causes the problem this time but when using the code below to translate "!" to "#", it still failed. Actually, perhaps it's not a valid guess because with 'ftp' option, the full filename does get saved to the backup dir. The error msg:
Not a tramp file name: /home/woop/.emacs.d/autoback/!ssh:address@hidden:!home!subnet142.com!admin!test~
So... Many thanks, P. Michael Albinus wrote:
As workaround you can try this one (together with setting `backup-directory-alist'): (defadvice make-backup-file-name (after tramp-advice-make-backup-file-name activate) "Converting \":\" for Tramp file names." (subst-char-in-string ?: ?! ad-return-value 'inplace))Best regards, Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |