summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2009-04-15 15:14:19 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2009-04-15 15:16:05 +0200
commitc0f97f14e2766d04cb86d1005eb83ff862cf9b58 (patch)
treecfc2576ae40137c8dc276e458b65ad30d62b1e26 /lisp
parent06ddc5e9d27931ba60052c7f657a77b8608ec03f (diff)
Tables: Allow standard references in remote references.
Rares Vernica writes: > I think the standard references do not work correctly in the > "remote" function. Moreover, the "edit all formulas" (C-c ') > window replaces the internal references with standard > references. Even if I toggle the references back to internal > ones, the references in the "remote" function do not get > updated. > > Here is an example: > > #+TBLNAME: TableA > | 101 | > #+TBLFM: @1$1=remote(TableC,@1$1) > > #+TBLNAME: TableB > | A1 | > #+TBLFM: @1$1=remote(TableC,A1) > > #+TBLNAME: TableC > | 101 | > > If I do C-c * in TableA, it works correctly. In TableB it > doesn't. If I do C-c ' in TableA and then (with or without > C-c C-r) C-c C-c and C-c *, then the contents of TableA will > be equivalent to the ones of TableB and the reference will > be broken. Standard references like A1 are now allowed in call to remote().
Diffstat (limited to 'lisp')
-rwxr-xr-xlisp/ChangeLog2
-rw-r--r--lisp/org-table.el1
2 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1622ad67e..c3105f575 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -2,6 +2,8 @@
* org-table.el (org-table-fix-formulas): Do not change references
to remote tables.
+ (org-table-get-remote-range): Convert standard coordinates to RC
+ format.
* org-latex.el (org-export-latex-keywords): Fix regexp bug.
diff --git a/lisp/org-table.el b/lisp/org-table.el
index d220e15b2..35be5081d 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -4159,6 +4159,7 @@ list of the fields in the rectangle ."
org-table-last-column-widths org-table-last-alignment
org-table-last-column-widths tbeg
buffer loc)
+ (setq form (org-table-convert-refs-to-rc form))
(save-excursion
(save-restriction
(widen)