GNU bug report logs -
#58103
[PATCH] docview: imenu access to table of contents
Previous Next
Reported by: Jose A Ortega Ruiz <jao <at> gnu.org>
Date: Tue, 27 Sep 2022 05:42:01 UTC
Severity: normal
Tags: patch
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tags: patch
Hi,
The patch below provides a quite simple implemetation of an imenu for
doc-view, using mutool. That means of course that is limited to systems
where it's installed, and doesn't try to be too smart, but it's been
working quite well for me. It needs a slight tweak to imenu.el to add a
knob inhibiting it to push all entries with submenus to the top, which
doesn't make sense when those entries represent sections of a TOC.
If this is acceptable (with any needed modification, of course), i guess
we could also add a bit of further customization, like perhaps a "flat
mode", or whether or not the section titles include page numbers, but
i'm not sure if that's desired (in my usage, i never want either).
Cheers,
jao
In GNU Emacs 29.0.50 (build 8, x86_64-pc-linux-gnu, GTK+ Version
3.24.34, cairo version 1.16.0) of 2022-09-26 built on rivendell
Repository revision: adcdea5d159540aa09892f410bd3a5163eebecf2
Repository branch: master
System Description: Debian GNU/Linux bookworm/sid
Configured using:
'configure -C --prefix=/usr/local/stow/pemacs --with-pgtk
--with-imagemagick'
[0001-docview-imenu-access-to-table-of-contents.patch (text/patch, attachment)]
[Message part 3 (text/plain, inline)]
--
Give a man a fish and you feed him for a day. Write a program to fish for him
and you maintain it for a lifetime. - Tim Hopper
This bug report was last modified 2 years and 290 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.