[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] trunk r117592: Grab all Python process output before i
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] trunk r117592: Grab all Python process output before inferior-python-mode hooks. |
Date: |
Mon, 28 Jul 2014 19:21:12 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
>>> + ;; Ensure all the output is accepted before running any hooks.
>>> + (accept-process-output (get-buffer-process (current-buffer)))
>>> + (sit-for 0.1 t))
>> Why do you need sit-for here?
> I just added a comment about it in revno 117605.
> ;; At this point, all process output should have been received, but
> ;; on GNU/Linux, calling `python-shell-internal-send-string' without
> ;; a running internal shell fails to grab output properly unless
> ;; this `sit-for' is in place.
> Sorry about that, I should have placed that comment before!
Sounds like a workaround for a problem somewhere in Emacs.
Could you make a bug-report for it, ideally providing a simple
test case?
Stefan