From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode List <emacs-orgmode@gnu.org>
Subject: Re: Table rows and ranges as LHS of formulas
Date: Fri, 4 Mar 2011 06:41:34 +0100 [thread overview]
Message-ID: <06BFC6C6-A4A6-46F8-8ADC-6D20E194B576@gmail.com> (raw)
In-Reply-To: <5233.1299190260@alphaville.usa.hp.com>
On 3.3.2011, at 23:11, Nick Dokos wrote:
> Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
>
>> Hi,
>>
>> On Thu, 3 Mar 2011 22:19:32 +0100
>> Carsten Dominik <carsten.dominik@gmail.com> wrote:
>>
>>>
>>> On 3.3.2011, at 05:18, Nick Dokos wrote:
>>>
>>>> Carsten Dominik <carsten.dominik@gmail.com> wrote:
>>>>
>>>>> Maybe we should use something else to achieve symmetry, like @>
>>>>> and $>.
>>>>>
>>>>> Comments?
>>>>>
>>>>
>>>> Perfect. Mirrors the keybinding for end-of-buffer, so there is
>>>> mnemonic value there, and it naturally flows from the @N$N notation.
>>>
>>> OK, this is how it works now. @L no longer works.
>>>
>>
>> I updated org just now. But when I try this,
>>
>> | Expense | Amount (CAD) |
>> |----------+--------------|
>> | Tickets | 1191.82 |
>> | hostel | 838.49 |
>> | per diem | 1050.00 |
>> |----------+--------------|
>> | Total | |
>> #+TBLFM: @>$>=vsum(@I..@II);%.2f
>>
>> It doesn't work. Whereas this does:
>>
>> | Expense | Amount (CAD) |
>> |----------+--------------|
>> | Tickets | 1191.82 |
>> | hostel | 838.49 |
>> | per diem | 1050.00 |
>> |----------+--------------|
>> | Total | 3080.31 |
>> #+TBLFM: @5$2=vsum(@I..@II);%.2f
>>
>> Am I doing something wrong?
>>
>
> I don't think so: I don't see Carsten's change even though I just pulled, so
> I guess he has not pushed it yet (or forgot to):
Hmm, indeed, seems like I forgot to push. Did that just now,
and tested Suvayu's example.
- Carsten
>
> ,----
> | $ git log -3 lisp/org-table.el
> | commit dc60852d24b16555466214712181351e11b68e7c
> | Author: Bastien Guerry <bzg@altern.org>
> | Date: Thu Mar 3 09:34:34 2011 +0100
> |
> | Fix small typo in docstring.
> |
> | commit 8892fe3f0404dd608452dd8203f2783a212e8120
> | Author: Bastien Guerry <bzg@altern.org>
> | Date: Thu Mar 3 09:30:16 2011 +0100
> |
> | Fix small typo in docstring.
> |
> | commit 8237c9ae6d587a22646333e0315683675e2db538
> | Author: Carsten Dominik <carsten.dominik@gmail.com>
> | Date: Tue Mar 1 09:05:56 2011 +0100
> |
> | Implement table formulas that apply to field ranges, fix minor issues
> |
> | * lisp/org-table.el (org-table-fedit-finish): Read more general LHS of formulas.
> | (org-table-formula-handle-@L): New function to hanle @L references.
> | (org-table-current-ncol): New variable.
> | (org-table-line-to-dline): New function.
> | (org-table-get-stored-formulas): Accept range formulas as matches.
> | (org-table-get-specials): Compute and store the number of columns.
> | (org-table-get-range): New optional argument CORNERS-ONLY, to retrieve
> | only the region marked by the range, not the content.
> | (org-table-recalculate): Call `org-table-expand-lhs-ranges' to expand
> | range targets. Also check for duplicate access to fields.
> | (org-table-expand-lhs-ranges): New funktion.
> | (org-table-get-remote-range): Bind `org-table-current-ncol' to protect
> | the caller's value.
> | (org-table-edit-formulas): Support highlighting of range targets.
> | (org-table-field-info): Handle renge formulas.
> |
> | * doc/org.texi (Field and range formulas): Renamed from "Field formulas".
> | Document the use of range operators as targets.
> | (References): Document the new @L reference.
> `----
>
> Nick
prev parent reply other threads:[~2011-03-04 5:41 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-01 14:28 Table rows and ranges as LHS of formulas Carsten Dominik
2011-03-01 15:10 ` Carsten Dominik
2011-03-02 16:11 ` Christian Moe
2011-03-02 16:46 ` Bernt Hansen
2011-03-02 17:31 ` Carsten Dominik
2011-03-02 23:09 ` Christian Moe
2011-03-02 23:16 ` Carsten Dominik
2011-03-02 17:21 ` Bastien
2011-03-02 17:35 ` Carsten Dominik
2011-03-02 18:54 ` Nick Dokos
2011-03-02 20:00 ` Suvayu Ali
2011-03-02 22:57 ` Carsten Dominik
2011-03-02 23:08 ` Samuel Wales
2011-03-03 4:18 ` Nick Dokos
2011-03-03 8:28 ` Bastien
2011-03-03 12:23 ` Carsten Dominik
2011-03-03 16:46 ` Bastien
2011-03-03 12:23 ` Carsten Dominik
2011-03-03 21:19 ` Carsten Dominik
2011-03-03 22:01 ` Suvayu Ali
2011-03-03 22:11 ` Nick Dokos
2011-03-03 22:25 ` Suvayu Ali
2011-03-04 5:41 ` Carsten Dominik [this message]
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=06BFC6C6-A4A6-46F8-8ADC-6D20E194B576@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.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).