emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@ucsd.edu>
To: Jeremie Juste <jeremiejuste@gmail.com>
Cc: Nick Dokos <ndokos@gmail.com>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: suppress leading ":" in org-babel outputariBLE
Date: Fri, 31 May 2019 16:46:09 +0000	[thread overview]
Message-ID: <F50C5E0B-0574-46ED-B544-52EAC24E4BE2@ucsd.edu> (raw)
In-Reply-To: <87a7f3t874.fsf@gmail.com>

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

and the *R* buffer ends with

--8<---------------cut here---------------start------------->8---
> x <- 6L
a <-sprintf("%.2f",12.234324)
cat(a,sep="\n")
'org_babel_R_eoe'
> > 
12.23
> 
[1] "org_babel_R_eoe"
> 
--8<---------------cut here---------------end--------------->8---


If I then open a buffer in ESS[R] mode and run ess-eval-line-visibly-and-step (e.g. by typing C-c C-n)

and then eval the src block again, I get 

#+RESULTS:
: 12.23

and the *R* buffer ends with

--8<---------------cut here---------------start------------->8---
> x <- 6L
a <-sprintf("%.2f",12.234324)
cat(a,sep="\n")
'org_babel_R_eoe'
> > 12.23
> [1] "org_babel_R_eoe"
> 
--8<---------------cut here---------------end--------------->8---


Presumably, a comint or ess variable has changed to effect these differences.

I am unable to discern what variable that is. 

I suspect that the changed behavior Jeremie sees now was do to something similar and that a fresh start will result in the extraneous line in the results.

:-(

Chuck


> On May 31, 2019, at 12:05 AM, Jeremie Juste <jeremiejuste@gmail.com> wrote:
> 
> Hello,
> 
> Many thanks updating org-mode resolved the issue
> 
> Best regards,
> Jeremie
>> FWIW, I just get the last line:
>> 
>> #+NAME:mean_purchase_per_shopping_trip
>> 
>> #+BEGIN_SRC R :var x=6 :results output :session *R*
>> a <-sprintf("%.2f",12.234324)
>> cat(a,sep="\n")
>> #+END_SRC
>> 
>> #+RESULTS:
>> : 12.23
>> 
>> This is with 
>> 
>>   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/org-mode/lisp/)
>>   R version 3.5.3 (2019-03-11) -- "Great Truth"
>> 
>> on Fedora 29.
> 
> 

      reply	other threads:[~2019-05-31 16:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-27  7:13 suppress leading ":" in org-babel output Jeremie Juste
2019-05-28  2:17 ` Nick Dokos
2019-05-28 16:57   ` Berry, Charles
2019-05-29 22:00     ` Nick Dokos
2019-05-31  7:05   ` Jeremie Juste
2019-05-31 16:46     ` Berry, Charles [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=F50C5E0B-0574-46ED-B544-52EAC24E4BE2@ucsd.edu \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    --cc=jeremiejuste@gmail.com \
    --cc=ndokos@gmail.com \
    /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).