Subject: Re: [bug#65883] [PATCH] .dir-locals.el: Update bug-reference configuration and document it.

From: Maxim Cournoyer <[email-masked]>
Date: Wed, 20 Sep 2023 11:28:24 -0400

Hello Simon,

Simon Tournier <[email-masked]> writes:

> Hi Maxim,
>
> Sorry to be late to the party.
>
> On Mon, 11 Sep 2023 at 23:44, Maxim Cournoyer <[email-masked]> wrote:
>
>> -     ;; For use with 'bug-reference-prog-mode'.
>> +     ;; For use with 'bug-reference-prog-mode'.  Extra bug-reference
>> +     ;; configuration should be done in your Emacs user configuration file;
>> +     ;; refer to (info (guix) The Perfect Setup).
>>       (bug-reference-bug-regexp
>>        . "\\(<https?://\\bugs\\.gnu\\.org/\\([0-9]+\\)>\\)")
>> -     (bug-reference-url-format . "https://bugs.gnu.org/%s")
>> +     (bug-reference-url-format . "https://issues.guix.gnu.org/%s")
>
> Just to point that in addition, this:
>
>     https://issues.guix.gnu.org/issue/12345
>
> is also valid.
>
>> +(setq bug-reference-url-format "https://bugs.gnu.org/%s")
>> +;; The following allows Emacs Debbugs user to open the issue directly within
>> +;; Emacs.
>> +(setq debbugs-browse-url-regexp
>> +      "^https?://\\(debbugs\\|\\(issues\\.guix\\|bugs\\)\\)\\.gnu\\.org/\
>> +\\(cgi/bugreport\\.cgi\\?bug=\\)?\\(?3:[[:digit:]]+\\)$")
>> +@end lisp
>
> Idem here.

Thanks for pointing these other possibilities.  Unless they are
prominently documented though, I'd maybe opt to leave them out, as their
format simply uses more characters for no added value.

-- 
Thanks,
Maxim