emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Rolf Sander (MPI)" <rolf.sander@mpic.de>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Fwd: comment lines inside org tables
Date: Wed, 05 Oct 2016 18:29:16 +0200	[thread overview]
Message-ID: <877f9moj37.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <e4a3d912-77b8-5361-6fb5-399deaceeeb3@mpic.de> (Rolf Sander's message of "Wed, 5 Oct 2016 17:32:56 +0200")

Hello,

"Rolf Sander (MPI)" <rolf.sander@mpic.de> writes:

> I'm sorry to say this but this email list has been the most
> disappointing experience for me. I asked a simple question and even
> provided the code for a possible solution. The answers I received
> included phrases like "can of worms", "little benefit" and "barely
> scratching the surface of the problem".

I think that blaming the whole list is uncalled for. You got helpful
answers from other persons than me, yet you only quote parts of my
answers.

> And now you even wrote:

[...]

>> I already answered to that question, but you discarded my answer.
>
> This is not true! You did not answer my question! Without testing, you
> just _speculated_ that you expect problems with formulas and export.

What makes you think I speculated anything? I tried to show you the weak
spots of your model.

> So I tested it myself. In my tests I did _not_ experience any problems
> with formulas and export. Why do you claim that I discarded your
> answer?

Exhibiting one example confirming a theory doesn't validate it.

Anyway, you can do the following with your patch:

 - Move point to your "comment row"
 - M-: (org-element-property :type (org-element-at-point))

If you get `rule', by all means, Org sees your row as a standard table
rule. This is not transparent; this is /not/ a comment. You just created
a degenerate syntax for table rules.

Note that this may be what you really want, but this is not equivalent
to the initial example you gave:

  |--------+-------+--------|
  | animal | size  | number |
  |--------+-------+--------|
  | gnus   | big   |      3 |
  # don't forget to add elephants here:
  | gnats  | small |   1000 |
  |--------+-------+--------|

If such thing existed, the "gnus" and "gnats" rows wouldn't be separated
by a rule, e.g., in export, because Org removes such lines prior to
starting the export process. Another example is the following:

  |--------+-------+--------|
  | animal | size  | number |
  |-/ whatever
  | gnus   | big   |      3 |
  | gnats  | small |   1000 |
  |--------+-------+--------|

In this case, you are creating a table header, so this is not
transparent either. I could also add an example where an additional rule
has an impact on formulas (@I..@II could have a different meaning
depending on the presence or not of another rule).

All in all, I think your problem is ill-defined. You wanted comment
rows, but you didn't specify how it should behave in various situations
involving tables. I stand on my ground : generic comment rows are
difficult to implement and "a can of worms".

Allowing text within a table rule is easier to achieve, as you proved,
but it feels very hackish and limited in use. What if I want to
introduce comments without creating a visible rule in the table? Do
I need yet another syntax?

> I still think orgmode is great code and I would have loved to
> participate. However, given the way that you treat me here,

I don't treat you in any way. I just suggested your idea was wrong.
I understand this can be frustrating. I would be frustrated too.


Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2016-10-05 16:29 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)
     [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 [this message]
  -- 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=877f9moj37.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=rolf.sander@mpic.de \
    /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).