From mboxrd@z Thu Jan 1 00:00:00 1970 From: Derek Thomas Subject: Maxima session support Date: Wed, 6 Jul 2011 17:14:48 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeaMt-00045Z-Ho for emacs-orgmode@gnu.org; Wed, 06 Jul 2011 18:14:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeaMs-0007WM-CS for emacs-orgmode@gnu.org; Wed, 06 Jul 2011 18:14:51 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:39762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeaMr-0007WF-Vx for emacs-orgmode@gnu.org; Wed, 06 Jul 2011 18:14:50 -0400 Received: by vxg38 with SMTP id 38so353557vxg.0 for ; Wed, 06 Jul 2011 15:14:48 -0700 (PDT) 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 I've been poking around in the ob-maxima.el and maxima.el files and I believe that maxima.el provides the commands necessary to simulate session support in org-babel. Unfortunately my elisp skills are rudimentary and I don't know how to write a function that when called by C-c C-c in the source block will pass each line of the source block to the function maxima-send-region and insert the output into the results portion of the org file using maxima-insert-last-output (both of these functions are provided by maxima.el). If anyone can point me in the right direction for a similar function that I can modify, or can provide a commented example of how this would be done, that would be great. Thanks, Derek