From: Po Lu <luangruo@yahoo.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: master 7a5f2b79e9: ; * lisp/dired.el (dired-mouse-drag): Create local copy if file is remote.
Date: Wed, 30 Mar 2022 16:28:40 +0800 [thread overview]
Message-ID: <87wngbx2rr.fsf@yahoo.com> (raw)
In-Reply-To: <87v8vvc1hz.fsf@gmx.de> (Michael Albinus's message of "Wed, 30 Mar 2022 10:01:44 +0200")
Michael Albinus <michael.albinus@gmx.de> writes:
> You must remember the file name of the "old" local copy, because it is
> random.
>
> (file-local-copy "/ssh::.emacs")
> => "/tmp/tramp.k2vQK0"
>
>
> An (undocumented) possibility would be to let-bind
> tramp-temp-name-prefix to something else. Then you could easily identify
> your own temp files.
>
> (let ((tramp-temp-name-prefix "my-own-prefix."))
> (file-local-copy "/ssh::.emacs"))
> => "/tmp/my-own-prefix.HDfgDZ"
>
> Best regards, Michael.
Thanks.
prev parent reply other threads:[~2022-03-30 8:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <164862126656.8211.8114609736677843326@vcs2.savannah.gnu.org>
[not found] ` <20220330062106.D045CC01684@vcs2.savannah.gnu.org>
2022-03-30 7:38 ` master 7a5f2b79e9: ; * lisp/dired.el (dired-mouse-drag): Create local copy if file is remote Michael Albinus
2022-03-30 7:49 ` Po Lu
2022-03-30 8:01 ` Michael Albinus
2022-03-30 8:28 ` Po Lu [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wngbx2rr.fsf@yahoo.com \
--to=luangruo@yahoo.com \
--cc=emacs-devel@gnu.org \
--cc=michael.albinus@gmx.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.