From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: suppress leading ":" in org-babel outputariBLE Date: Fri, 31 May 2019 16:46:09 +0000 Message-ID: References: <8736l08j5m.fsf@gmail.com> <87ef4jl3ud.fsf@alphaville.usersys.redhat.com> <87a7f3t874.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:43440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWkjI-0006TN-Rp for emacs-orgmode@gnu.org; Fri, 31 May 2019 12:50:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWkgp-0003Mc-0l for emacs-orgmode@gnu.org; Fri, 31 May 2019 12:47:36 -0400 Received: from iport-bcv4-out.ucsd.edu ([132.239.0.122]:54976) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWkgo-0003Ie-6V for emacs-orgmode@gnu.org; Fri, 31 May 2019 12:47:34 -0400 In-Reply-To: <87a7f3t874.fsf@gmail.com> Content-Language: en-US Content-ID: 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: Jeremie Juste Cc: Nick Dokos , "emacs-orgmode@gnu.org" AFAICS, the latest update (99aa984) did NOT fix the issue. There are complications in this story that I explain here. If I start a fresh *R* session by eval'ing the src block, I get #+RESULTS: :=20 : 12.23 and the *R* buffer ends with --8<---------------cut here---------------start------------->8--- > x <- 6L a <-sprintf("%.2f",12.234324) cat(a,sep=3D"\n") 'org_babel_R_eoe' > >=20 12.23 >=20 [1] "org_babel_R_eoe" >=20 --8<---------------cut here---------------end--------------->8--- If I then open a buffer in ESS[R] mode and run ess-eval-line-visibly-and-st= ep (e.g. by typing C-c C-n) and then eval the src block again, I get=20 #+RESULTS: : 12.23 and the *R* buffer ends with --8<---------------cut here---------------start------------->8--- > x <- 6L a <-sprintf("%.2f",12.234324) cat(a,sep=3D"\n") 'org_babel_R_eoe' > > 12.23 > [1] "org_babel_R_eoe" >=20 --8<---------------cut here---------------end--------------->8--- Presumably, a comint or ess variable has changed to effect these difference= s. I am unable to discern what variable that is.=20 I suspect that the changed behavior Jeremie sees now was do to something si= milar and that a fresh start will result in the extraneous line in the resu= lts. :-( Chuck > On May 31, 2019, at 12:05 AM, Jeremie Juste wrot= e: >=20 > Hello, >=20 > Many thanks updating org-mode resolved the issue >=20 > Best regards, > Jeremie >> FWIW, I just get the last line: >>=20 >> #+NAME:mean_purchase_per_shopping_trip >>=20 >> #+BEGIN_SRC R :var x=3D6 :results output :session *R* >> a <-sprintf("%.2f",12.234324) >> cat(a,sep=3D"\n") >> #+END_SRC >>=20 >> #+RESULTS: >> : 12.23 >>=20 >> This is with=20 >>=20 >> GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32)= of 2019-05-01 >> Org mode version 9.2.3 (release_9.2.3-367-gd79e80 @ /home/nick/elisp/o= rg-mode/lisp/) >> R version 3.5.3 (2019-03-11) -- "Great Truth" >>=20 >> on Fedora 29. >=20 >=20