From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Babel Python sessions severely broken Date: Fri, 09 Mar 2012 14:24:34 -0700 Message-ID: <87aa3psc19.fsf@gmx.com> References: <4f1fbc94-e109-46bf-8ae2-0af04073d8a9@CERNFE22.cern.ch> <87haxxseie.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S67Iu-0000Bs-GY for emacs-orgmode@gnu.org; Fri, 09 Mar 2012 16:24:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S67In-0003rh-G5 for emacs-orgmode@gnu.org; Fri, 09 Mar 2012 16:24:48 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:46173 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1S67In-0003rL-92 for emacs-orgmode@gnu.org; Fri, 09 Mar 2012 16:24:41 -0500 In-Reply-To: (Jacek Generowicz's message of "Fri, 9 Mar 2012 22:05:41 +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: Jacek Generowicz Cc: emacs-orgmode@gnu.org Jacek Generowicz writes: > At Fri, 9 Mar 2012 13:31:05 -0700, > Eric Schulte wrote: > >> I look forward to upcoming patches. > > I've not dug around the implementation of babel before. Any pointers > on where to start? > Sure, The best place to look at is existing lisp/ob-*.el files both for Python itself and other languages. These provide examples of how to deal with nearly every session execution contingency. The lisp/ob-comint.el file provides functions which abstract away some of the hairy details of working with session comint buffer. Largely I would hope that you'll have to spend more time with the python library which will be performing the evaluation, rather than with the related Org-mode functions. On the more general elisp dev side of things, one hint which I find useful when exploring the workings of new code is edebug, which allows single-stepping through the evaluation of a function. Thanks, please do let me know if I can help with advice or explanation, -- Eric Schulte http://cs.unm.edu/~eschulte/