From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-elements: list in drawer Date: Wed, 08 Aug 2012 10:02:58 +0200 Message-ID: <878vdpbykt.fsf@gmail.com> References: <87d333b15h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz1Hq-0000ya-HE for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 04:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sz1Hp-00073W-KB for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 04:06:38 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:64984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sz1Hp-00073Q-Dx for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 04:06:37 -0400 Received: by wibhq4 with SMTP id hq4so2674583wib.12 for ; Wed, 08 Aug 2012 01:06:36 -0700 (PDT) In-Reply-To: (Michael Brand's message of "Tue, 7 Aug 2012 21:01:32 +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: Michael Brand Cc: Org Mode Hello, Michael Brand 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 =E2=80=9C:MYDRAWER:=E2=80=9D and =E2=80=9C:END:=E2=80=9D 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 =E2=80=9Cdrawer=E2=80=9D is inside the list and I miss =E2=80=9Citem= =E2=80=9D and its =E2=80=9Cparagraph=E2=80=9D: > > #+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, --=20 Nicolas Goaziou