From: Eli Zaretskii <eliz@gnu.org>
To: Shuguang Sun <shuguang@gmail.com>
Cc: 29440@debbugs.gnu.org
Subject: bug#29440: Tramp put drive_c in the backup file name when backuping in local PC/windows
Date: Sat, 25 Nov 2017 21:18:37 +0200 [thread overview]
Message-ID: <831skm88vm.fsf@gnu.org> (raw)
In-Reply-To: <CACspjXfUm+uwXmfagyiuOTqWH9S4nrLAtcXRk48B47-A_MSBCA@mail.gmail.com> (message from Shuguang Sun on Sun, 26 Nov 2017 00:08:42 +0800)
> From: Shuguang Sun <shuguang@gmail.com>
> Date: Sun, 26 Nov 2017 00:08:42 +0800
>
> Windows 7
> GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32) of 2017-11-24
>
> I didn't set tramp-backup-directory-alist which means the fiile will be backuped locally instead of being backup
> in server side.
>
> backup-directory-alist:
> ("\\.[rR]\\(md\\)?$" . "~/.emacs.d/autosave/Rfiles")
>
> When I open a file in tramp and edit it, the backup file will be and was backuped in the local direcory:
> ~/.emacs.d/autosave/Rfiles (c:/Users/username/HOME/.emacs.d/autosave/Rfiles). However the backfile is
> named
> "c:/Users/username/HOME/.emacs.d/autosave/Rfiles/!drive_c!plink!!username@host!!!opt!bee!home!username!test!coxph_bench.r.~2~",
> where "dirve_c" was put in.
Maybe I'm confused, but what did you expect to happen instead? When
files are backed-up in a single directory, the drive letters cannot be
kept because Windows doesn't allow colons in file names.
next prev parent reply other threads:[~2017-11-25 19:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-25 16:08 bug#29440: Tramp put drive_c in the backup file name when backuping in local PC/windows Shuguang Sun
2017-11-25 19:18 ` Eli Zaretskii [this message]
2017-11-26 6:00 ` Shuguang Sun
2017-11-27 17:24 ` Michael Albinus
2017-11-27 18:07 ` Eli Zaretskii
2017-11-27 20:21 ` Michael Albinus
2017-11-30 19:23 ` Michael Albinus
2017-12-01 18:20 ` Eli Zaretskii
2017-12-01 10:42 ` Eli Zaretskii
2017-12-02 11:34 ` Michael Albinus
2018-02-05 13:31 ` Michael Albinus
2018-02-06 9:12 ` Shuguang Sun
2018-02-07 7:37 ` Michael Albinus
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=831skm88vm.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=29440@debbugs.gnu.org \
--cc=shuguang@gmail.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).