emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-elements: list in drawer


From: Nicolas Goaziou
Subject: Re: [O] org-elements: list in drawer
Date: Wed, 08 Aug 2012 10:02:58 +0200

Hello,

Michael Brand <address@hidden> writes:

> The drawer contains one list with one item, on one single long line
> before filling. I want to fill it into several lines, just like it
> happens when “:MYDRAWER:” and “:END:” are removed before.

I get it now.  It should be fixed.  Thanks you for the detailed report.

>> Why does `org-element-at-point' look wrong?
>
> The “drawer” is inside the list and I miss “item” and its “paragraph”:
>
> #+BEGIN_SRC emacs-lisp
>   (plain-list
>    (:type unordered :begin 32 :end 135
>           :contents-begin 32 :contents-end 134 :structure
>           ((32 0 "- " nil nil nil 134))
>           :post-blank 1 :parent
>           (drawer
>            (:begin 21 :end 141 :drawer-name "MYDRAWER" :hiddenp nil
>                    :contents-begin 32 :contents-end 135
>                    :post-blank 0 :parent nil))))
> #+END_SRC

The drawer isn't inside the list, it is the value of its `:parent'
property.  Also, `org-element-at-point' doesn't parse contents, so
there's no reason that there would be the item and the paragraph.

Obviously, `org-element-at-point' output depends on the position of
point. Try various positions in the same line and you will get,
consistently, `plain-list', `item' and `paragraph' elements.


Regards,

-- 
Nicolas Goaziou



reply via email to

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