[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] org-table.el: Calc formulas evaluate to #ERROR.
From: |
Eric S Fraga |
Subject: |
Re: [O] [PATCH] org-table.el: Calc formulas evaluate to #ERROR. |
Date: |
Mon, 04 Jul 2011 10:41:07 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) |
Bastien <address@hidden> writes:
> Hi Maciek,
>
> Maciek Starzyk <address@hidden> writes:
>
>> This fixes regression bug introduced in
>> 2e20cf9358deb9579ae6a22bc0deb2a772387194
>
> Applied, thanks a lot.
Bastien,
unfortunately, it does not seem to have been applied quite correctly.
The following should correct the latest version:
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 7f0f9bb..9724dc2 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -2513,13 +2513,13 @@ not overwrite the stored one."
(error "#ERROR"))
ev (if (numberp ev) (number-to-string ev) ev)
ev (if duration (org-table-time-seconds-to-string
- (string-to-number ev) ev)))
+ (string-to-number ev)) ev))
(or (fboundp 'calc-eval)
(error "Calc does not seem to be installed, and is needed to
evaluate the formula"))
(setq ev (calc-eval (cons form modes)
(if numbers 'num))
ev (if duration (org-table-time-seconds-to-string
- (string-to-number ev) ev))))
+ (string-to-number ev)) ev)))
(when org-table-formula-debug
(with-output-to-temp-buffer "*Substitution History*"
--8<---------------cut here---------------end--------------->8---
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.567.gb9af1.dirty)