From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 30 08:56:37 2018 Received: (at submit) by debbugs.gnu.org; 30 Apr 2018 12:56:37 +0000 Received: from localhost ([127.0.0.1]:43535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD8M9-0001yt-7A for submit@debbugs.gnu.org; Mon, 30 Apr 2018 08:56:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD8M7-0001ye-Ql for submit@debbugs.gnu.org; Mon, 30 Apr 2018 08:56:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fD8M0-0005HH-UB for submit@debbugs.gnu.org; Mon, 30 Apr 2018 08:56:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fD8M0-0005HD-R4 for submit@debbugs.gnu.org; Mon, 30 Apr 2018 08:56:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fD8Lz-0003Yc-0A for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2018 08:56:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fD8Lu-0005FA-3Z for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2018 08:56:27 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:40675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fD8Lt-0005DW-Q9 for bug-gnu-emacs@gnu.org; Mon, 30 Apr 2018 08:56:22 -0400 Received: from [10.253.37.70] (port=24245 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fD8Lo-0003Ny-3g for bug-gnu-emacs@gnu.org; Tue, 01 May 2018 00:56:16 +1200 Received: from [150.107.175.170] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Tue, 01 May 2018 00:56:15 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 01 May 2018 00:56:15 +1200 From: Phil Sainty To: bug-gnu-emacs@gnu.org Subject: 26.1; Add a tramp-make-tramp-temp-file* variant which returns the full tramp =?UTF-8?Q?filename=3F?= Message-ID: X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) I have a tramp use-case where I want to create a temporary file on the remote host and then populate that file via elisp -- I am using (with-temp-file tramp-file-name (insert contents)) -- and `tramp-make-tramp-temp-file' doesn't seem to facilitate this nicely due to it returning only the local part of the generated filename, which means I need to *recreate* the full tramp path for that file before I can edit the file. At present I am using `tramp-make-tramp-file-name' using the returned local path and the original vector passed to `tramp-make-tramp-temp-file'; but as well as being cumbersome, I don't like making the assumption that I'm always going to get the correct value (even if it turns out that I would in practice). (I should perhaps even be dissecting the return value of `tramp-get-remote-tmpdir' to obtain a new vector to recreate that full path with, but that's even more work, and it looks like it would wind up being the same values...) It would seem useful to split `tramp-make-tramp-temp-file' into two functions; one to generate the temporary file and return the full path, and the other to return the localname. Does the following seem reasonable? (defun tramp-make-tramp-temp-file (vec) "Create a temporary file on the remote host identified by VEC. Return the local name of the temporary file." (with-parsed-tramp-file-name (tramp-make-tramp-temp-file* vec) nil localname)) (defun tramp-make-tramp-temp-file* (vec) "Create a temporary file on the remote host identified by VEC. Return the full tramp file name of the temporary file." (let ((prefix (expand-file-name tramp-temp-name-prefix (tramp-get-remote-tmpdir vec))) result) (while (not result) ;; `make-temp-file' would be the natural choice for ;; implementation. But it calls `write-region' internally, ;; which also needs a temporary file - we would end in an ;; infinite loop. (setq result (make-temp-name prefix)) (if (file-exists-p result) (setq result nil) ;; This creates the file by side effect. (set-file-times result) (set-file-modes result (string-to-number "0700" 8)))) result)) In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2018-04-15 built on shodan Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.4 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2018-04-15 uncompressing tramp.el.gz...done Making completion list... Configured using: 'configure --prefix=/home/phil/emacs/26.1rc1/usr/local --with-x-toolkit=lucid --without-sound' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK DBUS GSETTINGS NOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 THREADS LCMS2 Important settings: value of $LANG: en_NZ.UTF-8 locale-coding-system: utf-8 Major mode: Emacs-Lisp Minor modes in effect: show-paren-mode: t minibuffer-depth-indicate-mode: t winner-mode: t global-hl-line-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: (only . t) Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils imenu jka-compr thingatpt find-func dired-x easymenu paren mb-depth winner ring hl-line dired dired-loaddefs advice elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 104217 8935) (symbols 48 20906 1) (miscs 40 407 318) (strings 32 31341 1364) (string-bytes 1 821008) (vectors 16 14887) (vector-slots 8 500084 10656) (floats 8 60 400) (intervals 56 546 22) (buffers 992 15) (heap 1024 41834 1175)) From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 30 09:21:14 2018 Received: (at 31317) by debbugs.gnu.org; 30 Apr 2018 13:21:14 +0000 Received: from localhost ([127.0.0.1]:43545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD8jy-0002af-J5 for submit@debbugs.gnu.org; Mon, 30 Apr 2018 09:21:14 -0400 Received: from mout.gmx.net ([212.227.17.22]:46431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD8jx-0002aL-4C for 31317@debbugs.gnu.org; Mon, 30 Apr 2018 09:21:13 -0400 Received: from detlef.gmx.de ([212.86.45.82]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MMHaL-1fILOZ0EvN-0083xK; Mon, 30 Apr 2018 15:20:58 +0200 From: Michael Albinus To: Phil Sainty Subject: Re: bug#31317: 26.1; Add a tramp-make-tramp-temp-file* variant which returns the full tramp filename? References: Date: Mon, 30 Apr 2018 15:20:56 +0200 In-Reply-To: (Phil Sainty's message of "Tue, 01 May 2018 00:56:15 +1200") Message-ID: <87efiwakzr.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:fB1enDtnTJoaSmZWy7lDUzFkH5fcJftnMyZfnhDdXwmedEtKUgc ocBmVXuhh5rxfrEQ5T+ZagWoFDZd4v3HzvOOvC1Xp21pzrrpcb8QnZlK4v/mhePwrGDCPV0 Uzzsbc6My7HOu48lnFsTE+uX1mtUnaGIcghrE+T6iS4PdavRVZoiwCu+djKROf/Nal2CmD0 6XXVtWpMB/wrmfhpVhkiA== X-UI-Out-Filterresults: notjunk:1;V01:K0:3iYZHI+dCxQ=:HDVeun6EN/uegWUlUSgOeC uGoxNyrXMqOxuyGCIc4PLqsESlyM1pyXWYU4q+s58dx7QhTB2BW4GKGMjOnSpiZOTaeh/rj8P uVrEpeB7d4BjmYjWsMWP5LzC3uBSwr6RFM1dI5/275jnkR77HWLEfha4H3csfBQJyDMXl/x6N fBmegMsX8DJN3/VwbbVXiBIb6yMqfsrZ0W6pqBXOCKkTe7UpMHb0BGOokE/rX+K8vepSGjU9R j+SD+DW8D8KMcJnBUDGsH3R7MtSUkWTpzVYX8fd4/WSFMtBwjCEpFnbpt8Odl0XsTnfU7gBHD GXEj+S39f62iBlv+1xfYBrJzascreuPnt0NmBCrQzTPDZDjowH9+JmZwSeqAfl3cKvyU2Rrb6 irrRnpSfR2J8Zhdy5TcndvO4vA30ZnapDcWfw6wapja4hMI4bXEnFgFScRl2HxLSA1dbWnqwV SQ0TYE6WESFYMXg1sZrt43pe7bwKJUHKoJp3Ptmahm3em4+V4igr7LjsUa7fYcmn/Xu9bCK57 6cpg63QnidrCJu6UVtPbYMGrPrYqBlQOCtl2q5Fs9Vn59Wfzgkgdcr4unryiPHpLqFgYGICUW mrtBY+T2sxjJ9CB6yLuAb6uso7fsi0jiLswxDJmO6ZgZv9P0gPvKVKsPgvFnr9TxOfST/wAi4 r52/N3BnsXO3wdCHojlit23meQjN+XS4iwMkTwxYdIc/2tfz85llKkjnsct8h9/nga/R3qtmo t2/MBVfwCCywEiEOoFxnG0GgME/wFYphz3bUOijmjVdqAutMroRGqcpOTXHprBzvJNjDmUfJN V8iYYfK X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31317 Cc: 31317@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Phil Sainty writes: Hi Phil, > I have a tramp use-case where I want to create a temporary file > on the remote host and then populate that file via elisp -- I am > using (with-temp-file tramp-file-name (insert contents)) -- and > `tramp-make-tramp-temp-file' doesn't seem to facilitate this > nicely due to it returning only the local part of the generated > filename, which means I need to *recreate* the full tramp path > for that file before I can edit the file. What about `make-nearby-temp-file'? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 30 09:56:03 2018 Received: (at 31317) by debbugs.gnu.org; 30 Apr 2018 13:56:03 +0000 Received: from localhost ([127.0.0.1]:44098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD9Hf-0003XE-2D for submit@debbugs.gnu.org; Mon, 30 Apr 2018 09:56:03 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:33894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD9Hc-0003Wr-0e for 31317@debbugs.gnu.org; Mon, 30 Apr 2018 09:56:00 -0400 Received: from [10.253.37.70] (port=4376 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fD9HZ-0006NO-KP; Tue, 01 May 2018 01:55:57 +1200 Received: from [150.107.175.170] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Tue, 01 May 2018 01:55:57 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 01 May 2018 01:55:57 +1200 From: Phil Sainty To: Michael Albinus Subject: Re: bug#31317: 26.1; Add a tramp-make-tramp-temp-file* variant which returns the full tramp =?UTF-8?Q?filename=3F?= In-Reply-To: <87efiwakzr.fsf@gmx.de> References: <87efiwakzr.fsf@gmx.de> Message-ID: X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31317 Cc: 31317@debbugs.gnu.org, bug-gnu-emacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-05-01 01:20, Michael Albinus wrote: > What about `make-nearby-temp-file'? Thanks Michael. I see that this is new to 26.1. > ** The new functions 'make-nearby-temp-file' and > 'temporary-file-directory' > can be used for creation of temporary files on remote or mounted > directories. That certainly does the trick. Would it make sense for `tramp-make-tramp-temp-file' to be utilising that function? (i.e. composing a tramp file name from VEC and then handing off to `make-nearby-temp-file' ?) -Phil From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 30 10:10:46 2018 Received: (at 31317) by debbugs.gnu.org; 30 Apr 2018 14:10:46 +0000 Received: from localhost ([127.0.0.1]:44106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD9Vu-0003sG-24 for submit@debbugs.gnu.org; Mon, 30 Apr 2018 10:10:46 -0400 Received: from mout.gmx.net ([212.227.15.18]:36521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD9Vs-0003s3-8Z for 31317@debbugs.gnu.org; Mon, 30 Apr 2018 10:10:44 -0400 Received: from detlef.gmx.de ([212.86.45.82]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MaJPk-1expYF1vUe-00JtPO; Mon, 30 Apr 2018 16:10:31 +0200 From: Michael Albinus To: Phil Sainty Subject: Re: bug#31317: 26.1; Add a tramp-make-tramp-temp-file* variant which returns the full tramp filename? References: <87efiwakzr.fsf@gmx.de> Date: Mon, 30 Apr 2018 16:10:30 +0200 In-Reply-To: (Phil Sainty's message of "Tue, 01 May 2018 01:55:57 +1200") Message-ID: <87a7tkaip5.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:yyUVLcQXcvcLdFJdnUh8s9gstiOHN+EAE1qNzEi2LL33WeFZ8Ao CqAKC8hDOXv4XcAKnJpTECOXDx1K8yKQBLODMctY3u9bsMzMJhI2lQm3AvhMXh8Vn4GPlRS V18g0bOzbKuKdU4dY9Co6ams5KFaYmCAecQ3rnZcLhLZft6qGhbgnTAmaJ2J2S+XlfP0ZZy Rk5uKRKOU9FuiEpYkb3mA== X-UI-Out-Filterresults: notjunk:1;V01:K0:Thw7Jp1zyYM=:fnbwpIFCYCKD6PEmvaq+6w kFEQ4XywGpaPVTjfviFVO4Y0PLogwrMkYhwOIN8Wyq3WV2o6ewx3DZ0T9LwuYPt4K37zLE9Bo EEUtLIpergSTe3ryIQM5xfxdwn/IId60n5cviZUrYFX/i9WkYieAxjhGaTGgnkC5iBQ7W/JHR GPds+3ADsFFJ9Rfz1wCHxgvNcE+pIOlxkK6LDXtqOrLaGsWfAldRxaVCjW2f5ATNX9kkoYxw6 5ZOxspVzR5FWVa5d75qvspj55MCP9u/BAxuUqX2CnN7vh7In1WNNoCdIFXFuEzSL1AFfVb/EV y80fNDlgzNjBQD5tSonenm3Tos5HXK3+WDOjrCgxuVGlPTWHIH5oRzyJKyZV481fewlaQScDp 6FW6UmYTf2z03AHnRlzEiuTI2+lwIUYLyfo6aLqkjDR7oSsxjDNrQuQG6jw/J5SoL2aSGlsF0 Ah0hrLb9OW4nsXxHzQWPnqfEcriYfdfx77/l+YSC1/zU0iGBZznhVf/Qio+27YUymvEvViutg 99BLaBQByhqCySWiw7DEBfnNYTP9wPe2wYY/PBUhWYtm6dZx2T+2RrVLRJL1RAvwOZeZQSKlo 8NOGLEHZNiUkVu70pYma2S06hvozAcxg/LOkaZcWsmX16XMbWOt3PB75ZHkiPE6UJVBOxBc/l aCy0qY/G1JtCP3OKQ/bp+2vQ9sqkO60gSwjEPapv+us6XVnnc70KQtHpg+5Ya0KJTcxFlLn+8 11pkfqdrN2pDCnHxeOvPEELV9Pmt+Iih5XpdDTCxxxaLPz3g4DSkcrXtjAV3q6LtF35wWfzA2 RAguRYT X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31317 Cc: 31317@debbugs.gnu.org, bug-gnu-emacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Phil Sainty writes: Hi Phil, > That certainly does the trick. Yep, I'm closing this bug. > Would it make sense for `tramp-make-tramp-temp-file' to be utilising > that function? (i.e. composing a tramp file name from VEC and then > handing off to `make-nearby-temp-file' ?) No, see the comment inside `tramp-make-tramp-temp-file'. It must use `make-temp-name' instead of `make-temp-file'. > -Phil Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 30 10:11:47 2018 Received: (at control) by debbugs.gnu.org; 30 Apr 2018 14:11:47 +0000 Received: from localhost ([127.0.0.1]:44110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD9Wt-0003uE-CL for submit@debbugs.gnu.org; Mon, 30 Apr 2018 10:11:47 -0400 Received: from mout.gmx.net ([212.227.17.22]:45307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD9Wq-0003u0-IA for control@debbugs.gnu.org; Mon, 30 Apr 2018 10:11:45 -0400 Received: from detlef.gmx.de ([212.86.45.82]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LxcbX-1eJX6X1bYp-017EpU for ; Mon, 30 Apr 2018 16:11:38 +0200 Date: Mon, 30 Apr 2018 16:11:37 +0200 Message-Id: <878t94aina.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #31317 X-Provags-ID: V03:K1:0+PA2BgQA/ipSAyllyB++5cOt0HeqoqSJ/2U1UqhF+pEUSUds4K qf5ffol2YyOiMwUEjvVLpsxflXABAMc8NOAKN8w19XzvuLjInTrPj6jDiIvzztSQSy/mciI LZDXSxuTrW7YzIGeDqTwwhcPNHWVk1K+m+mIwcp8SdKtizkSvsvYY5p606cx55UfFRvqBJ3 55cyW1LFhCNs7s0kpA5Qg== X-UI-Out-Filterresults: notjunk:1;V01:K0:e2EGumOFUP8=:n+sXIpIqsfKkcrWI9qXBGf Rj6QvCo6S5eRpBahAoxtrNfivbdiEAUoZbtK7VFy//V5yadMgW2hGWKMrk215t45+oZ5GM4Iq 7vXnGUf7xmDzGbJ2gC6x4vA4yyUd66oLdFGypPg81b0OEvQkUx5IWsQtmeq5ph/WABfm6NeMF s2gU9nVVVdIClWySco8Ygduz6q2jKvti40py616ywrXDWPu1rpMZxqtajwpLTdb9gcDIjM0v/ FbJkjIBngtnmMT9+99QZ2QhhJsWwiGMmCPxGrIb2CQMY8Xj/Qrjdm0Mo3ImU8ozYZnEE36np4 AeU4FaP4xz45+ruLywe9oWt6CTnFFP2nogeqnS9Iv/UdSkMic9df34G3S9p462i3eCN1b0CXZ 9O2Jol0Cyk885Yvt3PjJL01ZEYr/j9FqlU/vAgIDxlGBf1o5TelKeM4bKQt76zS1r2vnoAI9K Zg7Uz9PlWVc2bOj1ZFfvtijxw4kyf6jOtSXp+x5HneQeMhYQ0/TOTzoBUwUTwGHLVB3q84+sV IpnRUPkHZQJDtZ08XYSvHsOPo0YukZSvjBThj7TQ8qpsbKP6mjxySPDb0a3l3smVqgkI6CVGP HabdWXS6xBouwtKeCo2mgMoMxjQkHjV6pdJHGxeesgB7iKA47lXwIIdZjRFaoJbzbX66zG4wp AOjk1g9oQEGDYAymTVk2XLbuDcuWw/LO1//X8yeGmv83xuRGXfYasyIIrlZVfn34T9y+IcOod iqjmXFPOMD1qT0pGZJb0fvURaayrLYLvWodBEo6PaHIc/1XRo4UACkjLOCc= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 31317 notabug close 31317 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 30 10:37:08 2018 Received: (at 31317) by debbugs.gnu.org; 30 Apr 2018 14:37:08 +0000 Received: from localhost ([127.0.0.1]:44131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD9vQ-0006UN-88 for submit@debbugs.gnu.org; Mon, 30 Apr 2018 10:37:08 -0400 Received: from smtp-2.orcon.net.nz ([60.234.4.43]:50058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fD9vO-0006UF-Db for 31317@debbugs.gnu.org; Mon, 30 Apr 2018 10:37:06 -0400 Received: from [10.253.37.70] (port=6408 helo=webmail.orcon.net.nz) by smtp-2.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fD9vL-0006Hl-Ax; Tue, 01 May 2018 02:37:03 +1200 Received: from [150.107.175.170] via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Tue, 01 May 2018 02:37:03 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 01 May 2018 02:37:03 +1200 From: Phil Sainty To: Michael Albinus Subject: Re: bug#31317: 26.1; Add a tramp-make-tramp-temp-file* variant which returns the full tramp =?UTF-8?Q?filename=3F?= In-Reply-To: <87a7tkaip5.fsf@gmx.de> References: <87efiwakzr.fsf@gmx.de> <87a7tkaip5.fsf@gmx.de> Message-ID: <51048b5f0835fc94ab113f7cf343630f@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz User-Agent: Orcon Webmail X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31317 Cc: 31317@debbugs.gnu.org, bug-gnu-emacs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 2018-05-01 02:10, Michael Albinus wrote: > Phil Sainty writes: >> Would it make sense for `tramp-make-tramp-temp-file' to be utilising >> that function? (i.e. composing a tramp file name from VEC and then >> handing off to `make-nearby-temp-file' ?) > > No, see the comment inside `tramp-make-tramp-temp-file'. It must use > `make-temp-name' instead of `make-temp-file'. I'm rather confused about why there would be a danger of an infinite loop if `tramp-make-tramp-temp-file' called `make-nearby-temp-file', if that (presumably) is not a danger if I call `make-nearby-temp-file' in a tramp context? I'm obviously missing something. Never mind. Thank you for pointing me to the new function! -Phil From unknown Fri Sep 05 11:01:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 29 May 2018 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator