bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12340: 24.2.50; python-shell-switch-to-shell in TRAMP buffer gives "


From: Matt McClure
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

On Tue, Sep 4, 2012 at 9:51 AM, Michael Albinus <michael.albinus@gmx.de> 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: <https://github.com/matthewlmcclure/emacs/compare/master...debbug-12340>.
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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]