aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorVisuwesh2024-10-02 13:48:25 +0530
committerTassilo Horn2024-10-04 07:27:13 +0200
commitd6dd71cd56e73aaf998d27225249edf661ead488 (patch)
tree69df9aee11704a9964d986f937b272f857a79f60 /doc
parent5e0935d9917fe768f74311c6cb4dc3a1e9014c52 (diff)
downloademacs-d6dd71cd56e73aaf998d27225249edf661ead488.tar.gz
emacs-d6dd71cd56e73aaf998d27225249edf661ead488.zip
Add imenu index function for DjVu files in doc-view
* lisp/doc-view.el (doc-view-pdfdraw-program): Prefer mutool over other names. (doc-view-imenu-enabled): Tweak the default value to check for 'djvused', and make it obsolete. (doc-view--djvu-outline, doc-view--parse-djvu-outline): Add new functions to return imenu index for a Djvu file. (doc-view--outline): Add new function to create the imenu index depending on the file type. (doc-view--outline): Document new possible variable value. (doc-view-imenu-index): Use the above function instead. (doc-view-imenu-setup): Try to create the imenu index unconditionally. * doc/emacs/misc.texi (DocView Navigation): Mention index creation using 'djvused' too. * etc/NEWS: Announce the change. (Bug#73530)
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/misc.texi18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index b074eb034b2..7b11a829b0b 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -581,17 +581,17 @@ you instead want the image to be re-rendered at the new size, set
581default size for DocView, customize the variable 581default size for DocView, customize the variable
582@code{doc-view-resolution}. 582@code{doc-view-resolution}.
583 583
584@vindex doc-view-imenu-enabled
585@vindex doc-view-imenu-flatten 584@vindex doc-view-imenu-flatten
586@vindex doc-view-imenu-format 585@vindex doc-view-imenu-format
587 When the @command{mutool} program is available, DocView will use it 586@vindex doc-view-djvused-program
588to generate entries for an outline menu, making it accessible via the 587 DocView can generate an outline menu for PDF and DjVu documents using
589@code{imenu} facility (@pxref{Imenu}). To disable this functionality 588the @command{mutool} and the @command{djvused} programs respectively
590even when @command{mutool} can be found on your system, customize the 589when they are available. This is made accessible via the @code{imenu}
591variable @code{doc-view-imenu-enabled} to the @code{nil} value. You 590facility (@pxref{Imenu}). You can customize how @code{imenu} items are
592can further customize how @code{imenu} items are formatted and 591formatted and displayed using the variables @code{doc-view-imenu-format}
593displayed using the variables @code{doc-view-imenu-format} and 592and @code{doc-view-imenu-flatten}. The filename of the
594@code{doc-view-imenu-flatten}. 593@command{djvused} program can be customized by changing the
594@code{doc-view-djvused-program} user option.
595 595
596@cindex registers, in DocView mode 596@cindex registers, in DocView mode
597@findex doc-view-page-to-register 597@findex doc-view-page-to-register