emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Chris Malone <chris.m.malone@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Working with =src= blocks :results header argument
Date: Sun, 05 Dec 2010 16:23:16 -0700	[thread overview]
Message-ID: <87aakjztwb.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTim45G6W2YtsqcZrAqhPA9TeESh8+mE7AbEae88M@mail.gmail.com> (Chris Malone's message of "Sun, 5 Dec 2010 15:51:06 -0500")

Hi Chris,

This is the expected behavior for the raw results type.  This is because
there is no way to know where raw results begin or end so it wouldn't be
safe to remove them from the Org-mode file.  Take the following example.

#+begin_src emacs-lisp :results raw
  "* just another heading
It probably wouldn't be wise to remove this text.
- is it the product of a code block or not?
- how would it be possible to tell programatically?"
#+end_src

Best -- Eric

Chris Malone <chris.m.malone@gmail.com> writes:

> Hi,
>
> I've been looking through the manual to get more familiar with Babel and
> using source code in general.  Below is a simple example, which I'm not sure
> is working as intended.
>
> #+tblname:
> example-table
> | 1 | a
> |
> | 2 | b
> |
> | 3 | c
> |
> | 4 | d
> |
>
>
> #+begin_src emacs-lisp :var data=example-table[-3,1] :results value raw
>
> data
>
> #+end_src
>
>
> Upon =C-c C-c= this produces the expected result:
>
> #+results:
>
> b
>
> =C-c C-c= /again/, however, results in:
>
> #+results:
>
> b
>
> b
>
> In other words, the default results handling of =replace= appears to not
> work with a =raw= results type.  I tried explicitly adding the handling via
> a =:results value raw replace= header argument but again this didn't seem to
> fix things.
>
> Is this what is intended for the =raw= type of results - no replacement
> effect at all - or is this a bug?
>
> Chris
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2010-12-05 23:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-05 20:51 Working with =src= blocks :results header argument Chris Malone
2010-12-05 23:23 ` Eric Schulte [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87aakjztwb.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=chris.m.malone@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).