From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: org-elements: list in drawer Date: Tue, 7 Aug 2012 21:01:32 +0200 Message-ID: References: <87d333b15h.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syp27-0001KZ-GX for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 15:01:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Syp26-000080-E9 for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 15:01:35 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:46722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syp26-00007r-7b for emacs-orgmode@gnu.org; Tue, 07 Aug 2012 15:01:34 -0400 Received: by weys10 with SMTP id s10so3409743wey.0 for ; Tue, 07 Aug 2012 12:01:33 -0700 (PDT) In-Reply-To: <87d333b15h.fsf@gmail.com> 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: Nicolas Goaziou Cc: Org Mode Hi Nicolas On Tue, Aug 7, 2012 at 9:40 AM, Nicolas Goaziou wrote= : >> ,:MYDRAWER: >> ,- a paragraph longer than one line, a paragraph longer than one >> line, a paragraph longer than one line >> ,:END: >> #+END_SRC > > What do you want to fill here? Theres a an item on a single line, then > a paragraph outside the list below. The Org source block was chosen here to show with the comma where a line starts really in Org and where it has been wrapped by email. 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 =93:MYDRAWER:=94 and =93:END:=94 are removed before. >> org-fill-paragraph recognizes a plain list but I think it should be a >> paragraph, like when without the drawer. org-element-parse-buffer >> looks to me as I would expect, org-element-at-point on the list item >> looks wrong to me. > > I don't understand. What should be a paragraph? The =93paragraph=94 from `org-element-parse-buffer', here the excerpt of the drawer content: #+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 #2) (item (:bullet "- " :begin 32 :end 134 :contents-begin 34 :contents-end 135 :checkbox nil :counter nil :hiddenp nil :structure ((32 0 "- " nil nil nil 134)) :post-blank 1 :tag nil :parent #3) (paragraph (:begin 34 :end 135 :contents-begin 34 :contents-end 135 :post-blank 0 :parent #4) "a paragraph longer [...] longer than one line\n"))) #+END_SRC > Why does `org-element-at-point' look wrong? The =93drawer=94 is inside the list and I miss =93item=94 and its =93paragr= aph=94: #+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 I thought that it should be exactly the same as the excerpt shown above. Michael