From unknown Tue Aug 19 09:32:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#12340 <12340@debbugs.gnu.org> To: bug#12340 <12340@debbugs.gnu.org> Subject: Status: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" Reply-To: bug#12340 <12340@debbugs.gnu.org> Date: Tue, 19 Aug 2025 16:32:14 +0000 retitle 12340 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "= No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/= T/py62333GTT'" reassign 12340 emacs submitter 12340 Matt McClure severity 12340 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 03 12:45:21 2012 Received: (at submit) by debbugs.gnu.org; 3 Sep 2012 16:45:21 +0000 Received: from localhost ([127.0.0.1]:36575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8Zm5-000220-0H for submit@debbugs.gnu.org; Mon, 03 Sep 2012 12:45:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39283) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8Zm1-00021s-TZ for submit@debbugs.gnu.org; Mon, 03 Sep 2012 12:45:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8ZkO-0007no-IE for submit@debbugs.gnu.org; Mon, 03 Sep 2012 12:43:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HK_RANDOM_ENVFROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:41695) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZkO-0007ng-Ed for submit@debbugs.gnu.org; Mon, 03 Sep 2012 12:43:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZkM-00044c-TG for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:43:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8ZkH-0007mi-V2 for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:43:34 -0400 Received: from mail-ie0-f169.google.com ([209.85.223.169]:43082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8ZbK-0005SM-0x for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 12:34:14 -0400 Received: by iec9 with SMTP id 9so4252143iec.0 for ; Mon, 03 Sep 2012 09:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Le1x6S6zegjAWDpGZEUbMP615f1pkyqklkqMlngaIhc=; b=KRH7TfCCGl1wtenh4XorRrJNV4EJk4FeGhYJhq9ezFUKhvdI1QmDokPVRpy9+um97n fmqwUxjhDdNSgBuokUU2de+EwZ8MxQY9vUYx1ujBaXe9J+EqixKm2d4/lviqXTccHqcp uky7zgQ0AoYKpdMHQD9xbyKdfeAYyVeE/TRe7P+5CjbJ+FZgUF+oFxxxNlnPgW6VAUER 5aEEfYOaWhf3cvj4mkILTKlLPUBraUnuZ7FTc/gOJcHfg8fj/nKThKsPW8JxsNnNwNJ0 KuOk6A1jRe1wxEL15rQrIuc+dWiEzPdAJfwdhYoMTtvpxz7HqOdS3nDuSVVhCJNvJGmH ZGAQ== MIME-Version: 1.0 Received: by 10.50.236.65 with SMTP id us1mr11244824igc.17.1346690052931; Mon, 03 Sep 2012 09:34:12 -0700 (PDT) Received: by 10.50.154.225 with HTTP; Mon, 3 Sep 2012 09:34:12 -0700 (PDT) Date: Mon, 3 Sep 2012 12:34:12 -0400 Message-ID: Subject: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" From: Matt McClure To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': *** To reproduce: $ open -n -a Emacs --args -Q --no-site-file --eval '(progn (find-file "/@:~/.py") (python-shell-switch-to-shell))' RET n (or y) The *Python* buffer contains: Python 2.4.3 (#1, Jun 18 2012, 08:55:23) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Traceback (most recent call last): File "", line 1, in ? IOError: [Errno 2] No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT' >>> Traceback (most recent call last): File "", line 1, in ? IOError: [Errno 2] No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333TdZ' >>> Traceback (most recent call last): File "", line 1, in ? IOError: [Errno 2] No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333gnf' >>> Looks to me as though python.el and TRAMP need to use the temporary directory on the remote machine rather than the local machine. I'm able to reproduce the defect in Emacs-2012-07-14-109087-universal-10.6.8 at least through Emacs-2012-08-28-109798-universal-10.6.8 but not in Emacs-2012-06-08-108519-universal-10.6.8. In Emacs-2012-06-08-108519-universal-10.6.8 the equivalent recipe to get to a Python shell is: open -n -a Emacs --args -Q --no-site-file --eval '(progn (find-file "/vagrant@192.168.33.2:~/hello.py") (python-switch-to-python nil))' *** If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 24.2.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-08-28 on bob.porkrind.org Bzr revision: 109798 dmantipov@yandex.ru-20120828062008-t2jfhu5niq9upru9 Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.5'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Inferior Python Minor modes in effect: compilation-shell-minor-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: n C-x h w x r e p o r t Recent messages: Tramp: Waiting for prompts from remote shell Tramp: Sending command `exec ssh -q -l vagrant -o ControlPath=/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/tramp.623335IN.%r@%h:%p -o ControlMaster=yes -e none 192.168.33.2' Tramp: Found remote shell prompt on `192.168.33.2' Tramp: Opening connection for vagrant@192.168.33.2 using scpc...done Sent python-shell-completion-setup-code Sent python-ffap-setup-code Sent python-eldoc-setup-code Mark set [2 times] delete-backward-char: Text is read-only Load-path shadows: None found. Features: (shadow sort mail-extr misearch multi-isearch emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils compile python rx easymenu tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util mm-util mail-prsvr password-cache tramp-loaddefs shell pcomplete comint ansi-color ring format-spec advice help-fns advice-preload time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 03 19:35:46 2012 Received: (at 12340) by debbugs.gnu.org; 3 Sep 2012 23:35:47 +0000 Received: from localhost ([127.0.0.1]:37136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8gBG-000426-Mx for submit@debbugs.gnu.org; Mon, 03 Sep 2012 19:35:46 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:62156) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8gBF-00041z-6E for 12340@debbugs.gnu.org; Mon, 03 Sep 2012 19:35:46 -0400 Received: by ieak13 with SMTP id k13so4197735iea.3 for <12340@debbugs.gnu.org>; Mon, 03 Sep 2012 16:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Xg1uyspNaxVzx3Ff3nVJ0mcjWGDdQb+y/E79oHlFdLY=; b=vZTq7vaKQ61Js1V/4gyLnl2CetNSSLmKitEtYYt2f35t8vpd04IvomC6w15CjLoHzo SU3WSe4l57ojEYDaBbOfeOa7lbwfYOHTHGPSqDaI57qHkNk4EQSAOcmx+hVTaBgvntoZ Jd4/l06dD7um4ZdSH/D9w6CfGzr7rLyC5jkxaE3/7nh3cKjuiJqQJ4WqGGIy/cg5nI+/ 1PM/mD1jXK18mspkQO8mVQ/ngCLNSTWal+qwWhRFUonldWE5KQ2v7oT5NUS+IdytIy87 Y9WKE91TjWEDuuc4tKjpem7CfX10IYNQWLI56B3L4vkUtxkgvigfNsf2DW88cm+yPrdc 4uFA== MIME-Version: 1.0 Received: by 10.43.92.135 with SMTP id bq7mr16487270icc.33.1346715249766; Mon, 03 Sep 2012 16:34:09 -0700 (PDT) Received: by 10.50.154.225 with HTTP; Mon, 3 Sep 2012 16:34:09 -0700 (PDT) Date: Mon, 3 Sep 2012 19:34:09 -0400 Message-ID: Subject: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" From: Matt McClure To: 12340@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12340 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Here's a patch that I think might resolve the issue. Only lightly tested. --- python.el.orig 2012-09-03 19:30:56.000000000 -0400 +++ python.el 2012-09-03 19:31:56.000000000 -0400 @@ -1824,7 +1824,13 @@ (lines (split-string string "\n" t))) (and msg (message "Sent: %s..." (nth 0 lines))) (if (> (length lines) 1) - (let* ((temp-file-name (make-temp-file "py")) + + (let* ((temporary-file-directory + (if (file-remote-p default-directory) + (concat (file-remote-p default-directory) "/tmp") + temporary-file-directory)) + (f (make-temp-file "py")) + (temp-file-name (or (file-remote-p f 'localname) f)) (file-name (or (buffer-file-name) temp-file-name))) (with-temp-file temp-file-name (insert string) -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 03 21:01:55 2012 Received: (at 12340) by debbugs.gnu.org; 4 Sep 2012 01:01:55 +0000 Received: from localhost ([127.0.0.1]:37253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8hWc-0005zp-AA for submit@debbugs.gnu.org; Mon, 03 Sep 2012 21:01:55 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:47619) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8hWY-0005zg-St for 12340@debbugs.gnu.org; Mon, 03 Sep 2012 21:01:52 -0400 Received: by ieak13 with SMTP id k13so4253101iea.3 for <12340@debbugs.gnu.org>; Mon, 03 Sep 2012 18:00:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=xpOcy0jT1kGqrbF70XUEZGzNMSiPXZ8PGogmNbTeLIk=; b=sWtTarcSfrnbv9YADzEc1yY8pulw1t/ZJX9XAnKHbwRGpkmLH85Ol3m37WSjSe6k9K IMkO5CsLPSIqG4DKDhA7VzxakXLp/hDH1O8a5utMouUseEQy0QLqu+Z0YelPker9BSqn TXibMi35qPECEQmZ1B0RToB0ndhf6s3zYmD4nk+2yAxnUeGypJxPMav9CbdhRQdv9qpJ 3NWx5l41bdz8l1RMDfJgMIsie2wLQn9O41+Xqt8prB6OlVOOV7A5guNWZeAXa+z5i23k ZLPlsK4ssL/0pm+C+18+jMNwr8oU8MgVBvf8SExHQb1Z3KzCqrHzfZ/FxBSTPmBbKXAX 3C0g== MIME-Version: 1.0 Received: by 10.50.17.132 with SMTP id o4mr12177049igd.17.1346720415106; Mon, 03 Sep 2012 18:00:15 -0700 (PDT) Received: by 10.50.154.225 with HTTP; Mon, 3 Sep 2012 18:00:15 -0700 (PDT) In-Reply-To: References: Date: Mon, 3 Sep 2012 21:00:15 -0400 Message-ID: Subject: Re: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" From: Matt McClure To: 12340@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12340 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) If you prefer to pull the change from a Git repo, here's the same change on GitHub: From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 04 09:53:41 2012 Received: (at 12340) by debbugs.gnu.org; 4 Sep 2012 13:53:41 +0000 Received: from localhost ([127.0.0.1]:38015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8tZV-0007lA-BI for submit@debbugs.gnu.org; Tue, 04 Sep 2012 09:53:41 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:54103) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T8tZT-0007l3-Ir for 12340@debbugs.gnu.org; Tue, 04 Sep 2012 09:53:40 -0400 Received: (qmail invoked by alias); 04 Sep 2012 13:51:14 -0000 Received: from p57BB9577.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.149.119] by mail.gmx.net (mp036) with SMTP; 04 Sep 2012 15:51:14 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/xgIt32YzxaGeWtWtWNq7BQjRdx3BDgu3c/qMpxn C7qeaUfZ3a02de From: Michael Albinus To: Matt McClure Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" References: Date: Tue, 04 Sep 2012 15:51:05 +0200 In-Reply-To: (Matt McClure's message of "Mon, 3 Sep 2012 19:34:09 -0400") Message-ID: <87mx15galy.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12340 Cc: 12340@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Matt McClure writes: > Here's a patch that I think might resolve the issue. Only lightly tested. It looks good, you have derived it from the patch we have created some weeks ago :-) However: > + (let* ((temporary-file-directory > + (if (file-remote-p default-directory) > + (concat (file-remote-p default-directory) "/tmp") > + temporary-file-directory)) > + (f (make-temp-file "py")) > + (temp-file-name (or (file-remote-p f 'localname) f)) > (file-name (or (buffer-file-name) temp-file-name))) Shouldn't this be (file-name (or (buffer-file-name) f))) Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 04 16:23:05 2012 Received: (at 12340) by debbugs.gnu.org; 4 Sep 2012 20:23:05 +0000 Received: from localhost ([127.0.0.1]:38913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8zeL-0008Kb-7e for submit@debbugs.gnu.org; Tue, 04 Sep 2012 16:23:05 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:43164) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T8zeJ-0008KO-De for 12340@debbugs.gnu.org; Tue, 04 Sep 2012 16:23:04 -0400 Received: by ieak13 with SMTP id k13so5964304iea.3 for <12340@debbugs.gnu.org>; Tue, 04 Sep 2012 13:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=drD6SM4m1cNC50E5n5HDvj5V0ud8+fJC5Jag+y10XzU=; b=bil0oxTnio/mRZUXfHGUeoHpTpm/XQ977Mq4HVIF/GaAIexkeWLRZP4F6B6UZAPbWq oZwK0m4fBq1/miS41Uacm7Wx86y2XTBO9rXfS6JxeiqlYDlBJE9UkHAs/XekFRqPHpqe prPdfp7Z/mCPTAdgSkjsgbsewGEdVezmYARlML+VMmrTo8HPD3zQp5dEwAL9ls3WDPDa kjKxq856vXdxMQyEsXvRDTTLAIoJzo1nYfZZxCGzASbZQ0Q7c0+fqQ36t9TdYpNLJmnO EJYH8FklK9S+trmmQVYSunu6jQxNUfPdl3acZLtq6dDiavftLU16ZQXcpzm9TRlpeXny kxSQ== MIME-Version: 1.0 Received: by 10.50.195.169 with SMTP id if9mr15217853igc.62.1346790180227; Tue, 04 Sep 2012 13:23:00 -0700 (PDT) Received: by 10.50.154.225 with HTTP; Tue, 4 Sep 2012 13:23:00 -0700 (PDT) In-Reply-To: <87mx15galy.fsf@gmx.de> References: <87mx15galy.fsf@gmx.de> Date: Tue, 4 Sep 2012 16:23:00 -0400 Message-ID: Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" From: Matt McClure To: Michael Albinus Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12340 Cc: 12340@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Tue, Sep 4, 2012 at 9:51 AM, Michael Albinus wrote: > However: > >> + (let* ((temporary-file-directory >> + (if (file-remote-p default-directory) >> + (concat (file-remote-p default-directory) "/tmp") >> + temporary-file-directory)) >> + (f (make-temp-file "py")) >> + (temp-file-name (or (file-remote-p f 'localname) f)) >> (file-name (or (buffer-file-name) temp-file-name))) > > Shouldn't this be > > (file-name (or (buffer-file-name) f))) Actually, the first attempt didn't really work. Here's an updated patch: . I've tested this one on local and remote interpreters, using python-shell-send-{buffer,region,file}. -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 05 11:03:43 2012 Received: (at 12340) by debbugs.gnu.org; 5 Sep 2012 15:03:43 +0000 Received: from localhost ([127.0.0.1]:40521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9H8o-0001vp-HS for submit@debbugs.gnu.org; Wed, 05 Sep 2012 11:03:42 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:43849) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T9H8m-0001vh-Do for 12340@debbugs.gnu.org; Wed, 05 Sep 2012 11:03:41 -0400 Received: (qmail invoked by alias); 05 Sep 2012 15:03:14 -0000 Received: from p57BB9583.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.149.131] by mail.gmx.net (mp024) with SMTP; 05 Sep 2012 17:03:14 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18Kf4UkuZoKd+1Gory1wTM/9s3GyH6kYDY6OGUQm2 9J6qwmHC5AfdvA From: Michael Albinus To: Matt McClure Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" References: <87mx15galy.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) Date: Wed, 05 Sep 2012 17:03:10 +0200 Message-ID: <878vcofr69.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12340 Cc: 12340@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Matt McClure writes: > Actually, the first attempt didn't really work. Here's an updated > patch: . > I've tested this one on local and remote interpreters, using > python-shell-send-{buffer,region,file}. This are more than 15 changed lines, it doesn't count as tiny change. If you want to get it pushed to Emacs, you would need to sign FSF legal papers. Are you interested in? I believe, the patch is too complicate. When you call python-shell-send-file, you pass file-name in remote syntax, but temp-file-name already stripped to the local file name part on the remote side. This confuses, I believe. I wouldn't use host-rel-temp-file-name here, and just pass temp-file-name as it is. All the remote name strippings could be performed in python-shell-send-file. Something like this (completely untested, but you get the idea): --8<---------------cut here---------------start------------->8--- *** ~/src/emacs/lisp/progmodes/python.el.~109871~ 2012-09-05 16:01:08.029147300 +0200 --- ~/src/emacs/lisp/progmodes/python.el 2012-09-05 16:35:03.756949973 +0200 *************** *** 1824,1830 **** (lines (split-string string "\n" t))) (and msg (message "Sent: %s..." (nth 0 lines))) (if (> (length lines) 1) ! (let* ((temp-file-name (make-temp-file "py")) (file-name (or (buffer-file-name) temp-file-name))) (with-temp-file temp-file-name (insert string) --- 1824,1834 ---- (lines (split-string string "\n" t))) (and msg (message "Sent: %s..." (nth 0 lines))) (if (> (length lines) 1) ! (let* ((temporary-file-directory ! (if (file-remote-p default-directory) ! (concat (file-remote-p default-directory) "/tmp") ! temporary-file-directory)) ! (temp-file-name (make-temp-file "py")) (file-name (or (buffer-file-name) temp-file-name))) (with-temp-file temp-file-name (insert string) *************** *** 1940,1946 **** (concat "__pyfile = open('''%s''');" "exec(compile(__pyfile.read(), '''%s''', 'exec'));" "__pyfile.close()") ! (or temp-file-name file-name) file-name) process))) (defun python-shell-switch-to-shell () --- 1944,1951 ---- (concat "__pyfile = open('''%s''');" "exec(compile(__pyfile.read(), '''%s''', 'exec'));" "__pyfile.close()") ! (or (file-remote-p temp-file-name 'localname) temp-file-name) ! (or (file-remote-p file-name 'localname) file-name)) process))) (defun python-shell-switch-to-shell () --8<---------------cut here---------------end--------------->8--- Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 05 15:05:34 2012 Received: (at 12340) by debbugs.gnu.org; 5 Sep 2012 19:05:34 +0000 Received: from localhost ([127.0.0.1]:41051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9Kur-0006WE-Tj for submit@debbugs.gnu.org; Wed, 05 Sep 2012 15:05:34 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]:41031) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9Kuq-0006W7-H7 for 12340@debbugs.gnu.org; Wed, 05 Sep 2012 15:05:33 -0400 Received: by iabz21 with SMTP id z21so1123215iab.3 for <12340@debbugs.gnu.org>; Wed, 05 Sep 2012 12:05:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :cc:content-type; bh=neOPiKYyhR2kRnKGZWyo1nd22lQBmvIv3J/tLb2bGHk=; b=pVGDTbnOm6PZnQnAQVkf2vypDALIrPbkA8hk5Q9h86f/CKmuK5ngWlQpfZQ74vMWCV enk7n96bJQlfLAwtbPJWtsJpkPSaZha6kMYh8gzub+ZfaAlZvTKCT3AF3b9HfXkpxM3k iCQzkTSec7LVVlCpYt585HhTbyMHkgu/f4eOGU/Z8uxlnmMhQDNKnGX9zS9QJzCRpwj1 Y1YAQpPUpigwdmNMejNOHDw8dnZ3PpPg9YW59hh4i/SiQ2xe/IFb953EpDe2vzAUUaCe OgvbhmS9KR7dgFmvifK3IPDlcwLXjzU7IGJWYNQUAp91HhyT/t1/TSNWtQx1cGfIYegw Kr7g== Received: by 10.42.62.143 with SMTP id y15mr22052984ich.38.1346871922405; Wed, 05 Sep 2012 12:05:22 -0700 (PDT) References: <87mx15galy.fsf@gmx.de> <878vcofr69.fsf@gmx.de> From: Matt McClure In-Reply-To: <878vcofr69.fsf@gmx.de> Mime-Version: 1.0 (1.0) Date: Wed, 5 Sep 2012 15:05:21 -0400 Message-ID: <3000148071136951595@unknownmsgid> Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" To: Michael Albinus Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12340 Cc: "12340@debbugs.gnu.org" <12340@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Sep 5, 2012, at 11:03 AM, Michael Albinus wrote: > This are more than 15 changed lines, it doesn't count as tiny change. If > you want to get it pushed to Emacs, you would need to sign FSF legal > papers. Are you interested in? Sure. Where do I get and send the required paperwork? I'll refactor the change to simplify it. Matt McClure http://matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 06 00:15:46 2012 Received: (at 12340) by debbugs.gnu.org; 6 Sep 2012 04:15:46 +0000 Received: from localhost ([127.0.0.1]:41746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9TVJ-0006ve-BU for submit@debbugs.gnu.org; Thu, 06 Sep 2012 00:15:46 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:43244) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9TVH-0006vW-H6 for 12340@debbugs.gnu.org; Thu, 06 Sep 2012 00:15:44 -0400 Received: by ieak13 with SMTP id k13so2301797iea.3 for <12340@debbugs.gnu.org>; Wed, 05 Sep 2012 21:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=LuXdXgRK5Sk/RSd+JBzqIBk+/vU2juSxWWZ8yG1czZ0=; b=Njy6lpcmQaAN23Z4ztJ7dMMhnzNYotTZFj96OVi5NoqFvPhz6094nGwNOTsFsRhxea 64uWA1fRtXG4jPoZWlg6rLSMYDvYfZCFbObjQ4f9NZcxuNbiPDIR+7wSHRkDjhogL4m/ WUunE7HCi68JNzwIPFNH3z2UY7s02Rf9Js7WVg7uS8ZL8FG6OXaG86gHrmBE/NqoSIfh 3BfaOtDydfFvFJ2lgrCZL9U2fgXJzLqsAQhrrIdETpnuouKlZg9i5mawGYVuPOYEaPIY j0v9Qhu3AxYigqyV9VHhzs/GuD11iRWR28vltwzoFUzbIM9pFgC4USNThE+IfiN/WxD1 Q6MQ== Received: by 10.50.16.202 with SMTP id i10mr20496966igd.19.1346904932861; Wed, 05 Sep 2012 21:15:32 -0700 (PDT) Received: from ulysses ([155.69.16.255]) by mx.google.com with ESMTPS id 10sm2507020igf.11.2012.09.05.21.15.29 (version=SSLv3 cipher=OTHER); Wed, 05 Sep 2012 21:15:32 -0700 (PDT) From: Chong Yidong To: Matt McClure Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" References: <87mx15galy.fsf@gmx.de> <878vcofr69.fsf@gmx.de> <3000148071136951595@unknownmsgid> Date: Thu, 06 Sep 2012 12:15:26 +0800 In-Reply-To: <3000148071136951595@unknownmsgid> (Matt McClure's message of "Wed, 5 Sep 2012 15:05:21 -0400") Message-ID: <87ipbrdbxd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12340 Cc: "12340@debbugs.gnu.org" <12340@debbugs.gnu.org>, Michael Albinus X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Matt McClure writes: > Sure. Where do I get and send the required paperwork? Please email the following information to fsf-records@gnu.org, and they will send you the assignment form for your past and future changes. Please use your full name as the subject line of the message. [What is your full legal name?] [What is the name of the program or package you're contributing to?] GNU Emacs [Did you copy any files or text written by someone else in these changes? Even if that material is free software, we need to know about it.] [Do you have an employer who might have a basis to claim to own your changes? Do you attend a school which might make such a claim?] [For the copyright registration, what country are you a citizen of?] [What year were you born?] [Please write your email address here.] [Please write your snail address here.] [Which files have you changed so far, and which new files have you written so far?] From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 06 22:12:22 2012 Received: (at 12340) by debbugs.gnu.org; 7 Sep 2012 02:12:22 +0000 Received: from localhost ([127.0.0.1]:45071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9o3S-0005rW-6d for submit@debbugs.gnu.org; Thu, 06 Sep 2012 22:12:22 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:64328) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9o3P-0005rO-T4 for 12340@debbugs.gnu.org; Thu, 06 Sep 2012 22:12:20 -0400 Received: by ieak13 with SMTP id k13so4169877iea.3 for <12340@debbugs.gnu.org>; Thu, 06 Sep 2012 19:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rhLLgRZN/BBBKr3QJU8p7Vnx5Td+itUmeDYTCmxWqTs=; b=IbaafzA5hQctxfs66bQOa6pWABcg2x0Ix71e5vQXQdL13ehCvU7+APSNBEB/gY9Ee0 73f1U4khzbCNVm2hvWrdlMNFXGjomqytXu1nDRKhIm2RoNCErmQ8mWPzIf8u/jte9Eye JbnbISVtky2DtF6XO9VbkVCya+SbtuopfFH4LYsl//FTgFqT5iU2EUETqobbDtKyYkW3 pQmkmKH2Nx+OEzvF32S4+sajgxdE80+//fP1sI7VVh5fVp0ePX+YpHCNaS7I/qVsWieN eAtG0hnjZHittp3NigDr2d3V64tgOyYFMHgCO2EERUQ33TtbOv0hLt6sjmzdpEFpsU6Y YxBQ== MIME-Version: 1.0 Received: by 10.43.97.8 with SMTP id ci8mr4767097icc.28.1346983923728; Thu, 06 Sep 2012 19:12:03 -0700 (PDT) Received: by 10.50.154.225 with HTTP; Thu, 6 Sep 2012 19:12:03 -0700 (PDT) In-Reply-To: <87ipbrdbxd.fsf@gnu.org> References: <87mx15galy.fsf@gmx.de> <878vcofr69.fsf@gmx.de> <3000148071136951595@unknownmsgid> <87ipbrdbxd.fsf@gnu.org> Date: Thu, 6 Sep 2012 22:12:03 -0400 Message-ID: Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" From: Matt McClure To: Chong Yidong Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12340 Cc: "12340@debbugs.gnu.org" <12340@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Thu, Sep 6, 2012 at 12:15 AM, Chong Yidong wrote: > Matt McClure writes: > >> Sure. Where do I get and send the required paperwork? > > Please email the following information to fsf-records@gnu.org, and they > will send you the assignment form for your past and future changes. Thanks, Chong. I sent the info to fsf-records. -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 06 22:52:30 2012 Received: (at 12340) by debbugs.gnu.org; 7 Sep 2012 02:52:30 +0000 Received: from localhost ([127.0.0.1]:45099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9ogI-0006oO-7K for submit@debbugs.gnu.org; Thu, 06 Sep 2012 22:52:30 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]:63307) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9ogE-0006oF-Ky for 12340@debbugs.gnu.org; Thu, 06 Sep 2012 22:52:28 -0400 Received: by iabz21 with SMTP id z21so2707299iab.3 for <12340@debbugs.gnu.org>; Thu, 06 Sep 2012 19:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/lVoRgOmejDs7eZ4OhR12ULiyZO91DuNz7xKpY+TjDs=; b=QvVrp6mmOJVnDgfB1AmRNojt93tYxLNtxGNQOppFZXqW6X3Z6C7Ql5BGf7xU7FPs7g FT34PTOQyw0Rm7Ngct4yI/16pH+tLdM1rFYfmJPRhvmoojzzuHS79H6GnwkExtAH0r2I kUiLRhjPwBaQIG7WJYAZpBNycyPhFFNbfZBKz3dGfSviV8OruuYXIkewp8UWAfJZUtwa aPkInda9TA1kgT5Q/vxDBNKMky28EanlBuRkGrKKEet7u56LaqlOPCYMOca54CBZ0yB2 PWlY0SNsUYswcB21ozQKZEQVCqejnTbGhVYPrjAO9gi43HTmlwN7IVbqgrl8glAUDyUp 5dRg== MIME-Version: 1.0 Received: by 10.50.159.194 with SMTP id xe2mr5943402igb.62.1346986330725; Thu, 06 Sep 2012 19:52:10 -0700 (PDT) Received: by 10.50.154.225 with HTTP; Thu, 6 Sep 2012 19:52:10 -0700 (PDT) In-Reply-To: <878vcofr69.fsf@gmx.de> References: <87mx15galy.fsf@gmx.de> <878vcofr69.fsf@gmx.de> Date: Thu, 6 Sep 2012 22:52:10 -0400 Message-ID: Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" From: Matt McClure To: Michael Albinus Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12340 Cc: 12340@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Wed, Sep 5, 2012 at 11:03 AM, Michael Albinus wrote: > I believe, the patch is too complicate. Michael, Here's a much simpler patch with the same behavior. https://github.com/matthewlmcclure/emacs/compare/master...debbug-12340 (same link, updated content) Matt From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 07 07:46:09 2012 Received: (at 12340) by debbugs.gnu.org; 7 Sep 2012 11:46:09 +0000 Received: from localhost ([127.0.0.1]:45650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9x0j-0001UE-0V for submit@debbugs.gnu.org; Fri, 07 Sep 2012 07:46:09 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:52053) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T9x0g-0001U4-26 for 12340@debbugs.gnu.org; Fri, 07 Sep 2012 07:46:07 -0400 Received: (qmail invoked by alias); 07 Sep 2012 11:45:46 -0000 Received: from p57BB968C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.140] by mail.gmx.net (mp017) with SMTP; 07 Sep 2012 13:45:46 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19WIEQT0UBWRAiYIhOQV0iSgo98Rj6242MxNyaW6o jOOwC+UgTa4xCw From: Michael Albinus To: Matt McClure Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" References: <87mx15galy.fsf@gmx.de> <878vcofr69.fsf@gmx.de> Date: Fri, 07 Sep 2012 13:45:41 +0200 In-Reply-To: (Matt McClure's message of "Thu, 6 Sep 2012 22:52:10 -0400") Message-ID: <87ehmef44a.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12340 Cc: 12340@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Matt McClure writes: > Michael, Hi Matt, > Here's a much simpler patch with the same behavior. > > https://github.com/matthewlmcclure/emacs/compare/master...debbug-12340 Looks OK to me. But there is still one weak point (not introduced by your patch). In `python-shell-send-file', there is the form (or (expand-file-name (or (file-remote-p file-name 'localname) file-name)) temp-file-name) The intention is obvious: if `file-name' is nil, use `temp-file-name' instead. But in this case, we would eval (expand-file-name nil), which raises an error. Could you fix this as well? I would commit this patch in your name, if this is fixed. Ah, a ChangeLog entry would be great. > Matt Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 07 10:37:19 2012 Received: (at 12340) by debbugs.gnu.org; 7 Sep 2012 14:37:20 +0000 Received: from localhost ([127.0.0.1]:46753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9zgM-0008DV-Tl for submit@debbugs.gnu.org; Fri, 07 Sep 2012 10:37:19 -0400 Received: from mail-iy0-f172.google.com ([209.85.210.172]:58773) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9zgK-0008DO-RY for 12340@debbugs.gnu.org; Fri, 07 Sep 2012 10:37:17 -0400 Received: by iabz21 with SMTP id z21so3205402iab.3 for <12340@debbugs.gnu.org>; Fri, 07 Sep 2012 07:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=e1wS4v7uj9FeHTBKV2chPMJ49vibRZng17QegZ3ikOU=; b=iw4AhmC9NprWJkPxvnMjQVpB+yzPMueZnCL/BAS7abJC42W4nCJ3nN2l24g5mgG2en iPzdsxY8GTQ0yz6K1jLDsKbLdB55/LOcV1nHWIGbfY8smdpedEDGy+VaswNSDyYhxyHV yBo1QGCRjwWt6te+O71RGD4vLccjZcwxPNWpNoNbqHLP6rAZbqu/Q6fSpVHjo/ul846H KbVCEt8M45QGbFKnYn1PKjuR2Ti2+8Aw41B7lqNov8MRWIDVPXJmYw7kbABUmDTsV7iT g9vT1GP2JiTr71YAlBjzP6OOCWdvecmmKPzmDuJzyKmiKx7Bj+9NmIec/FuJvFuTcSP2 jfVw== MIME-Version: 1.0 Received: by 10.42.62.143 with SMTP id y15mr7244025ich.38.1347028618392; Fri, 07 Sep 2012 07:36:58 -0700 (PDT) Received: by 10.50.154.225 with HTTP; Fri, 7 Sep 2012 07:36:58 -0700 (PDT) In-Reply-To: <87ehmef44a.fsf@gmx.de> References: <87mx15galy.fsf@gmx.de> <878vcofr69.fsf@gmx.de> <87ehmef44a.fsf@gmx.de> Date: Fri, 7 Sep 2012 10:36:58 -0400 Message-ID: Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" From: Matt McClure To: Michael Albinus Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 12340 Cc: 12340@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On Fri, Sep 7, 2012 at 7:45 AM, Michael Albinus wrote: > The intention is obvious: if `file-name' is nil, use `temp-file-name' > instead. But in this case, we would eval (expand-file-name nil), which > raises an error. Could you fix this as well? Fixed. And added some line breaks to eliminate the long lines I had introduced. > I would commit this patch in your name, if this is fixed. Ah, a > ChangeLog entry would be great. Done. Same link as above for the new patch. -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 07 10:57:20 2012 Received: (at 12340-done) by debbugs.gnu.org; 7 Sep 2012 14:57:21 +0000 Received: from localhost ([127.0.0.1]:46787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9zzk-0000HF-5N for submit@debbugs.gnu.org; Fri, 07 Sep 2012 10:57:20 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:35526) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T9zzh-0000H6-EE for 12340-done@debbugs.gnu.org; Fri, 07 Sep 2012 10:57:18 -0400 Received: (qmail invoked by alias); 07 Sep 2012 14:56:57 -0000 Received: from p57BB968C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.140] by mail.gmx.net (mp030) with SMTP; 07 Sep 2012 16:56:57 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19wMoRgLPNwxpQJO8vxE9hVREL58InmMiD4PUQ0hh MwoeT1ciFwwJz2 From: Michael Albinus To: Matt McClure Subject: Re: bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "No such file or directory: '/var/folders/vk/p95wm1qx0vdf0087p0z9qzc40000gn/T/py62333GTT'" References: <87mx15galy.fsf@gmx.de> <878vcofr69.fsf@gmx.de> <87ehmef44a.fsf@gmx.de> Date: Fri, 07 Sep 2012 16:56:53 +0200 In-Reply-To: (Matt McClure's message of "Fri, 7 Sep 2012 10:36:58 -0400") Message-ID: <87mx11dgp6.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12340-done Cc: 12340-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Matt McClure writes: > Fixed. And added some line breaks to eliminate the long lines I had introduced. Yep, that's it. (And with 13 lines it counts as tiny patch :-) Committed to the trunk, closing the bug. Thanks, and best regards, Michael. From unknown Tue Aug 19 09:32:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 06 Oct 2012 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