emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Thierry Banel <tbanelwebmin@free.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: make orgtbl-ascii-plot easier to install
Date: Wed, 27 Aug 2014 00:09:37 +0200	[thread overview]
Message-ID: <87r402oqce.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <53FCFF47.4060805@free.fr> (Thierry Banel's message of "Tue, 26 Aug 2014 23:42:31 +0200")

Thierry Banel <tbanelwebmin@free.fr> writes:

> Do you recommend to stay away from CL & CL-LIB for ORG stuff ?
> `DOLIST' comes from CL as well...

Actually, `dolist' is a macro from "subr.el", which is then shadowed by
`cl-dolist', so there's no problem here.

BTW, you can use macros from cl (cl-lib doesn't exist in Emacs 23), not
so functions.

>     
>         IOW, you need to eliminate the leading 'hline, if any,and skip until
> the next 'hline if there is one and if there is something after it.
>
> Ok. Not completely fool-proof, but better.
>
>     
> Do you think of another case that wouldn't be covered by this?
>
> 1st case: a header and several hlines.
> In this case, values 1,2,3 will be ignored.
>
> | header |
> |--------| <-- leading hline: skipped
> | 1 |
> | 2 |
> | 3 |
> |--------| <-- next hline: ignore whatever is before
> | 4 |
> | 5 |
> | 6 |

I wasn't clear. A "leading hline" is when the very first row is a hline
(or worse consecutive hlines start the table). In the example above,
there is no such leading hline, so you don't eliminate it. Therefore,
only header will be skipped.

> 2nd case: no header at all, values in boxes.
> Values 1,2,3 will be ignored as well.
>
> |--------| <-- leading hline: skipped
> | 1 |
> | 2 |
> | 3 |
> |--------| <-- next hline: ignore whatever is before
> | 4 |
> | 5 |
> | 6 |
> |--------| <-- last hline

There is a header. By definition, anything in the first column group is
a header. There is no limitations on the number of rows involved.

It may be a bit surprising, but this is consistent with the rest of Org.

> The only ill-interpreted case is this one, with no header.
> The first values are considered as headers:
>
> |---+----|
> | 3 | | <-- formula not applied
> | 4 | | <-- formula not applied
> |---+----|
> | 5 | 50 |
> | 6 | 60 |
> |---+----|
> #+TBLFM: $2=$1*10

See above.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2014-08-26 22:09 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-13 16:02 make orgtbl-ascii-plot easier to install Thierry Banel
2014-07-28 14:40 ` Bastien
2014-08-10 22:22   ` Thierry Banel
2014-08-26  8:29     ` Nicolas Goaziou
2014-08-26 19:52       ` Thierry Banel
2014-08-26 20:27         ` Nicolas Goaziou
2014-08-26 21:42           ` Thierry Banel
2014-08-26 22:09             ` Nicolas Goaziou [this message]
2014-08-26 22:21               ` Thierry Banel
2014-08-27 21:35               ` Thierry Banel
2014-08-27 23:28                 ` Nicolas Goaziou
2014-08-28 20:46                   ` Thierry Banel
2014-08-29  9:54                     ` Nicolas Goaziou
2014-08-29 17:20                       ` Thierry Banel
2014-09-02 21:53                       ` [PATCH] " Thierry Banel
2014-09-03 18:22                         ` Nicolas Goaziou
2014-09-03 20:10                           ` A key-binding for plotting Thierry Banel
2014-09-06 14:35                           ` [PATCH] remap orgtbl-ascii-plot to C-c # Thierry Banel
2014-09-08 16:30                             ` Nicolas Goaziou
2014-09-13 17:06                               ` key-binding for all plotting styles Thierry Banel
2014-10-07 14:15                                 ` Nicolas Goaziou
2014-10-07 21:40                                   ` Thierry Banel
2014-10-11 17:46                                   ` [PATCH] " Thierry Banel
2014-10-12  9:28                                     ` Nicolas Goaziou
2014-10-12 10:00                                       ` Thierry Banel
2014-10-12 14:05                                       ` Thierry Banel
2014-10-13 16:24                                         ` Nicolas Goaziou
2014-10-13 21:16                                           ` Thierry Banel
2014-10-14 20:48                                           ` Thierry Banel
2014-10-14 21:08                                             ` Nicolas Goaziou
2014-10-14 21:26                                               ` Thierry Banel

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=87r402oqce.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=tbanelwebmin@free.fr \
    /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).