From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Possible Calc support for Org-Babel? Date: Thu, 04 Nov 2010 10:23:35 -0600 Message-ID: <87aalprraw.fsf@gmail.com> References: <878w1ani4w.fsf@ucl.ac.uk> <87eib1dxll.fsf@gmail.com> <80eib1881d.fsf@mundaneum.com> <87wrotgl33.fsf@gmail.com> <80hbfx5b6i.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=45900 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE2bF-0006LT-JY for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 12:23:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PE2bE-0003mW-3a for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 12:23:41 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:55983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PE2bD-0003mD-QN for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 12:23:39 -0400 Received: by pzk3 with SMTP id 3so326242pzk.0 for ; Thu, 04 Nov 2010 09:23:38 -0700 (PDT) In-Reply-To: <80hbfx5b6i.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Thu, 04 Nov 2010 17:02:45 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban writes: > Eric, > > "Eric Schulte" wrote: >> S=C3=A9bastien Vauban writes: >> >>> There must be something stupid in my config, but even a simple one like= the >>> following does not work for me: >>> >>> #+begin_src calc >>> 1 >>> 2 >>> '+ >>> #+end_src >>> >>> Error is: >>> >>> #+begin_src emacs-lisp >>> executing Calc code block... >>> calc-push-list: Symbol's value as variable is void: calc-command-flags >>> #+end_src >>> >>> Though, I confirm you that I have loaded both =3Dcalc=3D and =3Dob-calc= =3D... Any idea? >> >> That variable is defined in my version of calc.el (distributed with the >> latest version of Emacs from git). Is that variable not defined in your >> calc.el file? Maybe the solution is to upgrade your calc. > > I have "GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-10-14 on > LENNART-69DE564 (patched)" (known as EmacsW32, latest version that Lennar= t put > online). > > Library is file "c:/Program Files/Emacs/emacs/lisp/calc/calc.elc", and I = see > (on line 1544 of the =3D.el=3D file): > > #+begin_src emacs-lisp > (defvar calc-command-flags) > #+end_src > > ELC seems well compiled from that EL, as times report: > > -rw-rw-rw- 1 Fabrice Aucun 138805 2009-10-14 02:45 calc.el > -rw-rw-rw- 1 Fabrice Aucun 103841 2009-10-14 02:46 calc.elc > > Setting it myself to nil -- I have no idea why I must do this! -- : > > #+begin_src emacs-lisp > (setq calc-command-flags nil) > #+end_src > Hmm, that is weird. I guess you could search for the text variable name in your calc.el file, but I don't know how that would help you. Since I'm requiring calc from ob-calc.el, and I am only calling existing calc functions I'm going to treat this as a calc bug (i.e. beyond my scope). > > has the effect that many examples now work. > > Not all, though. For example, > > #+begin_src calc > 2*e > #+end_src > > returns =3Dnil=3D: > > #+results: > : nil > That is the only example I gave that uses a calc default variable. Maybe this is also a difference in our calc implementations? Best -- Eric > > Best regards, > Seb