emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* reference to same row in spreadsheet
@ 2008-12-18 15:01 Stephan Schmitt
  2008-12-18 16:25 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Stephan Schmitt @ 2008-12-18 15:01 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

the reference to the last row @0 led to incompatible changes:

* spreadsheet: relative reference to same row
  (using Org mode version 6.15d)

  The Org mode version 6.15 introduced @0 as a reference to the last
  row for spreadsheet (org-table) formulas.  This leads to problems if
  you used it as reference to the same row before.

  - description from [[http://orgmode.org/Changes.html][Org-mode list of
user-visible changes]]:

    Spreadsheet references to the last table line.

    You may now use @0 to reference the last dataline in a table in a
    stable way.

  - according to  [[info:org:References]]:

    `0' refers to the current row and column.  Also, if you omit
    either the column or the row part of the reference, the current
    row/column is implied.

  However this doesn't work since @0 refers to the last line.

  If you press `C-c *' with the cursor inside the tables below, the
  second column should contain the doubled value of the first.

** @0 refers to last line

|---+---|
| 1 | 4 |
| 2 | 4 |
|---+---|
#+TBLFM: $2=2*@0$-1

   this has worked before as reference to the same row, now it refers
   to the last row

** bug: omitting explicit reference

|---+--------|
| 1 | #ERROR |
| 2 | #ERROR |
|---+--------|
#+TBLFM: $2=2*$-1

   this seems to be a bug, should refer to the same row

** @+0 refers to same row

|---+---|
| 1 | 2 |
| 2 | 4 |
|---+---|
#+TBLFM: $2=2*@+0$-1

   works as expected


Greetings,
	Stephan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-12-19 17:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-18 15:01 reference to same row in spreadsheet Stephan Schmitt
2008-12-18 16:25 ` Carsten Dominik
2008-12-18 16:50   ` Stephan Schmitt
2008-12-18 22:14     ` Carsten Dominik
2008-12-19 17:49       ` Reference " Carsten Dominik
2008-12-18 16:55   ` reference " Ben Alexander

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).