From: Eric Schulte <schulte.eric@gmail.com>
To: Greg Minshall <minshall@umich.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: odd behavior for begin_src org :results
Date: Wed, 01 May 2013 14:01:12 -0600 [thread overview]
Message-ID: <87k3ni4ghj.fsf@gmail.com> (raw)
In-Reply-To: <18696.1367435308@greg-minshalls-mbp.local> (Greg Minshall's message of "Wed, 01 May 2013 15:08:28 -0400")
Greg Minshall <minshall@umich.edu> writes:
> Org-mode version 8.0.1 (release_8.0.1-42-g267cbe @ /Users/minshall/usr/share/emacs/site-lisp/org/)
>
> hi. the following produces #+RESULTS:
> ----
> #+begin_src org :results replace
> hello
> #+end_src
> ----
> but, repeated evaluations seem to grow the list of results. e.g., after
> four evaluations:
> ----
> #+RESULTS:
> hello
> hello
> hello
> hello
> ----
>
Yes, this is the behavior of raw results.
>
> the following does not produce #+RESULTS at all:
> ----
> #+begin_src org
> hello
> #+end_src
> ----
>
> is this intended behavior?
This is the intended behavior for Org-mode blocks, it is not the
intended behavior in general.
> the code thinks so; ob-org.el has:
> ----
> (defvar org-babel-default-header-args:org
> '((:results . "raw silent") (:exports . "code"))
> "Default arguments for evaluating a org source block.")
> ----
> otoh, the manual thinks ":results replace" should be the default:
> ----
> * 'replace' The default value. Any existing results will be removed,
> and the new results will be inserted into the Org mode buffer in
> their place. E.g., ':results output replace'.
> ----
>
In this case the defaults for org-mode are different from the general
cross-language defaults.
As I recall, at the time that the defaults were set for Org-mode code
blocks, we did not have options like drawers to allow replaceable raw
results. Perhaps the default header arguments for Org-mode should be
updated.
Best,
>
> cheers, Greg
>
--
Eric Schulte
http://cs.unm.edu/~eschulte
next prev parent reply other threads:[~2013-05-01 20:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 19:08 odd behavior for begin_src org :results Greg Minshall
2013-05-01 20:01 ` Eric Schulte [this message]
2013-05-01 21:57 ` Greg Minshall
2013-05-03 7:46 ` Sebastien Vauban
2013-05-03 15:53 ` Eric Schulte
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=87k3ni4ghj.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=minshall@umich.edu \
/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).