Michael,
On Wed, Jun 6, 2012 at 11:50 AM, Matt McClure <
matthew...@gmail.com> wrote:
> On Wed, Jun 6, 2012 at 9:39 AM, Michael Albinus <
michael...@gmx.de> wrote:
>> I have committed a modified version of my initial proposal to
>> Emacs' trunk (plus a fix in Tramp, which did appear during my tests).
>
> Awesome, thanks! I'll give it a try as soon as the next nightly build
> appears on
http://emacsformacosx.com/builds.
When I try python-send-buffer in the 6/7 nightly build, I get:
Debugger entered--Lisp error: (error "Variable binding depth
exceeds max-specpdl-size")
signal(error ("Variable binding depth exceeds max-specpdl-size"))
byte-code(" \203 \305 G!\203 \n\306>\203 \307\207 \203& \305 G!\203& \n\310>\203& \207\311\f@\fA\"\207"
[completion localname operation filename err zerop (file-exists-p
file-directory-p) t (expand-file-name file-name-as-directory) signal]
3)
tramp-file-name-handler(expand-file-name "py"
"/scpc:vag...@192.168.33.10:/tmp")
expand-file-name("py" "/scpc:vag...@192.168.33.10:/tmp")
byte-code("\305\306 G!\203 \307 !\202 \310 \"! \203 \n P \f\203' \311\n!\210\2022 \312\313\314\n\314\315\314\316& \210\314\207"
[prefix temporary-file-directory file suffix dir-flag make-temp-name
zerop file-name-as-directory expand-file-name make-directory
write-region "" nil silent excl] 8)
make-temp-file("py" nil ".py")
python-send-region(1 708)
python-send-buffer()
call-interactively(python-send-buffer nil nil)
Is that the failure mode that motivated the comment in python.el prior
to your change?
;; `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.