all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: William Henney <whenney@gmail.com>
To: emacs-org <emacs-orgmode@gnu.org>
Subject: A table formula bug: incremental column fill with negative values
Date: Fri, 23 Apr 2010 23:03:10 -0500	[thread overview]
Message-ID: <g2j41c818191004232103j6af65f0iaf178dccfdd76aaf@mail.gmail.com> (raw)

Hi all

The following is using today's git trunk of org-mode with emacs
23.1.94.1 (aquamacs 2.0preview5)

    Consider the following table

    | -8 |
    |    |
    |    |
    |    |
#+TBLFM: $1=@-1 - 1::@1$1=-8

    Evaluate formulas once (C-u C-c *):

    | -8 |
    | -9 |
    |----|
    | -1 |

    Evaluate formulas again (C-u C-c *):

    | -8 |
    | -9 |
    |----|
    |----|

    What I expected:

    |  -8 |
    |  -9 |
    | -10 |
    | -11 |

The problem always seems to start at -10. When I turn on table
debugging, it first calculates the -10 value correctly, but then fails
to recognise the -10 cell as a number when calculating the next row,
using 0 instead, which results in -1. This is because during the
intermediate formatting of the cell the minus sign in -10 abuts the
column separator: "|-10 |", and the "|-" part is then interpreted as
the beginning of an hline.

Any possibility of a fix? Just prepending a space to all calculated
negative numbers might be enough.

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia

             reply	other threads:[~2010-04-24  4:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-24  4:03 William Henney [this message]
2010-04-24  8:23 ` A table formula bug: incremental column fill with negative values 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

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

  git send-email \
    --in-reply-to=g2j41c818191004232103j6af65f0iaf178dccfdd76aaf@mail.gmail.com \
    --to=whenney@gmail.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 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.