From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: [Feature Request] Cross headings in tables
Date: Sun, 17 Feb 2013 20:41:37 +0100 [thread overview]
Message-ID: <87ehgeafta.fsf@Rainer.invalid> (raw)
In-Reply-To: 87y5enpcc9.fsf@gmail.com
Nicolas Goaziou writes:
> You only need to modify org-element if Org syntax has been changed.
Yes, thats exactly what I want.
>> Also, it appears that each element can have only one property or did
>> I miss something? It seems that having a way to get the (main)
>> property and then asking if there are sub-properties on that element
>> would allow simpler code in this particular instance and likely
>> elsewhere. Maybe I missed how to do it, though.
>
> I don't understand that part.
(org-element-property :type row)
This will return a single symbol 'standard or 'rule inside a table. If
there was a way to ask "which kind of rule" later, this would enable a
much more elegant implementation.
> http://orgmode.org/worg/dev/org-export-reference.html
>
> for a list of all properties associated to a given element or object
> type.
So you are saying that a table row could get an additional property to
record which rule-type it has and whether it is a header row or not?
> I think the cleanest way to implement this would be to _not_ modify Org
> syntax, because it is export back-end very specific.
This is an impressive hack, but is largely unuseable IMHO. And whether
a table row is a header or not is certainly not back-end specific or at
least it shouldn't be: the back-end gets told if it should format a
table row as a header or as a normal row and that code is all in ox.
The only other part of the code that needs to know which row groups are
headers is when column formulas are involved.
The original hack tried to keep things backwards compatible, but I think
that it would have merit to allow tables with separators that don't
introduce any headers (as several people have asked for in the past) and
that simply isn't in the cards with the current syntax. So, a row group
would only be a header when the following rule was "|~" and the first
row group wouldn't need to be special any more.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
next prev parent reply other threads:[~2013-02-17 19:41 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-04 17:46 Quoting formula "cookies" in table? Achim Gratz
2010-10-05 1:25 ` Carsten Dominik
2010-10-05 17:10 ` Achim Gratz
2010-10-05 17:24 ` Carsten Dominik
2010-10-06 17:37 ` Achim Gratz
2010-10-05 17:54 ` [Feature Request] Cross headings in tables Achim Gratz
2011-01-16 18:44 ` Achim Gratz
2011-02-02 12:30 ` Lawrence Mitchell
2011-02-02 20:49 ` Achim Gratz
2011-02-08 21:52 ` Achim Gratz
2011-03-20 9:16 ` Achim Gratz
2011-05-29 18:18 ` [Orgmode] " Carsten Dominik
2011-05-30 21:02 ` Achim Gratz
2011-05-31 7:21 ` Carsten Dominik
2011-05-31 8:07 ` Lawrence Mitchell
2011-05-31 18:01 ` Achim Gratz
2011-05-31 18:44 ` Jambunathan K
2011-06-02 16:12 ` Carsten Dominik
2011-06-07 19:42 ` Achim Gratz
2013-02-16 19:21 ` Achim Gratz
2013-02-17 8:35 ` Nicolas Goaziou
2013-02-17 19:41 ` Achim Gratz [this message]
2013-02-17 21:06 ` Achim Gratz
2013-02-22 12:31 ` Carsten Dominik
2013-02-22 20:33 ` Achim Gratz
2013-02-22 20:59 ` Carsten Dominik
2013-02-23 8:10 ` Bastien
2013-02-23 12:26 ` Achim Gratz
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=87ehgeafta.fsf@Rainer.invalid \
--to=stromeko@nexgo.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).