From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Remote temporary directory (was: bug#23076: 24.5; vc-git: add a new variable for log output coding system) Date: Wed, 27 Jul 2016 11:57:42 +0200 Message-ID: <87k2g7pfmx.fsf_-_@gmx.de> References: <837fch1vmw.fsf@gnu.org> <8536522f-fa3f-9fe0-63c0-262b8191b4a3@gmail.com> <83h9bdttxi.fsf@gnu.org> <87lh0ons06.fsf@gmx.de> <83r3afst6v.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469613492 15966 80.91.229.3 (27 Jul 2016 09:58:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2016 09:58:12 +0000 (UTC) Cc: nikolay.kudryavtsev@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 27 11:58:03 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bSLbD-0006Pw-UY for ged-emacs-devel@m.gmane.org; Wed, 27 Jul 2016 11:58:00 +0200 Original-Received: from localhost ([::1]:45289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSLbD-0007W2-3q for ged-emacs-devel@m.gmane.org; Wed, 27 Jul 2016 05:57:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSLb3-0007Pd-N5 for emacs-devel@gnu.org; Wed, 27 Jul 2016 05:57:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSLaz-0001qi-Lf for emacs-devel@gnu.org; Wed, 27 Jul 2016 05:57:48 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:65534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSLaz-0001qO-B5; Wed, 27 Jul 2016 05:57:45 -0400 Original-Received: from detlef.gmx.de ([87.146.52.120]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Lb4vZ-1azvbi2YHJ-00kj0Z; Wed, 27 Jul 2016 11:57:43 +0200 In-Reply-To: <83r3afst6v.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 27 Jul 2016 05:36:40 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:IImGhay8hhE/p6FYRKDVNTn47K41PWXC10ydDJurCVLRMFkVWWB r0lDEh6Zdsgs3XsjETIvzB1/+TWT7nxVYHxuaX64JZMscfOP7w1vdiriCOsoIMluGqZZzCG OsGhj+FQ6P3SMbyMuyi/vo323TBR9QOsyI4Ji8MldxDiwq+IEguEkO9gbBZFagNEnD93V+J M0ZEURywOJ94j1G2iGoow== X-UI-Out-Filterresults: notjunk:1;V01:K0:K9wIheyPd0g=:jKOeKLeF+HH7Gs7/vOpZws HlS/dcQNgPFE3DKz3O4tEJ49OlB2gwi5/4sCZNc2a0S7he3RxjCWWuXLXBZI2eGGfAIKrN1OI e2A782hWF/qfbMUVB75DJfDYhGHLul6qnU90ICaWPv1mriVn9Bi9tZwnAi5T13XbXBLifgpUT V90hXWg8Wgr26xWAiL38eLg419mVSFiskTk5ewR5SUcSANhIiloY3t494tqjV9sFVZsbE0RFP L7robCh/HqRckJqA+9d6618/8BQYVpcjroCoDT2WB5rdtm1gzkE6Ep0Wc/MqNK7EN4AnC+qbd nu+tHdsaID5vqTLwWC9hnEtRYog1goWO4Q27ctbKNj//4NfZQv6NoItEtETRkpjLwGzsFu0PC 6qsVITjTMREnzjYsb14R4dc7oBTydu8f98K6mskkDLSJ6ZMI0WBIMYVdLF1Y+gNlZHsDM1D+Z yxYY8XbhmeVMKPeQgNbk2uyUVaA3HxT6TD3JpDySlrq4YlUEc6UvStRhDI+x0LgTdTziJvAk7 i10g9DNR0PZBL7YNKA9CAEE5G6+5ywvTKcLHWrY5sFoXWedMAscR9AQ5i0oqFkTXwH+rasmLn na37XdY1x3GTa+rsvNo4nfS4HrjFl2NrbC22CVtArpS9z+P5jTX5syB1xinL0pjHdb4C7KO9M 8GmUoNrczPCBoZeAPDGh4Dylpt/Rd5CuTaBeUopAYitwgULcNwEVIpKIJm5HmpwOu7gcd3Clx Gplu0VC+7mWINnDT89cw5m1WujyDA62g6ZjfN6csOPKhKvitZg+WOpGu6TMu6m/ZkpnnoTDI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206172 Archived-At: [Moving the discussion to emacs-devel] Eli Zaretskii writes: Hi Eli, >> In general, it looks OK. Although I have reservations to use Tramp >> internal functions outside the Tramp package. But there's no Tramp >> equivalent to make-temp-file yet. Maybe we shall add such a function? > > Yes, I think we should. Thinking about, a more general solution seems to be a function which returns a temporary directory on a remote host. Something like this: --8<---------------cut here---------------start------------->8--- (defun temporary-file-directory (&optional base) "The directory for writing temporary files. BASE indicates the host where this directory is located. If this is a remote file name, the directory for writing temporary files is located on the same host. A local file name for BASE lets the function return the value of the variable `temporary-file-directory'. The default value of BASE is `default-directory'." --8<---------------cut here---------------end--------------->8--- Then you could call (let ((temporary-file-directory (temporary-file-directory))) (make-temp-file "my-prefix)) Similar for `make-temp-name'. And other use cases in `process-file' and `start-file-process'. WDYT? Best regards, Michael.