From: Torsten Wagner <torsten.wagner@gmail.com>
To: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Problem: Moving rows in a table changes vsum start and end
Date: Fri, 28 Sep 2012 17:37:46 +0900 [thread overview]
Message-ID: <CAPaq-gN6EojDQkK5-yrnP2o6UHvSOxHA54EpxC7i=c807K_8Wg@mail.gmail.com> (raw)
Hi,
I just notice a funny row-shift effect, having a table with a field
calculated by vsum.
| Nr. | value |
|-----+-------|
| 1 | 5 |
| 2 | 5 |
| 3 | 5 |
| 4 | 5 |
| 5 | 5 |
| 6 | 5 |
|-----+-------|
| Sum | 30 |
#+TBLFM: @8$2=vsum(@2..@7)
now shift (sort) the rows by using M-arrowup and M-arrowdown
| Nr. | value |
|-----+-------|
| 1 | 5 |
| 6 | 5 |
| 5 | 5 |
| 3 | 5 |
| 4 | 5 |
| 2 | 5 |
|-----+-------|
| Sum | 10 |
#+TBLFM: @8$2=vsum(@2..@3)
Check, the #+TBLM:-line changed too! This might be desired sometimes
but might also trouble people if they do not give careful attention.
I know someone could do
| Nr. | value |
|-----+-------|
| 1 | 5 |
| 6 | 5 |
| 5 | 5 |
| 3 | 5 |
| 4 | 5 |
| 2 | 5 |
|-----+-------|
| Sum | 30 |
#+TBLFM: @8$2=vsum(@I..@II)
But still I feel that people can too easily trap into wrong calculus.
One solution, I could see is then whenever forms change
"automagically" highlight this changes within the TBFM line, e.g., by
a change of the background color in a similar way like matching
parenthesis. That might help to make people more aware of it and shows
which equations are affected by the current operation.
All the best
Torsten
next reply other threads:[~2012-09-28 8:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-28 8:37 Torsten Wagner [this message]
2012-09-28 8:46 ` Problem: Moving rows in a table changes vsum start and end Bastien
2012-09-28 12:32 ` Torsten Wagner
2012-09-28 13:53 ` Bastien
2012-09-28 16:17 ` Torsten Wagner
2012-09-28 16:56 ` Bastien
2012-09-28 16:00 ` Bastien
2012-09-28 16:18 ` Torsten Wagner
2012-09-29 9:17 ` Carsten Dominik
2012-09-29 9:57 ` Achim Gratz
2012-09-29 9:59 ` Bastien
2012-09-29 10:03 ` Achim Gratz
2012-09-29 10:01 ` Carsten Dominik
2012-09-29 10:04 ` Bastien
2012-09-29 10:11 ` Achim Gratz
2012-09-29 10:58 ` Carsten Dominik
2012-09-29 12:02 ` Achim Gratz
2012-09-30 7:30 ` Torsten Wagner
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='CAPaq-gN6EojDQkK5-yrnP2o6UHvSOxHA54EpxC7i=c807K_8Wg@mail.gmail.com' \
--to=torsten.wagner@gmail.com \
--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).