emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Michael Hannon <jm_hannon@yahoo.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	Charles <millarc@verizon.net>
Subject: Re: How to apply multiple TBLFM rules?
Date: Thu, 10 May 2012 08:52:33 +0200	[thread overview]
Message-ID: <877gwkcytq.fsf@gnu.org> (raw)
In-Reply-To: <1336508514.23203.YahooMailNeo@web161906.mail.bf1.yahoo.com> (Michael Hannon's message of "Tue, 8 May 2012 13:21:54 -0700 (PDT)")

Hi Michael,

Michael Hannon <jm_hannon@yahoo.com> writes:

> Here is the same table, but with the formulas spread across three different
> lines:
>
>     #+TBLNAME: test2
>     | 1 | 2 |   |
>     | 4 | 5 |   |
>     | 7 | 8 | 9 |
>     #+TBLFM: @1$3='(+ 10 7)
>     #+TBLFM: @2$3='(+ 11 9)
>     #+TBLFM: @3$1=42
>
> If I hit C-c C-c while the point is on the FIRST TBLFM line, I get:
>
>     #+TBLNAME: test2
>     | 1 | 2 | 17 |
>     | 4 | 5 |    |
>     | 7 | 8 |  9 |
>
> This is what I expected.  If I now proceed to hit C-c C-c while the point is
> on the SECOND TBLFM line, I get:
>
>
>     #+TBLNAME: test2
>     | 1 | 2 | 17 |
>     | 4 | 5 |    |
>     | 7 | 8 |  9 |
>     
> I.e., there is no change whatsoever.  If I then hit C-c C-c while the point is
> on the THIRD TBLFM line, I get:
>
>     #+TBLNAME: test2
>     | 1 | 2 | 17 |
>     | 4 | 5 |    |
>     | 7 | 8 |  9 |
>     
> I.e., again there is no change whatsoever.

Yes -- I was fooled by the example in the article too.  

I confirm only the first formula line after the table can be applied
with C-c C-c.

> As I said above, I'm happy with the "::" solution and am happy to let this
> topic drop, but I'm eager to expand my Org-mode skills.  Please let me know
> what I'm missing.

Thanks for pointing at this, I'm expanding my org-table skills too!

Best,

-- 
 Bastien

  reply	other threads:[~2012-05-10  6:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-07 22:00 How to apply multiple TBLFM rules? Michael Hannon
2012-05-08  1:01 ` Charles
2012-05-08  1:41   ` Michael Hannon
2012-05-08  8:11   ` Bastien
2012-05-08 20:21     ` Michael Hannon
2012-05-10  6:52       ` Bastien [this message]
2013-04-02 13:33       ` [PATCH] Was: " Ippei FURUHASHI
2013-04-04 13:09         ` Bastien
2013-04-06 13:07           ` Ippei FURUHASHI
2013-04-06 13:15             ` Bastien

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=877gwkcytq.fsf@gnu.org \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=jm_hannon@yahoo.com \
    --cc=millarc@verizon.net \
    /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).