From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt McClure Newsgroups: gmane.emacs.bugs Subject: 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'" Date: Mon, 3 Sep 2012 19:34:09 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1346715276 19687 80.91.229.3 (3 Sep 2012 23:34:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Sep 2012 23:34:36 +0000 (UTC) To: 12340@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 04 01:34:38 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1T8gA5-0004sf-5J for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Sep 2012 01:34:33 +0200 Original-Received: from localhost ([::1]:55343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8gA2-0000qh-6t for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Sep 2012 19:34:30 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8gA0-0000qa-6B for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 19:34:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8g9z-0007d3-1Z for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 19:34:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8g9y-0007cz-Uv for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 19:34:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T8gBV-00042Z-Jh for bug-gnu-emacs@gnu.org; Mon, 03 Sep 2012 19:36:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Matt McClure Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Sep 2012 23:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12340 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12340-submit@debbugs.gnu.org id=B12340.134671534715509 (code B ref 12340); Mon, 03 Sep 2012 23:36:01 +0000 Original-Received: (at 12340) by debbugs.gnu.org; 3 Sep 2012 23:35:47 +0000 Original-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 Original-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 Original-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== Original-Received: by 10.43.92.135 with SMTP id bq7mr16487270icc.33.1346715249766; Mon, 03 Sep 2012 16:34:09 -0700 (PDT) Original-Received: by 10.50.154.225 with HTTP; Mon, 3 Sep 2012 16:34:09 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63722 Archived-At: 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