From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daimrod Subject: Re: org-elements-parse-buffer and weird property drawers Date: Tue, 02 Sep 2014 11:42:10 +0200 Message-ID: <87fvgagxzh.fsf@tanger.home> References: <87r3zxzwgz.fsf@ithaka.home> <874mwtvvo6.fsf@nicolasgoaziou.fr> <87ha0szu5b.fsf@ithaka.home> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOkbT-00007R-M1 for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 05:42:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOkbO-0006uu-BJ for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 05:42:19 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:53805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOkbO-0006ue-5F for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 05:42:14 -0400 Received: by mail-wg0-f52.google.com with SMTP id m15so6564589wgh.35 for ; Tue, 02 Sep 2014 02:42:13 -0700 (PDT) In-Reply-To: <87ha0szu5b.fsf@ithaka.home> (eike@eknet.org's message of "Sun, 31 Aug 2014 14:59:08 +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: Eike Cc: Eike , org-mode , Nicolas Goaziou Eike writes: > Hello, > > Nicolas Goaziou writes: >> Eike writes: >> >>> I'm playing with the functions in org-elements.el and the following >>> effect seems strange to me: >>> >>> I have a few propery drawers with empty propertys, like >>> >>> #+BEGIN_EXAMPLE >>> :PROPERTIES: >>> :date: [2014-08-29 Fr] >>> :chf: 21.76 >>> :eur: >>> :END: >>> #+END_EXAMPLE >>> >>> If I do org-elements-parse-buffer, the empty one is not there, but the >>> first one is duplicated. At least, there are two node-property >>> elements in the tree like that: >>> >>> #+BEGIN_EXAMPLE >>> (node-property (:key "chf" :value "21.76" :begin 38 :end 58 :post-blank 0 :post-affiliated 38 :parent #4)) >>> (node-property (:key "chf" :value "21.76" :begin 58 :end 67 :post-blank 0 :post-affiliated 58 :parent #4)) >>> #+END_EXAMPLE >>> >>> The function call was this: >>> >>> #+begin_src emacs-lisp >>> (with-current-buffer "test-exp.org" >>> (org-element-parse-buffer)) >>> #+end_src >>> >>> And here is the "test-exp.org" org file: >>> >>> #+BEGIN_EXAMPLE >>> * Sonstiges >>> ** Pizza >>> :PROPERTIES: >>> :chf: 21.76 >>> :eur: >>> :END: >>> #+END_EXAMPLE >> >> This should be fixed. Thank you for reporting it. > > Many thanks! It works here now. Hi, Since the change to `org-re-property' I have problems to display org files. My *Message* buffer is spammed with the following error: Error during redisplay: (jit-lock-function 1119) signaled (error "No match 3 in highlight (3 (quote org-property-value) t)") ^^^^ this number changes I know the problem lies in org-re-property because if I revert the change, it works as it did before. Test file: * TODO Test :PROPERTIES: :TEST: test :END: Best, -- Daimrod/Greg