diff options
| author | Basil L. Contovounesios | 2024-04-13 10:36:50 +0200 |
|---|---|---|
| committer | Basil L. Contovounesios | 2024-04-13 10:36:50 +0200 |
| commit | f0300fb0597225762ac6e62eeec4e223a7ad1df9 (patch) | |
| tree | 8260f2626c8b01de763b1d855d5980f0dd8b1f7d | |
| parent | ea62a14ea3b7f3f6feb0c7c803eeabe3c8499276 (diff) | |
| download | emacs-f0300fb0597225762ac6e62eeec4e223a7ad1df9.tar.gz emacs-f0300fb0597225762ac6e62eeec4e223a7ad1df9.zip | |
; Tweak "(emacs)Bug Reference" formatting/wording.
| -rw-r--r-- | doc/emacs/maintaining.texi | 51 |
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 |
| 3335 | If @code{bug-reference-mode} is activated, | 3335 | If @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 |
| 3338 | aren't both set, it'll try to setup suitable values for these two | 3338 | still @code{nil}, the mode will try to automatically find a suitable |
| 3339 | variables itself by calling the functions in | 3339 | value 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 |
| 3341 | one is able to set the variables. | 3341 | succeeds. |
| 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. | 3347 | Right now, there are three types of setup functions. |
| 3348 | |||
| 3348 | @enumerate | 3349 | @enumerate |
| 3349 | @item | 3350 | @item |
| 3350 | Setup for version-controlled files configurable by the variables | 3351 | Setup 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 |
| 3353 | setup GNU projects where @url{https://debbugs.gnu.org} is used as | 3354 | set up GNU projects where @url{https://debbugs.gnu.org} is used as |
| 3354 | issue tracker and issues are usually referenced as @code{bug#13} (but | 3355 | issue tracker and issues are usually referenced as @code{bug#13} (but |
| 3355 | many different notations are considered, too), and several kinds of | 3356 | many different notations are considered, too), as well as several |
| 3356 | modern software forges such as GitLab, Gitea, SourceHut, or GitHub. | 3357 | other kinds of software forges such as GitLab, Gitea, SourceHut, and |
| 3357 | If you deploy a self-hosted instance of such a forge, the easiest way | 3358 | GitHub. If you deploy a self-hosted instance of such a forge, the |
| 3358 | to tell bug-reference about it is through | 3359 | easiest 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 | ||
| 3374 | For almost all of those modes, it's enough to simply enable | 3375 | For 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 |
| 3376 | setup. | 3377 | setup. |
| 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 |
| 3406 | Adding support for bug-reference' auto-setup is usually quite | 3407 | Adding support for bug-reference auto-setup is usually quite |
| 3407 | straight-forward: write a setup function of zero arguments which | 3408 | straightforward: write a setup function of zero arguments which |
| 3408 | gathers the required information (e.g., List-Id/To/From/Cc mail header | 3409 | gathers the required information (e.g., List-Id/To/From/Cc mail header |
| 3409 | values in the case of a MUA), and then calls one of the following | 3410 | values in the case of a MUA), and then calls one of the following |
| 3410 | helper functions: | 3411 | helper 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 |
| 3414 | according to @code{bug-reference-setup-from-vc-alist}, | 3416 | according 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 |
| 3418 | according to @code{bug-reference-setup-from-mail-alist}, | 3420 | according to @code{bug-reference-setup-from-mail-alist}; and |
| 3419 | 3421 | ||
| 3420 | @item | 3422 | @item |
| 3421 | and @code{bug-reference-maybe-setup-from-irc} which does the setup | 3423 | @code{bug-reference-maybe-setup-from-irc}, which does the setup |
| 3422 | according to @code{bug-reference-setup-from-irc-alist}. | 3424 | according to @code{bug-reference-setup-from-irc-alist}. |
| 3423 | @end itemize | 3425 | @end itemize |
| 3424 | A setup function should return non-@code{nil} if it could setup bug-reference | 3426 | |
| 3425 | mode which is the case if the last thing the function does is calling | 3427 | A setup function should return non-@code{nil} if it could set up |
| 3426 | one of the helper functions above. | 3428 | bug-reference mode, which is the case if the last thing the function |
| 3429 | does is call one of the helper functions above. | ||
| 3427 | 3430 | ||
| 3428 | Finally, the setup function has to be added to | 3431 | Finally, the setup function has to be added to |
| 3429 | @code{bug-reference-auto-setup-functions}. | 3432 | @code{bug-reference-auto-setup-functions}. |
| 3430 | 3433 | ||
| 3431 | Note that these auto-setup functions should check as a first step if | 3434 | Note that these auto-setup functions should check as a first step if |
| 3432 | they are applicable, e.g., by checking the @code{major-mode} value. | 3435 | they 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 |