From: "Rolf Sander (MPI)" <rolf.sander@mpic.de>
To: emacs-orgmode@gnu.org
Subject: Re: Fwd: comment lines inside org tables
Date: Mon, 3 Oct 2016 15:16:16 +0200 [thread overview]
Message-ID: <1939cc58-d566-5563-eb48-a469ea0cc388@mpic.de> (raw)
In-Reply-To: <c54e80aa-1596-2b0c-4c22-8796877ea6bf@rolf-sander.net>
Hello Nicolas,
> Allowing to comment anything is a can of worms I really don't want to
> open.
Maybe you are misinterpreting what I wrote. I don't want to comment
"anything". All I want is that a table line starting with "|-/" is not
expanded to "|---+---+---|" on the next re-align. Instead, it should
remain unchanged.
> It complicates a lot of code for little benefit.
Well, regarding the benefit we seem to have different opinions. The
table that I use for my work has 871 lines, 20 columns and a width of
234 characters. With such a big table, I would highly benefit from
comment lines.
Regarding the code, I already wrote a few lines for org-table-align
adding this feature and I don't think it is too complicated.
> Sorry, but you're barely scratching the surface of the problem.
It is quite possible that you are right. Indeed, there is a possibility
that my addition has some negative side effects. To find out if this is
really the case, I have written to this email list, asking for advise.
> Formulas don't handle these special lines, neither do exported tables.
I don't understand why you say this. I have tested formulas and
exporting, taking an example table from the manual and adding two
comment lines. Everything still works fine:
|---+---------+--------+--------+--------+-------+------|
| | Student | Prob 1 | Prob 2 | Prob 3 | Total | Note |
|---+---------+--------+--------+--------+-------+------|
| ! | | P1 | P2 | P3 | Tot | |
| # | Maximum | 10 | 15 | 25 | 50 | 10.0 |
| ^ | | m1 | m2 | m3 | mt | |
|---+---------+--------+--------+--------+-------+------|
|-/ students in Mr Miller's class:
|---+---------+--------+--------+--------+-------+------|
| # | Peter | 10 | 8 | 23 | 41 | 8.2 |
| # | Sam | 2 | 4 | 3 | 9 | 1.8 |
|---+---------+--------+--------+--------+-------+------|
|-/ students in Mr Smith's class:
|---+---------+--------+--------+--------+-------+------|
| # | Tom | 16 | 8 | 28 | 52 | 10.4 |
| # | Andy | 8 | 4 | 3 | 15 | 3.0 |
|---+---------+--------+--------+--------+-------+------|
| | Average | | | | 25.0 | |
| ^ | | | | | at | |
| $ | max=50 | | | | | |
|---+---------+--------+--------+--------+-------+------|
#+TBLFM: $6=vsum($P1..$P3)::$7=10*$Tot/$max;%.1f::$at=vmean(@-II..@-I);%.1f
So I'm asking again: Does anyone see any negative side effects when my
modification is introduced? It only prevents that a table line starting
with "|-/" is expanded to "|---+---+---|" on a re-align.
As mentioned in a previous post, if you want to test my modification,
you can find it here:
http://www.rolf-sander.net/tmp/org-table-align-new.el
Best regards
Rolf
--
-----------------------------------------------------------------------
www.rolf-sander.net
-----------------------------------------------------------------------
next prev parent reply other threads:[~2016-10-03 13:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-27 8:05 comment lines inside org tables Rolf Sander (MPI)
2016-09-27 10:56 ` Fwd: " Rolf Sander (MPI)
2016-09-27 11:31 ` Nicolas Goaziou
2016-09-27 12:06 ` Rolf Sander (MPI)
2016-09-27 21:36 ` Nicolas Goaziou
2016-09-30 14:52 ` Rolf Sander
2016-09-30 15:36 ` Nicolas Goaziou
2016-10-02 19:23 ` Rolf Sander
2016-10-03 13:16 ` Rolf Sander (MPI) [this message]
[not found] ` <6cd445a96b6d4cd88b912298ee4f4df1@DB5PR01MB1895.eurprd01.prod.exchangelabs.com>
2016-10-03 13:27 ` Eric S Fraga
2016-10-05 12:30 ` Rolf Sander (MPI)
2016-10-05 14:58 ` Nicolas Goaziou
2016-10-05 15:32 ` Rolf Sander (MPI)
2016-10-05 16:10 ` Thomas S. Dye
2016-10-05 16:29 ` Nicolas Goaziou
-- strict thread matches above, loose matches on Subject: below --
2016-09-27 11:18 John Kitchin
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=1939cc58-d566-5563-eb48-a469ea0cc388@mpic.de \
--to=rolf.sander@mpic.de \
--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).