emacs-devel
[Top][All Lists]
Advanced

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

Re: master 7a5f2b79e9: ; * lisp/dired.el (dired-mouse-drag): Create loca


From: Po Lu
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

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.


reply via email to

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