From 5494a70af6acc97d7f43af466b2e747b0498ae0f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 18 Dec 2022 06:19:19 +0100 Subject: [PATCH] Bugfix: Fix bug-reference-bug-regexp to work with latest Emacs --- configuration.org | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configuration.org b/configuration.org index 9734cdd..fb7d3e2 100644 --- a/configuration.org +++ b/configuration.org @@ -2779,8 +2779,13 @@ Intended as a value for `bug-referecne-url-format'." (use-package bug-reference :custom - (bug-reference-bug-regexp (rx (group (in ?! ?#)) - (group (+ digit)))) + (bug-reference-bug-regexp (rx (group word-boundary + (: (| (: (in ?B ?b) "ug" (? " ") (? ?#)) + (: (in ?P ?p) "atch" (? " ") ?#) + (: "RFE" (? " ") ?#) + (: "PR " (+ (any "a-z+-")) "/") + (: "MR" (? " ") (? "!")))) + (group (+ (any "0-9")) (opt (: ?# (+ (any "0-9")))))))) (bug-reference-url-format #'my-gitlab-url) :hook (text-mode . bug-reference-mode)