Fix bugs with TBLNAME
commit1530e0eafe01341955d548ee36e301b7b6552614
authorCarsten Dominik <carsten.dominik@gmail.com>
Tue, 15 Sep 2009 13:11:21 +0000 (15 14:11 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Tue, 15 Sep 2009 13:11:21 +0000 (15 14:11 +0100)
treeb9fb69be9fc81447c9294311a2479e439cf078e6
parent9dccc8372c37f749e93e3bcfbf61737e8e436bfc
Fix bugs with TBLNAME

Francesco Pizzolante writes:

> I'm using orgmode 6.30c and I still have this problem: if
> the #+TBLNAME: tag is not located in column 0, the remote
> reference does not work.
>
> Here's my little test:
>
> #+TBLNAME: A
>    |   |     T |
>    |---+-------|
>    |   |  2.00 |
>    |   |  5.00 |
>    |---+-------|
>    | # |  9.00 |
>    | ^ | total |
>    #+TBLFM: $2=vsum(@-I..@-II);%.2f
>
>    #+TBLNAME: price
>       |    T |    PU | Total |
>       |------+-------+-------|
>       | 9.00 | 10.25 | 92.25 |
>       |------+-------+-------|
>    #+TBLFM: @2$1=remote(A,$total);%.2f::@2$3=$1*$2;%.2f
>
>
> Just add a few spaces at the first line and when you recompute
> the second table you get a "Can't find remote table A" message.
>
> Moreover, in a LaTeX environment, using the orgtbl minor mode,
> the highlighting (font locking) does not work on the #+TBLNAME:
> line, even if located in column 0.
lisp/ChangeLog
lisp/org-table.el