emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Emacs unresponsive while executing Sh code block
Date: Fri, 06 Mar 2015 01:00:16 -0500	[thread overview]
Message-ID: <87385ihdhr.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: CA+GKSr4xQLbGrzZGmOdKsV146aVZLmx6w-agcW=rMcRRSGMf=w@mail.gmail.com

Giacomo M <jackjackk@gmail.com> 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

  parent reply	other threads:[~2015-03-06  6:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-05 18:40 Emacs unresponsive while executing Sh code block Giacomo M
2015-03-06  2:11 ` Alexis
2015-03-06  6:00 ` Nick Dokos [this message]
2015-03-06  6:08 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87385ihdhr.fsf@pierrot.dokosmarshall.org \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).