emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Exzessive newlines in org-element item interpreter?


From: Thorsten Jolitz
Subject: Re: [O] Exzessive newlines in org-element item interpreter?
Date: Sun, 19 Oct 2014 10:04:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Thorsten Jolitz <address@hidden> writes:

> Nicolas Goaziou <address@hidden> 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:
: - address@hidden [-] hello  :: world

#+BEGIN_SRC emacs-lisp
(org-element-interpret-data
  '(item (:bullet "+" :tag "hello " :checkbox trans :counter 2)
   (paragraph  nil "world")))
#+END_SRC

#+results:
: - address@hidden [-] 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. address@hidden [-] hello  :: world

-- 
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]