emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: d.tchin <d.tchin@voila.fr>
To: emacs-orgmode@gnu.org
Subject: Re: Bug ? : org-babel and calc : calc-command-flags
Date: Thu, 20 Jan 2011 18:22:05 +0000 (UTC)	[thread overview]
Message-ID: <loom.20110120T191145-241@post.gmane.org> (raw)
In-Reply-To: 87oc7by1hy.fsf@gmail.com

Eric Schulte <schulte.eric <at> 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
> 

  reply	other threads:[~2011-01-20 18:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19 18:58 Bug ? : org-babel and calc : calc-command-flags d.tchin
2011-01-20 16:36 ` Eric Schulte
2011-01-20 18:22   ` d.tchin [this message]
2011-01-20 18:49     ` Eric Schulte
2011-01-20 19:20       ` d.tchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20110120T191145-241@post.gmane.org \
    --to=d.tchin@voila.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).