emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>, emacs-orgmode@gnu.org
Subject: Re: remote reference
Date: Fri, 15 Jan 2010 11:29:06 +0100	[thread overview]
Message-ID: <83ockvbr0t.fsf@yahoo.it> (raw)
In-Reply-To: <2ACD6FB3-B415-4AE7-8D62-9450922514D0@gmail.com> (Carsten Dominik's message of "Fri, 15 Jan 2010 10:38:10 +0100")


Carsten,  

I cannot reference fields in tables as the manual says. 
Org-mode version 6.34
GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON

Example:
-------------------------------------------------
* [2010-01-15 ven] table & reference
** table a
#+TBLNAME: Taba
|   | # |  x | y |
|---+---+----+---|
|   | 1 | -2 | 4 |
|   | 2 | -1 | 1 |
|   | 3 |  0 | 0 |
|   | 4 |  1 | 1 |
|   | 5 |  2 | 4 |
| ^ |   |    | a |
** table b
the manual says:  
: remote(NAME-OR-ID,REF)
: REF is an absolute field or range reference
: as described above for example `@3$3' or `$somename', valid in the
: referenced table.

But I found that as a REF I can only  use: 
+ field  a cell  @5$1=remote(Taba,$a)
+ and *NOT* range reference (as $somename) or 
            ranges such as @1$2..@5$2, 
  but in the manual is not explicitly said.
  So I could have misunderstoot the meaning of "range".

See the non working examples:
*** variables
#+TBLNAME: Tabb
|   |   |
|---+---|
| ^ | b |
#+TBLFM: $b=remote(Taba,$a)
*** columns  
#+TBLNAME: Tabc
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: $2=remote(Taba,$4)

#+TBLNAME: Tabcc
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: @1$2..@5$2=remote(Taba,$4)
*** ranges: 
#+TBLNAME: Tabr
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: @1$2..@5$2=remote(Taba,@1$3..@5$3)
------------------------------------------------------------
Is my analysis correct? 
Did I misunderstand the meanong of "range"?
Is the documentation incomplete? 
Is there a bug  and  the documentation is correct?

cheers,
Giovanni

  reply	other threads:[~2010-01-15 10:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15  8:49 remote reference Karl Eichwalder
2010-01-15  9:21 ` Sébastien Vauban
2010-01-15  9:59   ` Sébastien Vauban
2010-01-15  9:38 ` Carsten Dominik
2010-01-15 10:29   ` Giovanni Ridolfi [this message]
2010-01-15 15:55     ` Carsten Dominik
2010-01-18  8:53       ` Giovanni Ridolfi
2010-01-28 17:34         ` Carsten Dominik
2010-05-11 19:16   ` Karl Eichwalder
2010-05-12  6:16     ` Carsten Dominik
2010-05-12 11:26       ` Karl Eichwalder
2010-05-12 13:06         ` Carsten Dominik
2010-12-11 14:42           ` Karl Eichwalder
2010-12-11 14:46             ` Carsten Dominik

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=83ockvbr0t.fsf@yahoo.it \
    --to=giovanni.ridolfi@yahoo.it \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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).