fork of org mode
Go to file
Julien Barnier c227da352a Fix sh block execution in session
Hi,

When evaluating shell code blocks in org-babel, the execution seems to hang
indefinitely. The following patch is trying to fix this problem by modifying
the way shell code is send to comint and the way the end-of-evaluation
indicator is looking for.

As I am far from an emacs lisp expert and as the patch modifies the widely use
org-babel-comint-with-output function, it certainly needs some testing. I've
made some tests with shell and R code blocks, but I'm not sure it's enough.

Thanks !

Julien

Fix sh block execution in a session

* lisp/ob-sh.el (org-babel-sh-evaluate) : when sending input to comint, wait
until previous line execution is finished
* lisp/ob-comint.el (org-babel-comint-with-output) : when looking for
end-of-evaluation indicator, search forward for the indicator before searching
forward for the prompt
2011-06-06 07:17:18 -06:00
BUGFIXING Intermediate state, I am just trying comiting now. 2008-01-31 16:04:26 +01:00
EXPERIMENTAL Add EXPERIMENTAL/org-mediawiki.el 2010-11-11 17:42:56 +01:00
UTILITIES set-version.pl: don't set current version in ORGWEBPAGE/index.org 2011-01-09 18:43:40 +01:00
contrib org-contacts: check that completion-at-point-functions is bound 2011-05-26 14:00:37 +02:00
doc Escape curly brackets in texinfo LaTeX example block 2011-06-02 09:10:05 +02:00
lisp Fix sh block execution in session 2011-06-06 07:17:18 -06:00
testing Modified testing/README.org to include ERT installation information for Emacs version < 24. Added new tests 2011-03-02 11:46:47 -07:00
.dir-locals.el Make .dir-locals.el a true copy of .dir-settings.el 2011-01-15 12:44:34 +01:00
.dir-settings.el Add .dir-settings.el file to unify coding styles. 2008-11-20 15:45:22 +01:00
.gitignore gitignore patch 2010-08-17 09:54:21 +02:00
.gitmodules Changes to suit latest ert structure. ERT is now a part of EMACS and the source of the ERT git submodule is deprecated, as are some files within. Changes testing/README and .gitmodules to suit. 2011-03-01 09:59:01 -07:00
Makefile Makefile robustness tweak 2011-05-31 13:42:26 +02:00
README README: remove the description of ORGWEBPAGES/ 2011-01-09 15:08:11 +01:00
README_DIST Update website to show 7.5 as current release 2011-03-07 14:27:39 +00:00
README_GIT Update README file 2010-04-14 15:52:13 +02:00
README_maintainer Fix typo in README_maintainer. 2011-03-07 10:59:27 +01:00
request-assign-future.txt Release 5.13e 2008-01-31 11:37:24 +01:00

README

This is the Emacs Org project, an emacs subsystem for organizing your life

The homepage of Org is at http://orgmode.org

This distribution contains:

README
    This file.

README_DIST
    The README file for the distribution (zip and tar files)

README_GIT
    Information about the git repository and how to contribute
    to Org-mode development. 

lisp/
    Directory with all the Emacs Lisp files that make up Org.

doc/
    The documentation files.  org.texi is the source of the
    documentation, org.html and org.pdf are formatted versions of it.

contrib/
    A directory with third-party additions for Org.  Some really cool
    stuff is in there.

ChangeLog
    The standard ChangeLog file.

Makefile
    The makefile to compile and install Org, and also for maintenance
    tasks.

request-assign-future.txt
    The form that contributors have to sign and get processed with the
    FSF before contributed changes can be integrated into the Org
    core.  All files in this distribution except the CONTRIB directory
    have copyright assigned to the FSF.

EXPERIMENTAL
    Experimental code, not necessarily FSF copyright.