[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Emacs unresponsive while executing Sh code block
From: |
Nick Dokos |
Subject: |
Re: [O] Emacs unresponsive while executing Sh code block |
Date: |
Fri, 06 Mar 2015 01:00:16 -0500 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Giacomo M <address@hidden> writes:
> Dear all,
> when I C-c C-c in:
>
> #+BEGIN_SRC sh
> gnome-terminal
> #+END_SRC
>
> a gnome-terminal window appears, but Emacs hangs until I close it.
> In the *Messages* I get:
>
> executing Sh code block...
> Wrote /tmp/babel-2307H-J/ob-input-2307i3c
> (....here Emacs hangs...then I close gnome-terminal)
> Error reading results: (beginning-of-buffer)
> Code block produced no output.
>
What exactly were you expecting? If you open a terminal window and
start, say, firefox from it, the terminal window will "hang" until you
close firefox - then you get another prompt and can give it some more
input. This is no different. It would be nice if emacs were
multithreaded, but it isn't (at least not yet).
> If I use emacs -Q ( evaluating just (org-babel-do-load-languages
> 'org-babel-load-languages '((sh . t))) ) this doesn't happen.
>
When you say "this" doesn't happen, what do you meant by "this"? How
does this example compare with the previous example? They look
completely different to me.
--
Nick