all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* strange table calculation
@ 2021-02-08 12:34 Eric S Fraga
  2021-02-09  9:22 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Eric S Fraga @ 2021-02-08 12:34 UTC (permalink / raw)
  To: Emacs Org mode mailing list

Hello all,

I have an org table which is behaving strangely.  The column formula for
column 9 is:

   $9 = $-1+@-1$+1;ENf2

This should add up the entry in the column to the left, i.e. column 8,
with the entry one row up and to the right, i.e. column 10.  However,
when column 9 is calculated, any entry that is immediately after a
horizontal divider line causes the @-1$+1 to be replaced with the value
from the current row, not the one above.

Removing horizontal lines fixes this (although not entirely as I get a
different behaviour later down in the table...).

The behaviour of @-1$+1 seems fragile.

Has anybody had similar issues?

I cannot create a minimal example that replicates this unfortunately and
I cannot post the table that is exhibiting the problem.  However, I hope
somebody might have some idea of where to look...

Thank you,
eric

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f


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

* Re: strange table calculation
  2021-02-08 12:34 strange table calculation Eric S Fraga
@ 2021-02-09  9:22 ` Eric S Fraga
  0 siblings, 0 replies; 2+ messages in thread
From: Eric S Fraga @ 2021-02-09  9:22 UTC (permalink / raw)
  To: Emacs Org mode mailing list

On Monday,  8 Feb 2021 at 12:34, Eric S Fraga wrote:
> The behaviour of @-1$+1 seems fragile.

To follow up, the same table copied (verbatim) to another org file
behaves as it should but continues to behave oddly in the original file.

Very mysterious.  But adding blank lines before/after horizontal
dividers does the job so no worries for the moment.
-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f


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

end of thread, other threads:[~2021-02-09  9:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-08 12:34 strange table calculation Eric S Fraga
2021-02-09  9:22 ` Eric S Fraga

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.