From 1adec31993dc379dc60337245e05010645e4c40b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 14 Aug 2014 14:08:16 +0200 Subject: [PATCH] ox-texinfo: Fix parse tree corruption * lisp/ox-texinfo.el (org-texinfo--normalize-headlines): Properly add a section to the contents. --- lisp/ox-texinfo.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index 2dc77fdef..c4b2ebf8c 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -425,8 +425,9 @@ Return new tree." (let ((first (org-element-map contents '(headline section) #'identity info t))) (unless (eq (org-element-type first) 'section) - (org-element-set-contents - hl (cons `(section (:parent ,hl)) contents))))))) + (apply #'org-element-set-contents + hl + (cons `(section (:parent ,hl)) contents))))))) info) tree) -- 2.11.4.GIT