From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Cook, Malcolm" Subject: Re: BUG: emacs orgmode ob-R.el function org-babel-R-evaluate-session over aggressively performs "; ; cleanup extra prompts left in output" and a possible workaround Date: Thu, 8 Oct 2015 20:41:04 +0000 Message-ID: References: <2a1b8832412e49b7a0a4d231c3e289cf@exchsrv2.sgc.loc> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkI00-0002o6-S1 for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 16:41:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkHzv-0000Vg-SC for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 16:41:12 -0400 Received: from smtp02.stowers.org ([40.141.174.62]:34563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkHzv-0000VH-Lu for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 16:41:07 -0400 In-Reply-To: Content-Language: en-US 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "'Charles C. Berry'" Cc: "emacs-orgmode@gnu.org" > On Thu, 1 Oct 2015, Cook, Malcolm wrote: >=20 > >>> I am not sure what the best solution is, but, in my hands using > > > > Org-mode version 8.3.2-elpa org-20150929 the reg-expt used to > > > > "cleanup extra prompts left in output" is over-aggressive and will > > > > trim session :output at lines consisting exclusively of blanks and > > > > periods such as produced when printing a BioConductor 'Views' > > > > object which wants to appear as > > > >=20 > [snip] >=20 > >>> I offer as a possible workaround the following: > > > > > > > > So far, I have had good success having removed provision for > > > > allowing > > > leading whitespace by changing the regexp > > > org-babel-R-evaluate-session from > > > > "^\\([ ]*[>+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\)" > > > > to > > > > "^\\([>+\\.][ ]?\\)+\\([[0-9]+\\|[ ]\\)" > > > > > > > > But I don't know all the test cases so, YMMV.... >=20 > I have traced this back to its source, and the culprit appears to be me. >=20 > See > commit dc92eaa08d89e4bc9556f868ae65633196157a8d > Author: Eric Schulte > Date: Wed Jul 28 08:05:30 2010 -0600 > and subsequent modifications. >=20 > I believe the leading blank(s) in the regex were copied from ess, but no= wadays > I only see this in code in ess-traceback.el that is commented out. >=20 > So I guess there would be no harm in pushing the latter regex. Hi Chuck. Thanks for the history lesson, and taking this on in the first p= lace. Yay! ~Malcolm >=20 > Chuck