From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leon Subject: org and calc-embedded Date: Fri, 30 Jun 2006 04:01:47 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fw9Gn-0007v1-Ds for emacs-orgmode@gnu.org; Thu, 29 Jun 2006 23:02:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fw9Gl-0007sG-PZ for emacs-orgmode@gnu.org; Thu, 29 Jun 2006 23:02:13 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fw9Gl-0007rn-JX for emacs-orgmode@gnu.org; Thu, 29 Jun 2006 23:02:11 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fw9TR-0003rB-O9 for emacs-orgmode@gnu.org; Thu, 29 Jun 2006 23:15:17 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fw9Gi-0002gQ-17 for emacs-orgmode@gnu.org; Fri, 30 Jun 2006 05:02:08 +0200 Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Jun 2006 05:02:08 +0200 Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Jun 2006 05:02:08 +0200 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 Dear Carsten, I found that org-mode doesn't play well with calc-embedded mode. For example, Suppose we have the following formula in org file: $ ln(ln(x)) $ Now move the cursor to the formula and type 'C-x * e' (activate calc-embedded mode). An error occurs: ,---- | Debugger entered--Lisp error: (error "$'s not allowed in this context") | signal(error ("$'s not allowed in this context")) | error("$'s not allowed in this context") | calc-do-embedded(nil nil nil nil) | calc-embedded(nil) | call-interactively(calc-embedded) | calc-do-dispatch(nil) | calc-dispatch(nil) | call-interactively(calc-dispatch) `---- If us \( \) there is not error, but the outcome is still not right. Same formula in LaTeX-mode: $ ln(ln(x)) $ => $ \ln\left( \ln{x} \right) $ => $ \frac{1}{\ln{x} x} $ (i) (ii) Type: (i) C-x * e (ii) adx RET To exit embedded mode: C-x * e NB: This is tested in calc 2.1 in emacs 23. In calc 2.02 'C-x *' is replaced with 'M-#'. Thanks for your time. -- Leon