emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* odd behavior for begin_src org :results
@ 2013-05-01 19:08 Greg Minshall
  2013-05-01 20:01 ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Minshall @ 2013-05-01 19:08 UTC (permalink / raw)
  To: emacs-orgmode

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
----

the following does not produce #+RESULTS at all:
----
#+begin_src org
hello
#+end_src
----

is this intended behavior?  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'.
----

cheers, Greg

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-06 16:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-01 19:08 odd behavior for begin_src org :results Greg Minshall
2013-05-01 20:01 ` Eric Schulte
2013-05-01 21:57   ` Greg Minshall
2013-05-03  7:46     ` Sebastien Vauban
2013-05-03 15:53       ` Eric Schulte

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).