[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## [Orgmode] A table formula bug: incremental column fill with negative val

**From**: |
William Henney |

**Subject**: |
[Orgmode] A table formula bug: incremental column fill with negative values |

**Date**: |
Fri, 23 Apr 2010 23:03:10 -0500 |

Hi all
The following is using today's git trunk of org-mode with emacs
23.1.94.1 (aquamacs 2.0preview5)
Consider the following table
| -8 |
| |
| |
| |
#+TBLFM: address@hidden - 1::@1$1=-8
Evaluate formulas once (C-u C-c *):
| -8 |
| -9 |
|----|
| -1 |
Evaluate formulas again (C-u C-c *):
| -8 |
| -9 |
|----|
|----|
What I expected:
| -8 |
| -9 |
| -10 |
| -11 |
The problem always seems to start at -10. When I turn on table
debugging, it first calculates the -10 value correctly, but then fails
to recognise the -10 cell as a number when calculating the next row,
using 0 instead, which results in -1. This is because during the
intermediate formatting of the cell the minus sign in -10 abuts the
column separator: "|-10 |", and the "|-" part is then interpreted as
the beginning of an hline.
Any possibility of a fix? Just prepending a space to all calculated
negative numbers might be enough.
Cheers
Will
--
Dr William Henney, Centro de Radioastronomía y Astrofísica,
Universidad Nacional Autónoma de México, Campus Morelia

**[Orgmode] A table formula bug: incremental column fill with negative values**,
*William Henney* **<=**