From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: [BUG] src_blocks - :results raw and replace don't work together Date: Mon, 7 Jul 2014 09:54:48 -0500 Message-ID: References: <87vbraroza.fsf@gmail.com> <87ion96zny.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4AJh-0007bb-8M for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 10:54:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4AJd-0000wH-3v for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 10:54:53 -0400 Received: from mail-ob0-x22f.google.com ([2607:f8b0:4003:c01::22f]:38242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4AJc-0000w5-V8 for emacs-orgmode@gnu.org; Mon, 07 Jul 2014 10:54:49 -0400 Received: by mail-ob0-f175.google.com with SMTP id wm4so4734723obc.20 for ; Mon, 07 Jul 2014 07:54:48 -0700 (PDT) In-Reply-To: <87ion96zny.fsf@gmail.com> 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: Nick Dokos Cc: "emacs-orgmode@gnu.org" It sounds like you wanted the same thing that I did. What I wanted is something like running 'script' before starting a REPL and just capturing the output and that is it. That output is not being used to be inserted back into the document or anything... it just captured the results of commands sent into the REPL. I tried a lot of different combinations until I felt like my goal was simpl= e: 1. Wrap the output. 2. Put the output in a "sh" type result, something from the shell 3. Let replace work This is what was the best: ,---- | #+PROPERTY: header-args+ :results output scalar pp replace `---- Grant Rettke | ACM, ASA, FSF, IEEE, SIAM gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson On Mon, Jul 7, 2014 at 8:56 AM, Nick Dokos wrote: > 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. > -- > Nick > >