[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.0.39); backup file naming error (%backup% resulted)

From: Peter Woo
Subject: Re: tramp (2.0.39); backup file naming error (%backup% resulted)
Date: Mon, 15 Mar 2004 23:26:52 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

I guess ":" is a problem on NT or Cygwin Emacs. A Cygwin "touch" test on a filename such as "test:abc" would result in a file "test" with everything after ":" lost. And if under Cygwin Emacs, it can't even be created but resulted in the generic filename "%backup%".

So, I would say translating the ":" to something else such as "!" would solve my problem. However, not sure whether this is a preference for all platforms. Perhaps a tramp variable for tweaking?


Michael Albinus wrote:

Peter Woo <address@hidden> writes:

So, rather than using the workaround, which ends up having "~"
suffixed backups all over the places, is it possible to enable tramp
to use absolute path backup dir?

I did the following test:

(add-to-list 'backup-directory-alist
            (cons tramp-file-name-regexp "/tmp"))

Playing with "/sudo:address@hidden:/home/albinus/123" on my host gave
me a backup file "/tmp/!sudo:address@hidden:!home!albinus!123.~1~".
Would this be sufficient for you?

Many thanks,

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]