From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Exzessive newlines in org-element item interpreter? Date: Sun, 19 Oct 2014 10:04:37 +0200 Message-ID: <87k33w7aei.fsf@gmail.com> References: <87tx312j04.fsf@gmail.com> <87k33w36ci.fsf@nicolasgoaziou.fr> <87vbng7cf3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XflU3-0000Mn-WD for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 04:05:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XflTx-0000sk-TT for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 04:04:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:43107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XflTx-0000se-Mu for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 04:04:53 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XflTv-0005L4-R0 for emacs-orgmode@gnu.org; Sun, 19 Oct 2014 10:04:51 +0200 Received: from e178191179.adsl.alicedsl.de ([85.178.191.179]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Oct 2014 10:04:51 +0200 Received: from tjolitz by e178191179.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Oct 2014 10:04:51 +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: emacs-orgmode@gnu.org Thorsten Jolitz writes: > Nicolas Goaziou writes: [...] >> You should not provide 'on, 'off or 'trans, and even less strings, but >> on, off or trans since your expression is already quoted. One more question: bullet strings are parsed 'as-is', but the interpreter seems to have its own logic that is a bit difficult to grok (or are there syntax errors too?): #+BEGIN_SRC emacs-lisp (org-element-interpret-data '(item (:bullet "-" :tag "hello " :checkbox trans :counter 2) (paragraph nil "world"))) #+END_SRC #+results: : - [@2] [-] hello :: world #+BEGIN_SRC emacs-lisp (org-element-interpret-data '(item (:bullet "+" :tag "hello " :checkbox trans :counter 2) (paragraph nil "world"))) #+END_SRC #+results: : - [@2] [-] hello :: world #+BEGIN_SRC emacs-lisp (setq org-list-allow-alphabetical t) (when (featurep 'org-element) (load "org-element" t t)) (org-element-interpret-data '(item (:bullet "a" :tag "hello " :checkbox trans :counter 2) (paragraph nil "world"))) #+END_SRC #+results: : 1. [@2] [-] hello :: world -- cheers, Thorsten