Hi Nicolas

On Fri, Apr 26, 2013 at 3:03 PM, Nicolas Goaziou <n.goaz...@gmail.com> wrote:
> NAME should be a drop-in replacement for TBLNAME[fn:1].

Thanks for confirming my understanding.

> If it doesn't work for remote references in tables, then "org-table.el"
> must be updated.

It did not yet for remote references, patch attached.

Michael
From 68a96411e468a211453ce83c3a139cc2952c6e72 Mon Sep 17 00:00:00 2001
From: Michael Brand <michael.ch.br...@gmail.com>
Date: Fri, 26 Apr 2013 15:28:51 +0200
Subject: [PATCH] Allow also "#+NAME: table" for remote references

* lisp/org-table.el (org-table-get-remote-range): Extend regexp to
match "#+NAME: table" additionally to "#+TBLNAME: table".
---
 lisp/org-table.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-table.el b/lisp/org-table.el
index 93c33b2..8e461c8 100644
--- a/lisp/org-table.el
+++ b/lisp/org-table.el
@@ -4996,7 +4996,8 @@ list of the fields in the rectangle."
          (save-excursion
            (goto-char (point-min))
            (if (re-search-forward
-                (concat "^[ \t]*#\\+tblname:[ \t]*" (regexp-quote name-or-id) 
"[ \t]*$")
+                (concat "^[ \t]*#\\+\\(tbl\\)?name:[ \t]*"
+                        (regexp-quote name-or-id) "[ \t]*$")
                 nil t)
                (setq buffer (current-buffer) loc (match-beginning 0))
              (setq id-loc (org-id-find name-or-id 'marker))
-- 
1.8.1.2

Reply via email to