Function: org-texinfo-make-menu
org-texinfo-make-menu is a byte-compiled function defined in
ox-texinfo.el.gz.
Signature
(org-texinfo-make-menu SCOPE INFO &optional MASTER)
Documentation
Create the menu for inclusion in the Texinfo document.
SCOPE is a headline or a full parse tree. INFO is the communication channel, as a plist.
When optional argument MASTER is non-nil, generate a master menu, including detailed node listing.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-texinfo.el.gz
;;;; Menu
(defun org-texinfo-make-menu (scope info &optional master)
"Create the menu for inclusion in the Texinfo document.
SCOPE is a headline or a full parse tree. INFO is the
communication channel, as a plist.
When optional argument MASTER is non-nil, generate a master menu,
including detailed node listing."
(let ((menu (org-texinfo--build-menu scope info)))
(when (org-string-nw-p menu)
(org-element-normalize-string
(format
"@menu\n%s@end menu"
(concat menu
(when master
(let ((detailmenu
(org-texinfo--build-menu
scope info
(let ((toc-depth (plist-get info :with-toc)))
(if (wholenump toc-depth) toc-depth
org-texinfo-max-toc-depth)))))
(when (org-string-nw-p detailmenu)
(concat "\n@detailmenu\n"
"--- The Detailed Node Listing ---\n\n"
detailmenu
"@end detailmenu\n"))))))))))