From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [BUG] src_blocks - :results raw and replace don't work together Date: Mon, 07 Jul 2014 17:40:45 +0200 Message-ID: <87ion9gosi.fsf@gmail.com> References: <87vbraroza.fsf@gmail.com> <87ion96zny.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4B2S-00042E-Ez for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 11:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4B2K-00083z-1s for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 11:41:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:47245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4B2J-00083j-T6 for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 11:41:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X4B2I-0003h6-Oc for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 17:40:58 +0200 Received: from e178189211.adsl.alicedsl.de ([85.178.189.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jul 2014 17:40:58 +0200 Received: from tjolitz by e178189211.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Jul 2014 17:40:58 +0200 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 Nick Dokos writes: > Thorsten Jolitz writes: > >> Hi List, >> >> evaluating this 3 times does not work as expected: >> >> ,---- >> | * A >> | >> | #+header: :results raw replace >> | #+begin_src emacs-lisp >> | (+ 2 2) >> | #+end_src >> | >> | #+results: >> | 4 >> | 4 >> | 4 >> `---- >> >> Independent from argument order, 'replace' (which should be default >> anyway) is ignored. > > Right - `raw' inserts results without delimiters so org has no idea > where they end and cannot delete them (try org-babel-remove-result) > or replace them. ok, I see from `org-babel-remove-result': ,---- | (when (looking-at (concat org-babel-result-regexp ".*$")) ...) `---- seems a bit tricky to adapt this to 'raw results ... But at least there should be a hint in the manual that ':results raw replace' is not supposed to work, and what would be a possible workaround. -- cheers, Thorsten