From: Carsten Dominik <carsten.dominik@gmail.com>
To: Rick Frankel <rick@rickster.com>
Cc: Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: [BUG] hline references on left side of table formula
Date: Mon, 2 Sep 2013 10:10:14 +0200 [thread overview]
Message-ID: <B289E5D0-5E33-419F-95F0-A3F182BE9A9F@gmail.com> (raw)
In-Reply-To: <760e1f326345602d5fdfc3e9197444d2@mail.rickster.com>
Hi Rick,
hline-relative references on the left side of a table are currently not supported. The fact that this is expanded is a bug. A patch catching this case would be very welcome.
Regards
- Carsten
On May 1, 2013, at 7:27 PM, Rick Frankel <rick@rickster.com> wrote:
> Hi-
>
> I don't know if this is a bug or feature :), but if an hline reference
> (@I, etc) is used on the left side of a calculation, it applies to ALL
> columns in the row even if the column is specfied.
>
> Here are some examples to show the results. I would expect all three
> versions to generate the same results as the first example.
>
> #+BEGIN_ORG
> * Absolute reference (expected results)
> | a | b |
> |---+---|
> | x | 1 |
> | y | 2 |
> |---+---|
> | | 3 |
> #+TBLFM: @4$2=vsum(@I..@II)
>
> * hline reference
> | a | b |
> |-------+---|
> | x | 1 |
> | y | 2 |
> |-------+---|
> | x + y | 3 |
> #+TBLFM: @II$2=vsum(@I..@II)
>
> * hline reference with full cell specification in sum
> | a | b |
> |---+---|
> | x | 1 |
> | y | 2 |
> |---+---|
> | 3 | 3 |
> #+TBLFM: @II$2=vsum(@I$2..@II$2)
> #+END_ORG
>
> FWIW, I believe the problem is that `org-table-recalculate' is
> matching lhs cell references explicitly against pure numeric
> references ("@[0-9]+$[0-9]+") and therefore expands the lhs via
> `org-expand-lhs-ranges' instead of expanding it with
> `org-table-get-descriptor-line'
>
> rick
>
>
next prev parent reply other threads:[~2013-09-02 8:10 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-01 17:27 [BUG] hline references on left side of table formula Rick Frankel
2013-09-02 8:10 ` Carsten Dominik [this message]
2013-09-25 17:57 ` [PATCH] Add check for assignment to hline relative references in table formulas Rick Frankel
2013-11-05 11:08 ` Bastien
2013-11-05 20:19 ` Achim Gratz
2013-11-05 20:55 ` Bastien
2013-11-07 19:37 ` Achim Gratz
2013-11-07 21:09 ` Bastien
2013-11-08 11:09 ` Michael Brand
-- strict thread matches above, loose matches on Subject: below --
2013-10-01 5:32 [BUG] hline references on left side of table formula lompik
2013-11-06 8:23 ` Bastien
2013-11-06 18:50 ` Rick Frankel
2013-11-06 19:57 ` Achim Gratz
2013-11-06 20:14 ` Achim Gratz
2013-11-07 15:01 ` Rick Frankel
2013-11-07 19:16 ` Achim Gratz
2013-11-07 5:59 ` Michael Brand
2013-11-07 14:40 ` Rick Frankel
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=B289E5D0-5E33-419F-95F0-A3F182BE9A9F@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rick@rickster.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).