From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: org-elements: list in drawer Date: Wed, 8 Aug 2012 21:45:40 +0200 Message-ID: References: <87d333b15h.fsf@gmail.com> <878vdpbykt.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]:51396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzCCP-0007GD-6u for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 15:45:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzCCN-0000Cs-0x for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 15:45:45 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:62027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzCCM-0000Aq-PX for emacs-orgmode@gnu.org; Wed, 08 Aug 2012 15:45:42 -0400 Received: by weys10 with SMTP id s10so828946wey.0 for ; Wed, 08 Aug 2012 12:45:41 -0700 (PDT) In-Reply-To: <878vdpbykt.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 Wed, Aug 8, 2012 at 10:02 AM, Nicolas Goaziou wrot= e: > I get it now. It should be fixed. Thanks you for the detailed report. I can confirm, thank you. >> #+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. Oh, now I see. It seems that I have to not read over too many of the =93details=94 of the output of `pp-to-string' (pretty print). Is there a way to pretty print so that a property value never starts a line and leaves its property name alone at the end of the previous line? > 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. Ok, clear. My wrong expectation was that it would return the element at point including the complete subtree of the structure. Michael