From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Controlling example block export? Date: Tue, 01 Apr 2014 17:38:15 +0200 Message-ID: <87k3b9njq0.fsf@gmail.com> References: <87k3b9mkcb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV0l8-0001hk-4D for emacs-orgmode@gnu.org; Tue, 01 Apr 2014 11:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WV0l2-0001E9-9c for emacs-orgmode@gnu.org; Tue, 01 Apr 2014 11:37:54 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:46707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WV0l2-0001Dx-3f for emacs-orgmode@gnu.org; Tue, 01 Apr 2014 11:37:48 -0400 Received: by mail-wg0-f52.google.com with SMTP id k14so7699033wgh.35 for ; Tue, 01 Apr 2014 08:37:47 -0700 (PDT) In-Reply-To: (Heikki Lehvaslaiho's message of "Tue, 1 Apr 2014 15:40:14 +0300") 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: Heikki Lehvaslaiho Cc: emacs-orgmode@gnu.org, Thorsten Jolitz Hello, Heikki Lehvaslaiho writes: > The org-syntax.html says of blocks: > > #+BEGIN_NAME PARAMETERS > CONTENTS > #+END_NAME > > NAME can contain any non-whitespace character. > PARAMETERS can contain any character other than new line, and can be > omitted. > If NAME is "CENTER", it will be a "center block". If it is "QUOTE", it will > be a "quote block". > If the block is neither a center block, a quote block or a block > element, > it will be a "special block". > > That does not seem to be quite true as lisp/org-element.el recognises the > following blocks (perlregexp: /begin_(\w+)/i): Have you looked at: http://orgmode.org/worg/dev/org-syntax.html#Blocks > Note: org-syntax.html needs updating. Possibly. Where? > So, to implement parameters for the EXAMPLE block, relevant code has to be > added to the exporter. That's a nontrivial task to do consistently. For now, there is no need for that. > Incidentally, the solution to my immediate problem is the COMMENT block. > Its contents are completely ignored and not passed to exporters. This is the purpose of comments. Regards, -- Nicolas Goaziou