Bugfix: Fix bug-reference-bug-regexp to work with latest Emacs
This commit is contained in:
parent
d377bec138
commit
5494a70af6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user