Bugfix: Fix bug-reference-bug-regexp to work with latest Emacs

This commit is contained in:
Gergely Polonkai 2022-12-18 06:19:19 +01:00
parent d377bec138
commit 5494a70af6
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -2779,8 +2779,13 @@ Intended as a value for `bug-referecne-url-format'."
(use-package bug-reference (use-package bug-reference
:custom :custom
(bug-reference-bug-regexp (rx (group (in ?! ?#)) (bug-reference-bug-regexp (rx (group word-boundary
(group (+ digit)))) (: (| (: (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) (bug-reference-url-format #'my-gitlab-url)
:hook :hook
(text-mode . bug-reference-mode) (text-mode . bug-reference-mode)