From eed6d9058613dcaf27df280930eae5df632ec358 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 22 Feb 2023 00:32:35 +0100 Subject: [PATCH] fix(vc): string type error caused by codeberg support 79736d8 added codeberg.org support to the browse-at-remote package, but rmuslimov/browse-at-remote@73c4526 (absorbed in 81268cc) changed the format of this variable, causing "wrong-type-argument: stringp, nil" errors. Amend: 81268cc5cf5a Ref: rmuslimov/browse-at-remote@73c45265a148 Ref: 79736d832de2 --- modules/emacs/vc/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/emacs/vc/config.el b/modules/emacs/vc/config.el index 7c5f0b61d..9087b5a69 100644 --- a/modules/emacs/vc/config.el +++ b/modules/emacs/vc/config.el @@ -135,7 +135,7 @@ otherwise in default state." ;; Add codeberg.org support ;; TODO: PR this upstream? - (add-to-list 'browse-at-remote-remote-type-regexps '("^codeberg\\.org$" . "codeberg")) + (add-to-list 'browse-at-remote-remote-type-regexps '(:host "^codeberg\\.org$" :type "github")) ;; HACK `browse-at-remote' produces urls with `nil' in them, when the repo is ;; detached. This creates broken links. I think it is more sensible to