From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: New tutorial on using Emacs lisp for Org spreadsheet formulas Date: Wed, 01 Feb 2012 13:39:50 +0100 Message-ID: <87mx92sp61.fsf@gmail.com> References: <87r4yfixpk.fsf@gnu.org> <87ipjren76.fsf@Rainer.invalid> <87aa53u0rz.fsf@gmail.com> <87pqdzhca1.fsf@Rainer.invalid> <87sjivsiax.fsf@gmail.com> <87pqdzt6em.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsZVj-0006UV-CM for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 07:42:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsZVd-0001BT-As for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 07:42:03 -0500 Received: from mail-ww0-f41.google.com ([74.125.82.41]:55449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsZVd-0001BM-4s for emacs-orgmode@gnu.org; Wed, 01 Feb 2012 07:41:57 -0500 Received: by wgbdt11 with SMTP id dt11so7047546wgb.0 for ; Wed, 01 Feb 2012 04:41:56 -0800 (PST) In-Reply-To: <87pqdzt6em.fsf@Rainer.invalid> (Achim Gratz's message of "Wed, 01 Feb 2012 07:27:29 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org Hello, Achim Gratz writes: > Nicolas Goaziou writes: >> I don't see what is clumsy with affiliated keywords. > > Well, you write the arguments before starting the source block, getting > everything wardbacks (and I don't think that's easier to parse, but you > would know better(*)). I think you're mixing src blocks and Babel. A src block contains, fontifies and allows to edit source code. Babel arguments (or caption, or name) are meta-data that applies to the whole src block element, not to its contents. > Last but not least I can never remember if any of the "#+" stuff is > supposed to end with a ":" Affiliated keywords all do. If one doesn't, it's a bug. > and whether it wants another ":" in front of the arguments or not. That's another topic, and I agree that, at one point or another, we'll have to unify the way parameters are written. IMO, Babel usage is a good standard. > (*) Reminds me I'll have to try what happens if I write header > arguments that are detached from the source block. Devious, I know, > but the manual does not really specify anything. But Org elements does. Affiliated keywords must be attached to their relative element. > If you look carefully, that source block above does not contain a > drawer. It has a (hypothetical) associated multiline header argument > that happens to look and feel like a drawer. Then it's a duck. >> Though, drawers can contain src-blocks. > > Is there any specification that they must fully contain them? You may want to read comments in org-element.el. I also posted some explanations when I announced the library. > Anyway, that was just an idea and if nobody likes it, that's fine with > me, too. I just wanted to let you know that the idea of putting "quasi-drawers" within a src-block is against the model described by the current parser. Regards, -- Nicolas Goaziou