(org-element-map (plist-get info :parse-tree) 'headline
(lambda (copy)
(when (org-element-property :copying copy)
- (push copy copying))) info 't)
+ (push copy copying))) info t)
;; Retrieve the single entry
(car copying)))
;; Is exported as-is (value)
((org-element-map contents '(verbatim code)
(lambda (value)
- (org-element-property :value value))))
+ (org-element-property :value value)) info))
;; Has content and recurse into the content
((org-element-contents contents)
(org-e-texinfo--sanitize-headline-contents
;; Do not take note of footnotes or copying headlines
(not (org-element-property :copying head))
(not (org-element-property :footnote-section-p head)))
- (push head seq)))))
+ (push head seq))))
+ info)
;; Return the list of headlines (reverse to have in actual order)
(reverse seq)))
(lambda (ref)
(if (member title (org-element-property :title ref))
(push ref heading)))
- info 't))
+ info t))
(setq listing (org-e-texinfo--build-menu
(car heading) level info))
(if listing
(top (org-element-map
parse 'headline
(lambda (headline)
- (org-element-property :level headline)) info 't)))
+ (org-element-property :level headline)) info t)))
(cond
;; Generate the main menu
((eq level 'main)
a communication channel."
(let* ((rows (org-element-map table 'table-row 'identity info))
(collected (loop for row in rows collect
- (org-element-map
- row 'table-cell 'identity info)))
+ (org-element-map row 'table-cell 'identity info)))
(number-cells (length (car collected)))
cells counts)
(loop for row in collected do