diff options
author | Ulrich Müller <ulm@gentoo.org> | 2024-11-11 22:48:28 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2024-11-11 22:48:28 +0100 |
commit | 1e5216356931ac5287218f5d4da8356abc952b5d (patch) | |
tree | 4fdfba19410a8812f6e81ab58d029f3a0e7810c4 /test | |
parent | Call rng-locate-schema-file when locating a devbook schema (diff) | |
download | ebuild-mode-1e5216356931ac5287218f5d4da8356abc952b5d.tar.gz ebuild-mode-1e5216356931ac5287218f5d4da8356abc952b5d.tar.bz2 ebuild-mode-1e5216356931ac5287218f5d4da8356abc952b5d.zip |
Allow fragment identifier in bug regexp
* ebuild-mode.el (ebuild-mode-bug-regexp): Allow a fragment
identifier, in order to refer to a specific comment.
* test/ebuild-mode-tests.el (ebuild-mode-test-bug-url): Update.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/ebuild-mode-tests.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ebuild-mode-tests.el b/test/ebuild-mode-tests.el index e81d4c8..9af48f6 100644 --- a/test/ebuild-mode-tests.el +++ b/test/ebuild-mode-tests.el @@ -257,7 +257,8 @@ (lambda (url &rest _args) (setq found url)))) (with-temp-buffer (insert "# abc #876543 xyz\n" - "# bug 765432\n") + "# bug 765432\n" + "# bug #654321#c10\n") (ebuild-mode-test-run-silently (ebuild-mode)) (bug-reference-fontify (point-min) (point-max)) @@ -270,6 +271,10 @@ (bug-reference-push-button (point)) (should (equal found "https://bugs.gentoo.org/765432")) (setq found nil) + (search-forward "bug") + (bug-reference-push-button (point)) + (should (equal found "https://bugs.gentoo.org/654321#c10")) + (setq found nil) (bug-reference-push-button (point-min)) (bug-reference-push-button (point-max)) (should-not found)))) |