From mboxrd@z Thu Jan 1 00:00:00 1970 From: d.tchin Subject: Re: Bug ? : org-babel and calc : calc-command-flags Date: Thu, 20 Jan 2011 18:22:05 +0000 (UTC) Message-ID: References: <87oc7by1hy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52229 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pfz9J-0002MR-VL for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 13:22:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pfz9I-0006OC-2p for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 13:22:21 -0500 Received: from lo.gmane.org ([80.91.229.12]:41599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pfz9H-0006Nr-PU for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 13:22:20 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pfz9G-00036R-3b for emacs-orgmode@gnu.org; Thu, 20 Jan 2011 19:22:18 +0100 Received: from APuteaux-651-1-85-195.w81-249.abo.wanadoo.fr ([81.249.120.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Jan 2011 19:22:18 +0100 Received: from d.tchin by APuteaux-651-1-85-195.w81-249.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Jan 2011 19:22:18 +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: emacs-orgmode@gnu.org Eric Schulte gmail.com> writes: > > Hi d.tchin, > Hi Eric > This problem is caused because (as you point out) the calc-command-flags > variable is not defined. In my Emacs version calc-command-flags is > provided by (require 'calc) which is part of Babel's calc support, this > variable must be part of another package in your distribution. > Strange as I can load calc package in emacs. Indeed when I try to get information on this variable with C-h v, there is nothing. I have a look on calc.el and I have the following lines (1428): (defvar calc-aborted-prefix nil) (defvar calc-start-time nil) (defvar calc-command-flags) (defvar calc-final-point-line) (defvar calc-final-point-column) Indeed, when I tried to use C-h v on the two first variable, it match. But not for the following. The main difference is that the first two variable have the nil value and not the following. > As a work around you should find which calc package provides the > calc-command-flags variable and manually require that package, which > should resolve this problem. More generally it may be useful to upgrade > from Emacs 22 if that is an option. > I put a (require 'calc) in my .emacs. It is still not working. I decide to put the following instruction in my .emacs : (require 'calc) (defvar calc-command-flags nil) Then it works ! It seems that there is problem of initialization of this variable. Shouldn't this variable be initialized by default in calc ? Thank you for your help. d.tchin > Best -- Eric >