From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Sexton Subject: Babel: replace inline block with evaluation result? Date: Thu, 13 Jan 2011 19:50:24 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=50426 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdTBv-0007Pl-OF for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 14:50:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdTBu-0001i6-Bh for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 14:50:39 -0500 Received: from lo.gmane.org ([80.91.229.12]:42924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdTBu-0001hR-5q for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 14:50:38 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PdTBr-00048S-BL for emacs-orgmode@gnu.org; Thu, 13 Jan 2011 20:50:36 +0100 Received: from rp.young.med.auckland.ac.nz ([130.216.140.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jan 2011 20:50:35 +0100 Received: from psexton by rp.young.med.auckland.ac.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jan 2011 20:50:35 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I have an org-mode document that uses a lot of R code (via babel). I have found that using inline code blocks, ie src_R{...}, within org tables works "erratically", often either causing emacs to hang during latex export, or producing a table where random cells containing 'nil' instead of the result I get when I manually evaluate the inline code block via C-c C-c. I am therefore in the process of converting many of these tables back to 'plain' org, ie replacing the inline code blocks with their results. My question is: is there any way to automate this? Ideally I would like to press a key with the cursor on an inline block, and have the block replaced with its eval result, rather than have the result appear in the minibuffer. Paul