From: Nick Dokos <nicholas.dokos@hp.com>
To: mail@christianmoe.com
Cc: jamshark70@gmail.com, Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Table cell refs with @0 or $0 are broken
Date: Wed, 04 Apr 2012 18:36:31 -0400 [thread overview]
Message-ID: <11420.1333578991@alphaville> (raw)
In-Reply-To: Message from Christian Moe <mail@christianmoe.com> of "Wed, 04 Apr 2012 23:13:16 +0200." <4F7CB96C.6040109@christianmoe.com>
Christian Moe <mail@christianmoe.com> wrote:
> On 4/4/12 11:05 PM, Nick Dokos wrote:
> (...)
> >> #+TBLFM: @2$2..@>$>=@0;%.3f
> >>
> >> Try substituting `$0' for `@0', it works the same. @0 designates the
> >> current row, and the current column is taken as implied. Ditto when $0
> >> designates the current column. However, `@0$0' will not work.
> >>
> >
> > Ah, OK - I'm blind: on rereading it, and retrying it, I see that it just
> > pushes everything down to 0.000 - but that looks like a different bug to
> > me, no?
> >
> > Nick
>
> That's what I'm getting, and you're right, it does look different.
>
Ah, you shouldn't listen to me: even though it looks different, a patch that
I was trying out to fix James's problem seems to fix this problem too - so
they must be the same after all.
I just added a couple of sanity checks to org-table-get-range so that c1 and
c2 are set to a sane value not only when they are nil but also when they are
0 (around line 2666 or so in org-table.el):
...
(if (not c1) (setq c1 col))
(if (not c2) (setq c2 col))
(if (= c1 0) (setq c1 col))
(if (= c2 0) (setq c2 col))
...
Nick
next prev parent reply other threads:[~2012-04-04 22:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-04 9:35 Table cell refs with @0 or $0 are broken James Harkins
2012-04-04 17:17 ` Nick Dokos
2012-04-04 20:24 ` Christian Moe
2012-04-04 20:59 ` Nick Dokos
2012-04-04 21:05 ` Nick Dokos
2012-04-04 21:13 ` Christian Moe
2012-04-04 22:36 ` Nick Dokos [this message]
2012-04-09 18:07 ` Bastien
2012-04-09 18:13 ` Nick Dokos
2012-04-09 18:19 ` Bastien
2012-04-05 0:35 ` James Harkins
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=11420.1333578991@alphaville \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=jamshark70@gmail.com \
--cc=mail@christianmoe.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).