From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Brodie Subject: (no subject) Date: Mon, 19 Sep 2016 16:38:54 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11411cc24758bc053cdef3e1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm1c4-0005U6-56 for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 12:40:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bm1bz-0007Og-Pv for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 12:40:11 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:33129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm1bz-0007Nt-Da for emacs-orgmode@gnu.org; Mon, 19 Sep 2016 12:40:07 -0400 Received: by mail-lf0-f43.google.com with SMTP id h127so118698520lfh.0 for ; Mon, 19 Sep 2016 09:40:06 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --001a11411cc24758bc053cdef3e1 Content-Type: text/plain; charset=UTF-8 From: brodiej@SEA-9901331265.i-did-not-set--mail-host-address--so-tickle-me To: emacs-orgmode@gnu.org Subject: Bug: Babel :results raw doesn't replace results. [8.3.4 (8.3.4-72-gddd58f-elpa @ c:/Users/brodiej/AppData/Roaming/.emacs.d/elpa/org-20160530/)] Date: Mon, 19 Sep 2016 09:35:36 -0700 Message-ID: --text follows this line-- I'm creating a literate program using org-babel with python. If I change the output of a source block to 'raw' the results are not replaced on each run, they are appended. This is quite annoying, because it means manual editing everytime I need to re-run my program. If I try to set the flags 'replace' 'prepend' etc. they have no effect: #+name: Example1 #+begin_src python :session :results raw :exports none 'dogs and cats' #+end_src #+RESULTS: Example1 dogs and cats dogs and cats dogs and cats dogs and cats dogs and cats Emacs : GNU Emacs 25.0.92.1 (x86_64-w64-mingw32) of 2016-03-03 Package: Org-mode version 8.3.4 (8.3.4-72-gddd58f-elpa @ c:/Users/brodiej/AppData/Roaming/.emacs.d/elpa/org-20160530/) current state: ============== (setq org-id-locations-file "c:/Users/brodiej/AppData/Roaming/.emacs.d/.cache/.org-id-locations" org-export-backends '(ascii html icalendar latex odt confluence) org-latex-default-figure-position "H" org-export-babel-evaluate nil org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-default-packages-alist '(("AUTO" "inputenc" t) ("T1" "fontenc" nil) ("" "fixltx2e" nil) ("" "graphicx" t) ("" "grffile" t) ("" "longtable" nil) ("" "wrapfig" nil) ("" "rotating" nil) ("normalem" "ulem" t) ("" "amsmath" t) ("" "textcomp" t) ("" "amssymb" t) ("" "capt-of" nil) ("" "hyperref" nil)) org-clock-persist-file "c:/Users/brodiej/AppData/Roaming/.emacs.d/.cache/org-clock-save.el" org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-log-done 'time org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-link-translation-function 'toc-org-unhrefify org-present-mode-hook '(spacemacs//org-present-start) org-agenda-restore-windows-after-quit t org-agenda-custom-commands '(("n" "Agenda and all TODOs" ((agenda "" nil) (todo "NEXT" nil) (alltodo "" nil)) nil) ) org-latex-format-headline-function 'org-latex-format-headline-default-function org-default-notes-file "notes.org" org-latex-image-default-width ".6\\linewidth" org-startup-indented t org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-odt-format-headline-function 'org-odt-format-headline-default-function org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes toc-org-enable org-bullets-mode flyspell-mode spacemacs/add-org-surrounds evil-org-mode org-eldoc-load) org-latex-prefer-user-labels t org-archive-hook '(org-attach-archive-delete-maybe) org-level-color-stars-only t org-ascii-format-drawer-function '(lambda (name contents width) contents) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-present-mode-quit-hook '(spacemacs//org-present-end) org-export-async-init-file "c:/Users/brodiej/AppData/Roaming/.emacs.d/layers/org/org-async-init.el" org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "STARTED" "WAITING(w)" "|" "DONE(d)" "CANCELED(c)") ) org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el") ("elisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-startup-with-inline-images t org-metadown-hook '(org-babel-pop-to-session-maybe) org-odt-format-drawer-function '(lambda (name contents) contents) org-ditaa-jar-path "C:\\Users\\brodiej\\AppData\\Roaming\\.emacs.d\\ditaa\\ditaa.jar" org-html-format-headline-function 'org-html-format-headline-default-function org-babel-load-languages '((python . t) (ditaa . t)) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-fontify-whole-heading-line t org-agenda-files '("c:/docs/planner/brodie_planning.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil org-src-fontify-natively t ) --001a11411cc24758bc053cdef3e1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
From: brodiej@SEA-9901331265.i-did-not-set--mail-host-addr= ess--so-tickle-me
To: emacs-org= mode@gnu.org
Subject: Bug: Babel :results raw doesn't replace re= sults. [8.3.4 (8.3.4-72-gddd58f-elpa @ c:/Users/brodiej/AppData/Roaming/.em= acs.d/elpa/org-20160530/)]
Date: Mon, 19 Sep 2016 09:35:36 -0700
Mess= age-ID: <tcbvsvaxru9t3.fsf@SEA-9901331265.i-did-not-set--mail-host-addre= ss--so-tickle-me>
--text follows this line--

I'm creating = a literate program using org-babel with python. If I change
the output o= f a source block to 'raw' the results are not replaced on
each r= un, they are appended. This is quite annoying, because it means
manual e= diting everytime I need to re-run my program.=C2=A0 If I try to set
the = flags 'replace' 'prepend' etc. they have no effect:

= #+name: Example1
#+begin_src python :session :results raw :exports none=
=C2=A0 'dogs and cats'
#+end_src

#+RESULTS: Example1=
dogs and cats
dogs and cats
dogs and cats
dogs and cats
dog= s and cats


Emacs=C2=A0 : GNU Emacs 25.0.92.1 (x86_64-w64-mingw32= )
=C2=A0of 2016-03-03
Package: Org-mode version 8.3.4 (8.3.4-72-gddd5= 8f-elpa @ c:/Users/brodiej/AppData/Roaming/.emacs.d/elpa/org-20160530/)
=
current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq=C2=A0org-id-locations-file "c:/Users/brodiej/AppData/Roaming/.emacs= .d/.cache/.org-id-locations"
=C2=A0org-export-backends '(ascii = html icalendar latex odt confluence)
=C2=A0org-latex-default-figure-posi= tion "H"
=C2=A0org-export-babel-evaluate nil
=C2=A0org-tab-= first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-m= aybe
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-babel-head= er-arg-expand)
=C2=A0org-latex-default-packages-alist '(("AUTO&= quot; "inputenc" t) ("T1" "fontenc" nil)
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("" = "fixltx2e" nil) ("" "graphicx" t) ("&quo= t; "grffile" t)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ("" "longtable" nil) ("" &quo= t;wrapfig" nil) ("" "rotating" nil)
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ("normalem" &= quot;ulem" t) ("" "amsmath" t) ("" "= ;textcomp" t)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 ("" "amssymb" t) ("" "capt-of&= quot; nil) ("" "hyperref" nil))
=C2=A0org-clock-pers= ist-file "c:/Users/brodiej/AppData/Roaming/.emacs.d/.cache/org-clock-s= ave.el"
=C2=A0org-speed-command-hook '(org-speed-command-defaul= t-hook org-babel-speed-command-hook)
=C2=A0org-occur-hook '(org-firs= t-headline-recenter)
=C2=A0org-metaup-hook '(org-babel-load-in-sessi= on-maybe)
=C2=A0org-html-format-drawer-function '(lambda (name conte= nts) contents)
=C2=A0org-log-done 'time
=C2=A0org-latex-format-in= linetask-function 'org-latex-format-inlinetask-default-function
=C2= =A0org-confirm-shell-link-function 'yes-or-no-p
=C2=A0org-ascii-form= at-inlinetask-function 'org-ascii-format-inlinetask-default
=C2=A0or= g-link-translation-function 'toc-org-unhrefify
=C2=A0org-present-mod= e-hook '(spacemacs//org-present-start)
=C2=A0org-agenda-restore-wind= ows-after-quit t
=C2=A0org-agenda-custom-commands '(("n" &= quot;Agenda and all TODOs"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ((agenda= "" nil) (todo "NEXT" nil) (alltodo "" nil)) = nil)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 )
=C2=A0org-latex-format-headline-func= tion 'org-latex-format-headline-default-function
=C2=A0org-default-n= otes-file "notes.org"
=C2=A0o= rg-latex-image-default-width ".6\\linewidth"
=C2=A0org-startup= -indented t
=C2=A0org-after-todo-state-change-hook '(org-clock-out-i= f-current)
=C2=A0org-latex-format-drawer-function '(lambda (name con= tents) contents)
=C2=A0org-odt-format-headline-function 'org-odt-for= mat-headline-default-function
=C2=A0org-src-mode-hook '(org-src-babe= l-configure-edit-buffer org-src-mode-configure-edit-buffer)
=C2=A0org-ag= enda-before-write-hook '(org-agenda-add-entry-text)
=C2=A0org-babel-= pre-tangle-hook '(save-buffer)
=C2=A0org-mode-hook '(#[nil "= ;\300\301\302\303\304$\207"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [org-= add-hook change-major-mode-hook org-show-block-all append local] 5]
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 #[nil "\300\301\302\303\304$\207"
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 [org-add-hook change-major-mode-hook org-babel-sho= w-result-all append local] 5]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-babel-result-hid= e-spec org-babel-hide-all-hashes toc-org-enable
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 or= g-bullets-mode flyspell-mode spacemacs/add-org-surrounds evil-org-mode
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 org-eldoc-load)
=C2=A0org-latex-prefer-user-labels= t
=C2=A0org-archive-hook '(org-attach-archive-delete-maybe)
=C2= =A0org-level-color-stars-only t
=C2=A0org-ascii-format-drawer-function &= #39;(lambda (name contents width) contents)
=C2=A0org-odt-format-inlinet= ask-function 'org-odt-format-inlinetask-default-function
=C2=A0org-c= trl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-ma= ybe)
=C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cyc= le-hide-drawers
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-cycle-show-empty-lines= org-optimize-window-after-visibility-change)
=C2=A0org-present-mode-qui= t-hook '(spacemacs//org-present-end)
=C2=A0org-export-async-init-fil= e "c:/Users/brodiej/AppData/Roaming/.emacs.d/layers/org/org-async-init= .el"
=C2=A0org-todo-keywords '((sequence "TODO(t)" &q= uot;NEXT(n)" "STARTED" "WAITING(w)" "|" = "DONE(d)"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= "CANCELED(c)")
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= )
=C2=A0org-babel-tangle-lang-exts '(("python" . "py= ") ("emacs-lisp" . "el") ("elisp" . &quo= t;el"))
=C2=A0org-confirm-elisp-link-function 'yes-or-no-p
= =C2=A0org-startup-with-inline-images t
=C2=A0org-metadown-hook '(org= -babel-pop-to-session-maybe)
=C2=A0org-odt-format-drawer-function '(= lambda (name contents) contents)
=C2=A0org-ditaa-jar-path "C:\\User= s\\brodiej\\AppData\\Roaming\\.emacs.d\\ditaa\\ditaa.jar"
=C2=A0org= -html-format-headline-function 'org-html-format-headline-default-functi= on
=C2=A0org-babel-load-languages '((python . t) (ditaa . t))
=C2= =A0org-html-format-inlinetask-function 'org-html-format-inlinetask-defa= ult-function
=C2=A0org-fontify-whole-heading-line t
=C2=A0org-agenda-= files '("c:/docs/planner/br= odie_planning.org")
=C2=A0org-clock-out-hook '(org-clock-re= move-empty-clock-drawer)
=C2=A0org-confirm-babel-evaluate nil
=C2=A0o= rg-src-fontify-natively t
=C2=A0)

--001a11411cc24758bc053cdef3e1--