]> git.eshelyaron.com Git - emacs.git/commit
Refactor bug-reference setup for software forges
authorTassilo Horn <tsdh@gnu.org>
Sat, 11 Sep 2021 20:49:29 +0000 (22:49 +0200)
committerTassilo Horn <tsdh@gnu.org>
Sat, 11 Sep 2021 20:49:29 +0000 (22:49 +0200)
commit6e60e746535e74d49f4a61b78a7844fa221dbba8
tree60463ccfb53abd987587147d37b27d60109ced12
parentd5c6f701a64413667fb573e12e05b89f8704c3f7
Refactor bug-reference setup for software forges

* lisp/progmodes/bug-reference.el (bug-reference-gitea-instances)
(bug-reference-gitlab-instances,bug-reference-sourcehut-instances):
Delete defvars.  Those are replaced with bug-reference-forge-alist.
(bug-reference-forge-alist): New variable.
(bug-reference--build-forge-setup-entry): New cl-defgeneric with
methods for github, gitlab, gitea, and sourcehut instances.
(bug-reference--setup-from-vc-alist): Use bug-reference-forge-alist
and bug-reference--build-forge-setup-entry.
* doc/emacs/maintaining.texi (Bug Reference): Mention that the first
group in bug-reference-bug-regexp defines the overlay bounds.  Also
mention bug-reference-forge-alist in VCS setup section.
doc/emacs/maintaining.texi
lisp/progmodes/bug-reference.el