GNU bug report logs -
#58131
[PATCH] docview: new customization options for imenu
Previous Next
Reported by: Jose A Ortega Ruiz <jao <at> gnu.org>
Date: Wed, 28 Sep 2022 02:22: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
View this message in rfc822 format
> From: Jose A Ortega Ruiz <jao <at> gnu.org>
> Date: Wed, 28 Sep 2022 03:21:31 +0100
>
> A follow up to bug#58103 with a little fix for section title extraction
> and a couple of easy to implement customizable options. I've tried to
> document them clearly enough in the docstrings and then just mention
> their existence in the manual: is that a good practice or do we prefer
> some duplication?
It's a possibility. But if you have nothing of essence to say about a
variable, why mention it in the manual at all? We don't need to
mention every user option in the manual, only the important ones. We
expect users who want to use a package to review its options (e.g., bu
"M-x customize-group") and decide which ones they want to change from
the default.
> +(defcustom doc-view-imenu-title-format "%t (%p)"
> + "Format string for document section titles in imenu.
> +
> +The special markers '%t' and '%p' are replaced by the section
> +title and page number in this format string, which uses
> +`format-spec'.
Will users immediately understand what you mean by "document section
title" here? If no, perhaps a sentence explaining what that is would
be beneficial.
> +(defcustom doc-view-imenu-flatten nil
> + "Whether to generate a flat list of sections instead of a nested tree."
This doesn't mention imenu in the doc string; should it?
This bug report was last modified 2 years and 295 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.