From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexis Subject: Re: Emacs unresponsive while executing Sh code block Date: Fri, 06 Mar 2015 13:11:58 +1100 Message-ID: <87r3t227td.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YThkP-0003it-FS for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 21:12:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YThkJ-0008Hi-TD for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 21:12:17 -0500 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:47016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YThkJ-0008HT-Li for emacs-orgmode@gnu.org; Thu, 05 Mar 2015 21:12:11 -0500 Received: by pdev10 with SMTP id v10so10732303pde.13 for ; Thu, 05 Mar 2015 18:12:11 -0800 (PST) Received: from localhost (CPE-120-147-144-248.gdiv2.lon.bigpond.net.au. [120.147.144.248]) by mx.google.com with ESMTPSA id ce1sm8153432pdb.34.2015.03.05.18.12.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 05 Mar 2015 18:12:09 -0800 (PST) In-reply-to: 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 On 2015-03-06T05:40:33+1100, Giacomo M said: GM> Dear all, GM> when I C-c C-c in: #+BEGIN_SRC sh gnome-terminal #+END_SRC GM> a gnome-terminal window appears, but Emacs hangs until I close GM> it. In the *Messages* I get: GM> executing Sh code block... Wrote GM> /tmp/babel-2307H-J/ob-input-2307i3c (....here Emacs hangs... then GM> I close gnome-terminal) Error reading results: GM> (beginning-of-buffer) Code block produced no output. My guess is that Emacs is waiting for the final output from `gnome-terminal`, which doesn't get sent until you close `gnome-terminal`. Alexis.