diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-02 17:22:41 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-02 17:22:41 +0200 |
commit | f70e36252ac4eb04c67a60aec7d39515e10277bf (patch) | |
tree | dfdad941c0a0685531e21037b733e5cb5a56e036 | |
parent | a0a87d55cbfea043a55e484e262c48b8fcdfdb47 (diff) | |
parent | 093c94e31b875107e749449ba0c44e5719c120f8 (diff) | |
download | org-mode-f70e36252ac4eb04c67a60aec7d39515e10277bf.tar.gz |
Merge branch 'maint'
-rw-r--r-- | lisp/ox-texinfo.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index 22e93c9..5d09cc2 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -1233,13 +1233,13 @@ holding contextual information." :texinfo-entries-cache))) (cached-entries (gethash scope cache 'no-cache))) (if (not (eq cached-entries 'no-cache)) cached-entries - (let ((sections (org-texinfo--sectioning-structure info))) + (let* ((sections (org-texinfo--sectioning-structure info)) + (max-depth (length sections))) (puthash scope (cl-remove-if (lambda (h) (or (org-not-nil (org-export-get-node-property :COPYING h t)) - (>= (org-export-get-relative-level h info) - (length sections)))) + (< max-depth (org-export-get-relative-level h info)))) (org-export-collect-headlines info 1 scope)) cache))))) |