emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Corrupted TBLFM after table edit
Date: Thu, 9 Jan 2014 08:01:16 +0100	[thread overview]
Message-ID: <CALn3zogTnzpJcdHrb6MZByFw_1Xoa-ihyQvvDTmkn-7YbX6vVw@mail.gmail.com> (raw)

Hi all

If you use release_8.2.4-14-geb28fe4 or newer and are using Org table
spreadsheet #+TBLFM then downgrade your Org version before editing
tables. In the files where you already edited a table with such an Org
release check all #+TBLFM in that file for corruption as shown below.


Hi Bastien

The change for release_8.2.4-14-geb28fe4

    commit eb28fe41dc5517e2f1d4d782eb0b5da08b90af53
    Author: Bastien Guerry <bzg@altern.org>
    Date:   Sun Dec 22 10:09:53 2013 +0100

      org-table.el (ogr-table-fix-formulas): Handle multiple #+tblfm: lines

on maint and master corrupts #+TBLFM when e. g. swapping the columns c
and d with M-<left>/M-<right> by changing $1 and $2 also in all tables
below the edit.

* ab
  | a | b |
  |---+---|
  | 0 | 1 |
  #+TBLFM: $2 = $1 + 1
* cd
  | c | d |
  |---+---|
  | 2 | 3 |
  #+TBLFM: $2 = $1 + 1
* ef
  | e | f |
  |---+---|
  | 4 | 5 |
  #+TBLFM: $2 = $1 + 1
* gh
  | g | h |
  |---+---|
  | 6 | 7 |
  #+TBLFM: $2 = $1 + 1

Michael

             reply	other threads:[~2014-01-09  7:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-09  7:01 Michael Brand [this message]
2014-01-09 10:03 ` Corrupted TBLFM after table edit Bastien
2014-01-09 11:04   ` Michael Brand
2014-01-09 11:14     ` Bastien
2014-01-09 19:17       ` Michael Brand

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=CALn3zogTnzpJcdHrb6MZByFw_1Xoa-ihyQvvDTmkn-7YbX6vVw@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=bzg@gnu.org \
    --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 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).