aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBasil L. Contovounesios2024-04-13 10:36:50 +0200
committerBasil L. Contovounesios2024-04-13 10:36:50 +0200
commitf0300fb0597225762ac6e62eeec4e223a7ad1df9 (patch)
tree8260f2626c8b01de763b1d855d5980f0dd8b1f7d
parentea62a14ea3b7f3f6feb0c7c803eeabe3c8499276 (diff)
downloademacs-f0300fb0597225762ac6e62eeec4e223a7ad1df9.tar.gz
emacs-f0300fb0597225762ac6e62eeec4e223a7ad1df9.zip
; Tweak "(emacs)Bug Reference" formatting/wording.
-rw-r--r--doc/emacs/maintaining.texi51
1 files changed, 27 insertions, 24 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index 14bdbc57f14..b22aa018292 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -3333,29 +3333,30 @@ merge requests resulting in different URLs.
3333 3333
3334@vindex bug-reference-auto-setup-functions 3334@vindex bug-reference-auto-setup-functions
3335If @code{bug-reference-mode} is activated, 3335If @code{bug-reference-mode} is activated,
3336@code{bug-reference-mode-hook} has been run and still 3336@code{bug-reference-mode-hook} has been run, and either
3337@code{bug-reference-bug-regexp}, and @code{bug-reference-url-format} 3337@code{bug-reference-bug-regexp} or @code{bug-reference-url-format} is
3338aren't both set, it'll try to setup suitable values for these two 3338still @code{nil}, the mode will try to automatically find a suitable
3339variables itself by calling the functions in 3339value for these two variables by calling the functions in
3340@code{bug-reference-auto-setup-functions} one after the other until 3340@code{bug-reference-auto-setup-functions} one by one until one
3341one is able to set the variables. 3341succeeds.
3342 3342
3343@vindex bug-reference-setup-from-vc-alist 3343@vindex bug-reference-setup-from-vc-alist
3344@vindex bug-reference-forge-alist 3344@vindex bug-reference-forge-alist
3345@vindex bug-reference-setup-from-mail-alist 3345@vindex bug-reference-setup-from-mail-alist
3346@vindex bug-reference-setup-from-irc-alist 3346@vindex bug-reference-setup-from-irc-alist
3347 Right now, there are three types of setup functions. 3347Right now, there are three types of setup functions.
3348
3348@enumerate 3349@enumerate
3349@item 3350@item
3350Setup for version-controlled files configurable by the variables 3351Setup for version-controlled files configurable by the variables
3351@code{bug-reference-forge-alist}, and 3352@code{bug-reference-forge-alist}, and
3352@code{bug-reference-setup-from-vc-alist}. The defaults are able to 3353@code{bug-reference-setup-from-vc-alist}. The defaults are able to
3353setup GNU projects where @url{https://debbugs.gnu.org} is used as 3354set up GNU projects where @url{https://debbugs.gnu.org} is used as
3354issue tracker and issues are usually referenced as @code{bug#13} (but 3355issue tracker and issues are usually referenced as @code{bug#13} (but
3355many different notations are considered, too), and several kinds of 3356many different notations are considered, too), as well as several
3356modern software forges such as GitLab, Gitea, SourceHut, or GitHub. 3357other kinds of software forges such as GitLab, Gitea, SourceHut, and
3357If you deploy a self-hosted instance of such a forge, the easiest way 3358GitHub. If you deploy a self-hosted instance of such a forge, the
3358to tell bug-reference about it is through 3359easiest way to tell bug-reference about it is through
3359@code{bug-reference-forge-alist}. 3360@code{bug-reference-forge-alist}.
3360 3361
3361@item 3362@item
@@ -3372,7 +3373,7 @@ Rcirc, @xref{Top, Rcirc,, rcirc, The Rcirc Manual}, and ERC,
3372@end enumerate 3373@end enumerate
3373 3374
3374For almost all of those modes, it's enough to simply enable 3375For almost all of those modes, it's enough to simply enable
3375@code{bug-reference-mode}, only Rmail requires a slightly different 3376@code{bug-reference-mode}; only Rmail requires a slightly different
3376setup. 3377setup.
3377 3378
3378@smallexample 3379@smallexample
@@ -3403,33 +3404,35 @@ to be performed whenever another messages is displayed.
3403@heading Adding support for third-party packages 3404@heading Adding support for third-party packages
3404 3405
3405@vindex bug-reference-auto-setup-functions 3406@vindex bug-reference-auto-setup-functions
3406Adding support for bug-reference' auto-setup is usually quite 3407Adding support for bug-reference auto-setup is usually quite
3407straight-forward: write a setup function of zero arguments which 3408straightforward: write a setup function of zero arguments which
3408gathers the required information (e.g., List-Id/To/From/Cc mail header 3409gathers the required information (e.g., List-Id/To/From/Cc mail header
3409values in the case of a MUA), and then calls one of the following 3410values in the case of a MUA), and then calls one of the following
3410helper functions: 3411helper functions:
3412
3411@itemize @bullet 3413@itemize @bullet
3412@item 3414@item
3413@code{bug-reference-maybe-setup-from-vc} which does the setup 3415@code{bug-reference-maybe-setup-from-vc}, which does the setup
3414according to @code{bug-reference-setup-from-vc-alist}, 3416according to @code{bug-reference-setup-from-vc-alist};
3415 3417
3416@item 3418@item
3417@code{bug-reference-maybe-setup-from-mail} which does the setup 3419@code{bug-reference-maybe-setup-from-mail}, which does the setup
3418according to @code{bug-reference-setup-from-mail-alist}, 3420according to @code{bug-reference-setup-from-mail-alist}; and
3419 3421
3420@item 3422@item
3421and @code{bug-reference-maybe-setup-from-irc} which does the setup 3423@code{bug-reference-maybe-setup-from-irc}, which does the setup
3422according to @code{bug-reference-setup-from-irc-alist}. 3424according to @code{bug-reference-setup-from-irc-alist}.
3423@end itemize 3425@end itemize
3424A setup function should return non-@code{nil} if it could setup bug-reference 3426
3425mode which is the case if the last thing the function does is calling 3427A setup function should return non-@code{nil} if it could set up
3426one of the helper functions above. 3428bug-reference mode, which is the case if the last thing the function
3429does is call one of the helper functions above.
3427 3430
3428Finally, the setup function has to be added to 3431Finally, the setup function has to be added to
3429@code{bug-reference-auto-setup-functions}. 3432@code{bug-reference-auto-setup-functions}.
3430 3433
3431Note that these auto-setup functions should check as a first step if 3434Note that these auto-setup functions should check as a first step if
3432they are applicable, e.g., by checking the @code{major-mode} value. 3435they are applicable, e.g., by checking the value of @code{major-mode}.
3433 3436
3434 3437
3435@heading Integration with the debbugs package 3438@heading Integration with the debbugs package