From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Inline code :results replace not working Date: Sat, 08 Nov 2014 22:27:40 +0100 Message-ID: <87fvdtwfg3.fsf@nicolasgoaziou.fr> References: <545C987E.4020203@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnDX7-0006d6-UH for emacs-orgmode@gnu.org; Sat, 08 Nov 2014 16:27:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnDX0-0001Wo-Fs for emacs-orgmode@gnu.org; Sat, 08 Nov 2014 16:26:57 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:57536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnDX0-0001Wc-9y for emacs-orgmode@gnu.org; Sat, 08 Nov 2014 16:26:50 -0500 In-Reply-To: <545C987E.4020203@gmail.com> (mcg's message of "Fri, 07 Nov 2014 11:01:34 +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: mcg Cc: emacs-orgmode@gnu.org Hello, mcg writes: > I use inline code for simple calculations to insert numeric results into > text apart from "normal" code blocks for more complex calculations and > graphics (all in R). > > > The :results replace option is not working for inline code, even if I > explicitly set it in the code block. So I get > > #+PROPERTY: session *R* > > #+begin_src R :results replace value > 2+3 > #+end_src > > #+RESULTS: > : 5 > > src_R[:results replace value]{2+3} =5= =5= =5= =5= =5= =5= > > I would really like to have numeric outcome in the buffer (not only > minibuffer upon evaluation) but also evaluate the whole buffer when > exporting to have everything updated. > > What is the problem here? For now I would have to > - evaluate only on export and keep :results silent > - evaluate all manually - meaning I get repeated results if I call > org-evaluate buffer :results replace is not implemented (yet?) for inline source blocks. See "ob-core.el", line 2139 (in master branch). Regards, -- Nicolas Goaziou