From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Exzessive newlines in org-element item interpreter? Date: Sun, 19 Oct 2014 08:45:49 +0200 Message-ID: <87k33w36ci.fsf@nicolasgoaziou.fr> References: <87tx312j04.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfkEt-00079Y-8H for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 02:45:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfkEj-0004do-2z for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 02:45:15 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:48191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfkEi-0004Zt-Tn for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 02:45:05 -0400 In-Reply-To: <87tx312j04.fsf@gmail.com> (Thorsten Jolitz's message of "Sat, 18 Oct 2014 22:57:47 +0200") 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: Thorsten Jolitz Cc: emacs-orgmode@gnu.org Hello, Thorsten Jolitz writes: > Hi List, > > evaluating this > > #+BEGIN_SRC emacs-lisp > (org-element-interpret-data > '(item (:bullet "1" :tag "hello" :checkbox "trans" :counter 2) > (section nil "world"))) > #+END_SRC > > #+results: > : 1. [@2] hello :: > : world > > the content is always placed on a newline, which looks strange in my > eyes. Is that intended? It is. You include a `section' in an `item', which is syntactically wrong. Only headlines can contain sections. > PS > and checkbox is ignored, no matter if I give 'on, 'off and 'trans as > symbols or strings. You should not provide 'on, 'off or 'trans, and even less strings, but on, off or trans since your expression is already quoted. Regards, -- Nicolas Goaziou