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

From: brian <[email-masked]>
Date: Tue, 12 Sep 2023 10:34:17 -0400

Maxim Cournoyer <[email-masked]> writes:

> +(setq debbugs-browse-url-regexp
> +      "^https?://\\(debbugs\\|\\(issues\\.guix\\|bugs\\)\\)\\.gnu\\.org/\
> +\\(cgi/bugreport\\.cgi\\?bug=\\)?\\(?3:[[:digit:]]+\\)$")
> +@end lisp

While I'm at it, here's the ‘rx’ form of the above:
--8<---------------cut here---------------start------------->8---
(setq debbugs-browse-url-regexp
      (rx
       line-start
       "http" (zero-or-one "s") "://"
       (or "debbugs" "issues.guix" "bugs")
       ".gnu.org" (one-or-more "/")
       (group (zero-or-one "cgi/bugreport.cgi?bug="))
       (group-n 3 (one-or-more digit))
       line-end))
--8<---------------cut here---------------end--------------->8---

-bjc