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: Tue, 4 Sep 2012 16:23:00 -0400 Message-ID: References: <87mx15galy.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1346790246 12481 80.91.229.3 (4 Sep 2012 20:24:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Sep 2012 20:24:06 +0000 (UTC) Cc: 12340@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 04 22:24:07 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 1T8zfL-0008OS-Hh for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Sep 2012 22:24:07 +0200 Original-Received: from localhost ([::1]:53112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8zfI-0006qk-Mt for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Sep 2012 16:24:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8zfE-0006qG-Tu for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2012 16:24:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T8zfD-0001kV-P9 for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2012 16:24:00 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T8zfD-0001kR-LH for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2012 16:23:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T8zfF-0008Li-Uy for bug-gnu-emacs@gnu.org; Tue, 04 Sep 2012 16:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matt McClure Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Sep 2012 20:24: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.134679018532033 (code B ref 12340); Tue, 04 Sep 2012 20:24:01 +0000 Original-Received: (at 12340) by debbugs.gnu.org; 4 Sep 2012 20:23:05 +0000 Original-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 Original-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 Original-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== Original-Received: by 10.50.195.169 with SMTP id if9mr15217853igc.62.1346790180227; Tue, 04 Sep 2012 13:23:00 -0700 (PDT) Original-Received: by 10.50.154.225 with HTTP; Tue, 4 Sep 2012 13:23:00 -0700 (PDT) In-Reply-To: <87mx15galy.fsf@gmx.de> 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:63748 Archived-At: 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