From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: R source block :session errors, perhaps due to recent ESS change Date: Tue, 3 May 2016 15:58:51 -0500 Message-ID: References: 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]:52949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axhPg-0002cD-CJ for emacs-orgmode@gnu.org; Tue, 03 May 2016 16:59:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axhPT-0003Io-93 for emacs-orgmode@gnu.org; Tue, 03 May 2016 16:59:17 -0400 Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:34815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axhPS-0003EY-1i for emacs-orgmode@gnu.org; Tue, 03 May 2016 16:59:11 -0400 Received: by mail-yw0-x235.google.com with SMTP id j74so40361813ywg.1 for ; Tue, 03 May 2016 13:58:55 -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" To: William Denton Cc: emacs-orgmode On Tue, May 3, 2016 at 2:55 PM, William Denton wrote: > I updated my packages today and now Org documents with R source blocks ar= e > failing when I try to use a running R session. > > If you start R and leave that session open, then run this in an Org doc, = it > will fail (though it will success without the :session parameter): > > #+BEGIN_SRC R :session :results values > 1 > #+END_SRC > > The error I get (which includes a lot of junk I can't paste; why, I don't > know) is > > ess-eval-buffer: Wrong number of arguments: #[(start end toggle &optional > message) ... junk ... [ess-local-customize-alist toggle ess-eval-visibly > message proc visibly ess-force-buffer-current "Process to use: " "Startin= g > evaluation..." ess-setq-vars-local ...] 6 > ("/home/wdenton/.emacs.d/elpa/ess-20160502.557/lisp/ess-inf.elc" . 48726)= "r > P"], 5 Looks like I get the same after upgrading ess. #+begin_quote (Messages buffer) Type C-h m for help on ESS version 16.04 Cannot read history file /home/jwhendy/Desktop/.Rhistory ess-tracebug mode enabled ess-eval-buffer: Wrong number of arguments: #[(start end toggle &optional message) "=C3=86=C3=87!=C2=88=C3=83=C3=88!=C2=88=08=C2=84=13=C3= =89=C3=8A=C3=80!J!=C2=88=C3=8B =C2=88 =C2=83=1F ?=C2=82 =0B=C2=86%=C3=8C=C3=8D =1C=1B=1D=C2=8A=C3=8E =0E=10=0E=11 =0B%=C2=88,=0E=12=C2=83>=C3=8F =C2=88=0E=10=0E=11D=C2=87" [ess-local-custom= ize-alist toggle ess-eval-visibly message proc visibly ess-force-buffer-current "Process to use: " "Starting evaluation..." ess-setq-vars-local ...] 6 ("/home/jwhendy/.elisp/ess/lisp/ess-inf.elc" . 49640) "r P"], 5 #+end_quote ess-version: 16.04 [git: e5bd50a490da8715efed7addf05da05127fa6732] (loaded from /home/jwhendy/.elisp/ess/) That's odd to me, though, as you show 15.09... I ran fine before doing a make clean, ESS git pull, and make. I didn't touch Org. So I suspect it's an ESS thing? Org-mode version 8.3.4 (release_8.3.4-753-gda4db33 @ /home/jwhendy/.elisp/org/lisp/) John > > Now, the most recent commit to lisp/ess-inf.el had the comment "Get rid o= f > needless `inject` argument:" > > https://github.com/emacs-ess/ESS/commit/6b89391a13322ff2297fb3895ed665ff2= 048fc10#diff-724cde45c58d919c6bb8e85b26faf792 > > Perhaps that is the cause? I suspect it's Org talking to ESS, but if it'= s a > problem in ESS I can take it to that mailing list. > > > Emacs : GNU Emacs 25.1.50.29 (x86_64-unknown-linux-gnu, GTK+ Version > 3.16.7) > of 2016-05-03 > > Org-mode version 8.3.4 (release_8.3.4-771-g36dbdb @ > /usr/local/src/org-mode/lisp/) > > ess-version: 15.09-2 patched [elpa: 20160502.557] (loaded from > /home/wdenton/.emacs.d/elpa/ess-20160502.557/) > > Thanks, > > Bill > -- > William Denton =E2=86=94 Toronto, Canada =E2=86=94 https://www.miskaton= ic.org/