[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Remote temporary directory
From: |
Michael Albinus |
Subject: |
Re: Remote temporary directory |
Date: |
Wed, 27 Jul 2016 14:27:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Nikolay Kudryavtsev <address@hidden> writes:
> Another way would be abstracting away the remoteness and creating a
> function that makes a temporary file based on some filepath regardless
> of whether it's local or not.
`make-temp-file' does it already. It depends only on the settings of
`temporary-file-directory'.
> In particular case of that bug, you still have to strip tramp method
> and host when passing path to git, but in general I think such a
> function would work well.
(or (file-remote-p file 'localname) file)
This returns always the local part of a file name. It does not need an
explicit Tramp function call, and it works also for other file name
handlers, like `ange-ftp-hook-function' or `url-file-handler'.
Best regards, Michael.
- Remote temporary directory (was: bug#23076: 24.5; vc-git: add a new variable for log output coding system), Michael Albinus, 2016/07/27
- Re: Remote temporary directory, Nikolay Kudryavtsev, 2016/07/27
- Re: Remote temporary directory,
Michael Albinus <=
- Re: Remote temporary directory (was: bug#23076: 24.5; vc-git: add a new variable for log output coding system), Eli Zaretskii, 2016/07/27
- Re: Remote temporary directory, Michael Albinus, 2016/07/27
- Re: Remote temporary directory, Eli Zaretskii, 2016/07/27
- Re: Remote temporary directory, Michael Albinus, 2016/07/27
- Re: Remote temporary directory, Michael Albinus, 2016/07/29
- Re: Remote temporary directory, Stefan Monnier, 2016/07/29
- Re: Remote temporary directory, Michael Albinus, 2016/07/31
- Re: Remote temporary directory, Stefan Monnier, 2016/07/31
- Re: Remote temporary directory, Michael Albinus, 2016/07/31
- Re: Remote temporary directory, Eli Zaretskii, 2016/07/30