Tables: Don't modify remote references when changing a table
commit06ddc5e9d27931ba60052c7f657a77b8608ec03f
authorCarsten Dominik <carsten.dominik@gmail.com>
Wed, 15 Apr 2009 13:06:07 +0000 (15 15:06 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Wed, 15 Apr 2009 13:15:17 +0000 (15 15:15 +0200)
tree92e16857ba2893b9e6fd03ad34d9afc65478fc43
parent59501232478b967d67281a9049a5584eeed07ad7
Tables: Don't modify remote references when changing a table

Rares Vernica writes:

>  I think I found another bug related to remote
>  references. When I insert/remove a row/column using the
>  table commands, the remote references to other tables are
>  also updated. I think org treats "remote" as a regular
>  function and updates the references inside it.
>
>  Here is an example:
>
>  #+TBLNAME: TableA
>  | 101 |
>  #+TBLFM: @1$1=remote(TableB,@1$1)
>
>  #+TBLNAME: TableB
>  | 101 |
>
>  If I go in the cell of TableA and do M-S-down arrow, I get
>  the following:
>
>  #+TBLNAME: TableA
>  |     |
>  | 101 |
>  #+TBLFM: @2$1=remote(TableB,@2$1)
>                             ^^^^
>
>  As you can see the remote reference has been updated. I
>  similar update happens when I remove a row or insert/remove
>  a column.

This commit makes sure that references inside calls to
remote() are not touched.
lisp/ChangeLog
lisp/org-table.el