From mboxrd@z Thu Jan 1 00:00:00 1970 From: jemarch@gnu.org (Jose E. Marchesi) Subject: [PATCH] Translate refs to rc also in remote references Date: Tue, 10 Jul 2012 14:55:36 +0200 Message-ID: <87y5mrdbcn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoZyp-0003Ko-Cv for emacs-orgmode@gnu.org; Tue, 10 Jul 2012 08:55:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SoZyh-0004dU-RC for emacs-orgmode@gnu.org; Tue, 10 Jul 2012 08:55:50 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:45063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SoZyh-0004dJ-Me for emacs-orgmode@gnu.org; Tue, 10 Jul 2012 08:55:43 -0400 Received: from vpn-konference.ms.mff.cuni.cz ([195.113.20.101]:53655 helo=termi.gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SoZyg-000886-Ro for emacs-orgmode@gnu.org; Tue, 10 Jul 2012 08:55:43 -0400 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: emacs-orgmode@gnu.org Hi all. 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. 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:]+\\|\\