Re: [gnu] externals/vc-jj 444624c27ea 1/3: Delay adding JJ backend marker until project is loaded
Stefan Monnier via "Emacs development discussions." <[email protected]> Tue, 28 Jul 2026 12:01:29 -0400
| Newsgroups | gmane.emacs.devel |
|---|---|
| Message-ID | <[email protected]> |
>>> ;;;###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. Ah, indeed I see it's used to discover that a file directory/file is under JJ, a bit like `vc-BACKEND-register`. > Should I submit a patch? I think what you have now is good enough (and has the advantage of being modular). === Stefan