emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] :results replace not always working


From: Eric Schulte
Subject: Re: [Orgmode] :results replace not always working
Date: Tue, 25 Jan 2011 09:14:23 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Rainer,

I have fixed the problem with ":results org" so it should now work as
expected.  The ":results replace raw" can never work as expected because
raw results are inserted directly into the Org buffer with no wrappers
to delimit the results, so there is no way to programmatically identify
which text is the results and which is part of the Org buffer.

Thanks -- Eric

Rainer M Krug <address@hidden> writes:

> Hi
>
> Bewlow an example, illustrating cases where :results replace does not
> work, dependent of the type and content. Each of the source blocks was
> executed twice:
>
> ":results output org replace" did not work
> ":results output raw replace" did work, but not with all content.
>
> In addition, there is still the leading space in the firest line of the
> output.
>
>
>
> #+begin_src R :results output org replace
>   cat("[[file1.pdf]]\n")
>   cat("[[file2.pdf]]\n")
> #+end_src
>
> #+results:
> #+BEGIN_ORG
> [[file1.pdf]]
> [[file2.pdf]]
> #+END_ORG
> #+BEGIN_ORG
> [[file1.pdf]]
> [[file2.pdf]]
> #+END_ORG
>
>
> #+begin_src R :results output raw replace
>   cat("[[file1.pdf]]\n")
>   cat("[[file2.pdf]]\n")
> #+end_src
>
> #+results:
> [[file1.pdf]]
> [[file2.pdf]]
>
> #+begin_src R :results output raw replace
>   cat("---\n")
>   cat("[[file1.pdf]]\n")
>   cat("[[file2.pdf]]\n")
>   cat("---\n")
> #+end_src
>
> #+results:
>  ---
> [[file1.pdf]]
> [[file2.pdf]]
> ---
>  ---
> [[file1.pdf]]
> [[file2.pdf]]
> ---
>
>
>
>
> Cheers,
>
> Rainer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]