emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] Translate refs to rc also in remote references


From: Bastien
Subject: Re: [O] [PATCH] Translate refs to rc also in remote references
Date: Wed, 08 Aug 2012 14:23:13 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Hi Jose,

address@hidden (Jose E. Marchesi) writes:

> Sure.  Here is it.

Coming back to this.

> From 37cc07cb5acd84c15216f0107936fe9367c53dca Mon Sep 17 00:00:00 2001
> From: "Jose E. Marchesi" <address@hidden>
> Date: Wed, 11 Jul 2012 10:10:02 +0200
> Subject: [PATCH] Transform the coordinates found in remote references into
>  "normalised" @n$y.
> To: address@hidden
>
> * 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:]+\\|\\<remote([^)]*)\\)" 
> s start)
> +    (while (string-match 
> "\\<\\([a-zA-Z]+\\)\\([0-9]+\\>\\|&\\)\\|\\(;[^\r\n:]+\\|\\<remote([^,]*[ 
> \t]*\\|)\\)" s start)

I fail to see the meaning of ([^,]*[ \t]*\\|) replacing ([^)]*)

The \\| is wrong, right?

I think I need an example with such a remote reference, the way
org-table-convert-refs-to-rc would have converted it, and the way
it does with your patch.

Thanks in advance!

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]