emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Wu Feng <frankwu@alcatel-lucent.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Remote reference (@>$1) doesn't work while ($LR1) works. [7.7]
Date: Wed, 26 Oct 2011 16:47:59 +0800	[thread overview]
Message-ID: <87sjmgdtq8.fsf@dmxswsh.cn.lucent.com> (raw)

Hello,

First, please check below simple example, I defined two tables (T1 and
T2). In table-2, I remotely refer to the @>$1 (last row, column 1) and
$LR2 (last row, column 2) of T1.

#+TBLNAME: T1
 | 11 | 12 |
 | 21 | 22 |
 | 31 | 32 |

#+TBLNAME: T2
 | xxx | xxx | xxx | xxx |
 | #   |  21 |  32 |     |
#+TBLFM: @>$3=remote(T1,$LR2)::@>$2=remote(T1,@>$1)

Obviously, the expected results are:

 - remote(T1,@>$1) is replaced by 31
 - remote(T1,$LR2) is replaced by 32

But I got 21 for remote(T1,@>$1). The $LR version works perfectly
(though the manual says $LR is out-dated)

Below are debug info when evaluating remote(T1,@>$1). Looks like @> in
the remote reference is mapped to the last row of the current table, not
of the remote table.

Substitution history of formula
Orig:   remote(T1,@2$1)
$xyz->  remote(T1,@2$1)
@r$c->  (21)
$1->    (21)
Result: 21
Format: NONE
Final:  21

Emacs  : GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.24.6)
 of 2011-09-13 on shirley
Package: Org-mode version 7.7

             reply	other threads:[~2011-10-26  8:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26  8:47 Wu Feng [this message]
2011-10-27  9:15 ` Bug: Remote reference (@>$1) doesn't work while ($LR1) works. [7.7] Christian Moe
2011-10-27 16:13 ` Carsten Dominik
2011-10-27 16:43   ` Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjmgdtq8.fsf@dmxswsh.cn.lucent.com \
    --to=frankwu@alcatel-lucent.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).