project-try-vc: Fix the "sometimes wrong cache" issue
authorDmitry Gutov <dmitry@gutov.dev>
Mon, 28 Oct 2024 03:53:16 +0000 (05:53 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Fri, 1 Nov 2024 00:34:36 +0000 (02:34 +0200)
commitb4b0d5a8532a4e519835b68b8fb7048c9de51000
tree64b2fe260d10d2d07dbce81e39cdd57b354e372e
parent8113b5c562b88d4981231b0e332ced9fc20dc0b9
project-try-vc: Fix the "sometimes wrong cache" issue

* lisp/progmodes/project.el (project-try-vc--search):
Extract from 'project-try-vc'.
(project-try-vc): Use it.
(project-try-vc--search): Call itself recursively directly, to
avoid creating invalid cache entry (bug#73801).

(cherry picked from commit 29b30eb49f8bd8bad4f9e24dd56f32d62bf70121)
lisp/progmodes/project.el