From mboxrd@z Thu Jan 1 00:00:00 1970 From: jemarch@gnu.org (Jose E. Marchesi) Subject: Re: [PATCH] Translate refs to rc also in remote references Date: Wed, 11 Jul 2012 10:17:19 +0200 Message-ID: <87ehoivhio.fsf@gnu.org> References: <87y5mrdbcn.fsf@gnu.org> <87mx37crmg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sos73-0007xh-QS for emacs-orgmode@gnu.org; Wed, 11 Jul 2012 04:17:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sos6x-0000Z8-GL for emacs-orgmode@gnu.org; Wed, 11 Jul 2012 04:17:33 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:39561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sos6x-0000Z0-Dj for emacs-orgmode@gnu.org; Wed, 11 Jul 2012 04:17:27 -0400 In-Reply-To: <87mx37crmg.fsf@gnu.org> (Bastien's message of "Tue, 10 Jul 2012 22:01:43 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org > Just a tiny patch making org-table-convert-refs-to-rc to transform the > coordinates found in remote references into "normalised" @n$y. This is > part of some work I am doing with remotes and which I will be sending to > the list soon: namely to update the remotes when the structure of > some referred table changes. Looks good. Can you provide the patch with a ChangeLog and with git format-patch ? Sure. Here is it. >From 37cc07cb5acd84c15216f0107936fe9367c53dca Mon Sep 17 00:00:00 2001 From: "Jose E. Marchesi" Date: Wed, 11 Jul 2012 10:10:02 +0200 Subject: [PATCH] Transform the coordinates found in remote references into "normalised" @n$y. To: emacs-orgmode@gnu.org * org-table.el (org-table-convert-refs-to-rc): Convert references in remote(..) directives. --- lisp/org-table.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index 16f2520..f3cce91 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -3229,7 +3229,7 @@ Parameters get priority." Works for single references, but also for entire formulas and even the full TBLFM line." (let ((start 0)) - (while (string-match "\\<\\([a-zA-Z]+\\)\\([0-9]+\\>\\|&\\)\\|\\(;[^\r\n:]+\\|\\\\|&\\)\\|\\(;[^\r\n:]+\\|\\