From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: R code block produces only partial output Date: Tue, 05 Aug 2014 23:24:05 -0400 Message-ID: <87tx5qwbai.fsf@gmail.com> References: <87iom8zd24.fsf@gmail.com> <877g2oz9gv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XErpm-0001X8-FI for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 23:24:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XErph-0000Qj-0N for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 23:24:14 -0400 Received: from mail-qa0-x22b.google.com ([2607:f8b0:400d:c00::22b]:46357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XErpg-0000Qf-Rq for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 23:24:08 -0400 Received: by mail-qa0-f43.google.com with SMTP id w8so1896685qac.2 for ; Tue, 05 Aug 2014 20:24:08 -0700 (PDT) In-Reply-To: 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" , Andreas Kiermeier Cc: emacs-orgmode@gnu.org Hi Chuck, 2014ko abuztuak 5an, "Charles C. Berry"-ek idatzi zuen: [...] >=20 >=20 > Here is the docstring from ESS's inferior-S-prompt: >=20 > inferior-S-prompt is a variable defined in `ess-custom.el'. > Its value is "[]a-zA-Z0-9.[]*\\([>+.] \\)*> " >=20 > Documentation: > Regexp used in S and R inferior and transcript buffers for prompt=20 > navigation. > Customise it to make `comint-previous-prompt' quiqly navigate to > interesting portions of the buffer. >=20 >=20 > You can customize this variable. >=20 > ---- >=20 > Note that there is a space *required* after the [>+.], but the hard coded= =20 > regex in `org-babel-R-evaluate-session' lets the space be optional. >=20 > I am guessing the a-zA-Z stuff is there to strip 'Browse[1]> ' prompts an= d=20 > such, which probably isn't an issue for babel. Why doesn=E2=80=99t org just use the value of inferior-S-prompt? (which wo= uld then need to have the bit concatenated to the end that matches e.g. [1]). Another way of putting this might be =E2=80=9Cdoes the space th= at ESS requires ever turn up missing?=E2=80=9D >=20 > Just before the defcustom for inferior-S-prompt, I see this comment > in ess-custom.el: >=20 > ;; need to recognise + + + > > > > ;; and "+ . + " in tracebug prompt >=20 > Ha! The '.' seems to be for ess-tracebug. I am guessing that nobody will= =20 > need to output tracebug sessions from babel. So maybe it is safe to delet= e=20 > the "." after all - or at least require the space after it. Tracebug is on by default in ESS =E2=80=93 C-h v ess-use-tracebug. Tracebug even has babel support: see e.g. line 148 in ess.tracebug.el . >=20 > Maybe the regex should be put in a defcustom. Why? The current mismatch between babel and ESS seems like a bug, but once that=E2=80=99s fixed I don=E2=80=99t see the use case for configurabil= ity here. (But maybe you have something in mind...) --=20 Aaron Ecay