babel: don’t add babel eval to the session’s comint input ring
commit1d305d4aba715be99d16990f239d3b208fc7906d
authorAaron Ecay <aaronecay@gmail.com>
Mon, 28 Oct 2013 22:58:52 +0000 (28 18:58 -0400)
committerEric Schulte <schulte.eric@gmail.com>
Wed, 30 Oct 2013 01:52:36 +0000 (29 19:52 -0600)
tree60cde704d494dd88796f9830bf49b7c7e1e008f5
parent24fe50671e1150a3915a42b75d0c1aa5765fcd2f
babel: don’t add babel eval to the session’s comint input ring

* lisp/ob-comint.el (org-babel-comint-in-buffer): don’t add to
comint-input-ring

Previously, babel code would be added to the comint input ring of a
babel session, making interactive use of the session difficult: one
had to page through the babel generated commands when browsing the
comint history with M-p/M-n.  The session repl’s history should just
contain commands the user has specifically entered in the repl buffer,
and not those which are fed in from org mode.  So, we bind
‘comint-input-filter’ to a function that always returns nil in the
‘org-babel-comint-in-buffer’ macro, to avoid any additions to the
input ring while executing code from babel.
lisp/ob-comint.el