]> git.eshelyaron.com Git - emacs.git/commit
docview: imenu access to table of contents
authorJose A. Ortega Ruiz <jao@gnu.org>
Tue, 27 Sep 2022 11:53:24 +0000 (13:53 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 27 Sep 2022 11:53:24 +0000 (13:53 +0200)
commitb1c1ff9ee110a9fe739dc4407468f3e9b819484c
tree1ea92ee34e0743c3bae827653e38e52b42c36f03
parentfd653f5208e8600166003af41660ce2ad0b6362f
docview: imenu access to table of contents

* lisp/doc-view.el (doc-view-imenu-enabled): user option to disable
imenu generation.
* lisp/doc-view.el (doc-view--outline-rx):
(doc-view--pdf-outline, doc-view--imenu-subtree, doc-view-imenu-index):
functions implementing the imenu index generation via mutool.
* lisp/doc-view.el (doc-view-imenu-setup, doc-view-mode): setup of the
new functionality in doc-view mode.
* lisp/imenu.el (imenu-submenus-on-top):
(imenu--split-menu): new local variable to optionally inhibit
grouping of entries with children at the top of imenu menus.
* doc/emacs/misc.texi: documentation for the new functionality
(bug#58103).
doc/emacs/misc.texi
lisp/doc-view.el
lisp/imenu.el