emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 6a7aee2c35 034/101: org-texinfo--normalize-headline


From: ELPA Syncer
Subject: [elpa] externals/org 6a7aee2c35 034/101: org-texinfo--normalize-headlines: Use `org-element-create'
Date: Sat, 1 Jul 2023 09:59:03 -0400 (EDT)

branch: externals/org
commit 6a7aee2c3575feaa355621bf47183b340ce881ea
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    org-texinfo--normalize-headlines: Use `org-element-create'
---
 lisp/ox-texinfo.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index 461acd2922..5ed3f51f75 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -502,9 +502,7 @@ Return new tree."
          (let ((first (org-element-map contents '(headline section)
                         #'identity info t)))
            (unless (org-element-type-p first 'section)
-             (apply #'org-element-set-contents
-                    hl
-                    (cons `(section (:parent ,hl)) contents)))))))
+              (org-element-create 'section nil contents))))))
     info)
   tree)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]