瀏覽代碼

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().
Carsten Dominik 16 年之前
父節點
當前提交
c0f97f14e2
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2 0
      lisp/ChangeLog
  2. 1 0
      lisp/org-table.el

+ 2 - 0
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.
 

+ 1 - 0
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)