Re: [gnu] externals/vc-jj 444624c27ea 1/3: Delay adding JJ backend marker until project is loaded
Rudolf Schlatte <[email protected]> Mon, 27 Jul 2026 16:52:17 +0200
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
Stefan Monnier <[email protected]> writes: >> diff --git a/vc-jj.el b/vc-jj.el >> index f1753210806..e9a276181b7 100644 >> --- a/vc-jj.el >> +++ b/vc-jj.el >> @@ -1894,7 +1894,8 @@ implementation." >> (mapcar #'expand-file-name files)))) >> >> ;;;###autoload >> -(add-to-list 'project-vc-backend-markers-alist '(JJ . ".jj")) >> +(with-eval-after-load 'project >> + (add-to-list 'project-vc-backend-markers-alist '(JJ . ".jj"))) > > I'm curious why you need this to be autoloaded. > Can this (JJ . "jj") entry be useful even if `vc-jj.el` hasn't been > loaded yet? Yes, ideally it should be in `project-vc-backend-markers-alist' by default. Should I submit a patch?