From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: bug in org-element-parse-buffer, affects new HTML exporter Date: Mon, 10 Sep 2012 17:34:22 -0600 Message-ID: <87har5v4e9.fsf@gmx.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBDUv-0002Qf-Ks for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 19:34:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBDUu-0001IO-FD for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 19:34:33 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:36544) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TBDUu-0001I6-8m for emacs-orgmode@gnu.org; Mon, 10 Sep 2012 19:34:32 -0400 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: Org Mode Mailing List Hi, Save the following text to an Org-mode file, - one :: first - two :: - second - three :: third and then call the `org-element-parse-buffer' function from within that buffer. The following error will result. This breaks the new export engine for buffers containing text like the above. Thanks, ,---- | Debugger entered--Lisp error: (wrong-type-argument stringp nil) | string-match("[[:alnum:]]" nil) | org-list-get-list-type(25 ((1 0 "- " nil nil "one" 16) (16 0 "- " nil nil "two" 34) (34 0 "- " nil nil "three" 51)) ((1) (16 . 1) (34 . 16))) | org-element-plain-list-parser(34 ((1 0 "- " nil nil "one" 16) (16 0 "- " nil nil "two" 34) (34 0 "- " nil nil "three" 51))) | org-element--current-element(34 nil nil ((1 0 "- " nil nil "one" 16) (16 0 "- " nil nil "two" 34) (34 0 "- " nil nil "three" 51))) | org-element--parse-elements(25 34 nil ((1 0 "- " nil nil "one" 16) (16 0 "- " nil nil "two" 34) (34 0 "- " nil nil "three" 51)) nil nil (item (:bullet "- " :begin 16 :end 34 :contents-begin 25 :contents-end 34 :checkbox nil :counter nil :hiddenp nil :structure ((1 0 "- " nil nil "one" 16) (16 0 "- " nil nil "two" 34) (34 0 "- " nil nil "three" 51)) :post-blank 0 :tag ("two")))) | org-element--parse-elements(1 51 item ((1 0 "- " nil nil "one" 16) (16 0 "- " nil nil "two" 34) (34 0 "- " nil nil "three" 51)) nil nil (plain-list (:type descriptive :begin 1 :end 51 :contents-begin 1 :contents-end 51 :structure ((1 0 "- " nil nil "one" 16) (16 0 "- " nil nil "two" 34) (34 0 "- " nil nil "three" 51)) :post-blank 0) (item (:bullet "- " :begin 1 :end 16 :contents-begin 10 :contents-end 16 :checkbox nil :counter nil :hiddenp nil :structure ((1 0 "- " nil nil "one" 16) (16 0 "- " nil nil "two" 34) (34 0 "- " nil nil "three" 51)) :post-blank 0 :tag ("one") :parent #0) (paragraph (:begin 10 :end 16 :contents-begin 10 :contents-end 16 :post-blank 0 :parent #1) "first\n")))) | org-element--parse-elements(1 51 nil nil nil nil (section (:begin 1 :end 51 :contents-begin 1 :contents-end 51 :post-blank 0))) | org-element--parse-elements(1 51 first-section nil nil nil (org-data nil)) | org-element-parse-buffer() | eval((org-element-parse-buffer) nil) | eval-expression((org-element-parse-buffer) nil) | call-interactively(eval-expression nil nil) `---- -- Eric Schulte http://cs.unm.edu/~eschulte