all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Grant Rettke <gcr@wisdomandwonder.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] src_blocks - :results raw and replace don't work together
Date: Mon, 7 Jul 2014 09:54:48 -0500	[thread overview]
Message-ID: <CAAjq1mc6wkbuB_h7VgEDQh4vxhrVS_F0bE5E4nrhFV8umexLUA@mail.gmail.com> (raw)
In-Reply-To: <87ion96zny.fsf@gmail.com>

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 simple:
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/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Mon, Jul 7, 2014 at 8:56 AM, Nick Dokos <ndokos@gmail.com> wrote:
> Thorsten Jolitz <tjolitz@gmail.com> 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
>
>

  reply	other threads:[~2014-07-07 14:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07  0:28 [BUG] src_blocks - :results raw and replace don't work together Thorsten Jolitz
2014-07-07  1:41 ` Thomas S. Dye
2014-07-07  2:03   ` Thorsten Jolitz
2014-07-07 13:48     ` Thomas S. Dye
2014-07-07  9:29 ` Andreas Leha
2014-07-07 10:15   ` Thorsten Jolitz
2014-07-07 11:04     ` Thorsten Jolitz
2014-07-07 11:16       ` Andreas Leha
2014-07-07 11:59         ` Thorsten Jolitz
2014-07-07 13:56 ` Nick Dokos
2014-07-07 14:54   ` Grant Rettke [this message]
2014-07-07 15:31     ` Thorsten Jolitz
2014-07-07 23:40       ` Grant Rettke
2014-07-08  2:01       ` Nick Dokos
2014-07-07 15:40   ` Thorsten Jolitz
2014-07-28 13:59     ` Sebastien Vauban
2014-07-28 14:46       ` Thorsten Jolitz
2014-08-04  1:20   ` Eric Schulte
2014-08-06  1:15     ` Thorsten Jolitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAjq1mc6wkbuB_h7VgEDQh4vxhrVS_F0bE5E4nrhFV8umexLUA@mail.gmail.com \
    --to=gcr@wisdomandwonder.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.