As my pet project, I'm contemplating to connect Sphinx search tools with Info pages. In order to index these pages with Sphinx, I'd need them to be in plain text format and divided into nodes (i.e. I'd like to index every node separately). After some reading, I can't find a simple way of getting a list of all nodes, did I miss anything?
Actually, what I want is like
(Info-directory), except I only need the list of the nodes, not the whole buffer with decoration and sectioning.
Actually, this is what I ended up doing:
(defun sphinx-info-nodes () (let ((tmp-file (make-temp-file "info"))) (shell-command (format "info --subnodes -o '%s'" tmp-file)) (with-temp-buffer (insert-file-contents tmp-file) (cl-loop while (re-search-forward "^\\*\\s-*\\([^:]+\\):" nil t) collect (match-string 1)))))