From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Emacs unresponsive while executing Sh code block Date: Fri, 06 Mar 2015 01:00:16 -0500 Message-ID: <87385ihdhr.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTlJI-00041n-0t for emacs-orgmode@gnu.org; Fri, 06 Mar 2015 01:00:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YTlJE-0004G5-KU for emacs-orgmode@gnu.org; Fri, 06 Mar 2015 01:00:31 -0500 Received: from plane.gmane.org ([80.91.229.3]:34246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YTlJE-0004FP-6M for emacs-orgmode@gnu.org; Fri, 06 Mar 2015 01:00:28 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YTlJ9-0008Gh-SX for emacs-orgmode@gnu.org; Fri, 06 Mar 2015 07:00:24 +0100 Received: from pool-173-76-32-186.bstnma.fios.verizon.net ([173.76.32.186]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Mar 2015 07:00:23 +0100 Received: from ndokos by pool-173-76-32-186.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Mar 2015 07:00:23 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Giacomo M 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