emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug in org-element-parse-buffer, affects new HTML exporter
@ 2012-09-10 23:34 Eric Schulte
  2012-09-12 13:50 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Schulte @ 2012-09-10 23:34 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-12 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-10 23:34 bug in org-element-parse-buffer, affects new HTML exporter Eric Schulte
2012-09-12 13:50 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).