Subject: 28.0.50; Infinite recursion in project-root
From: Juri Linkov <[email-masked]>
To: [email-masked]
Date: Mon, 15 Mar 2021 19:04:46 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

When for some reason the argument of 'project-root' becomes nil,
for example, when the current buffer is not under version control,
then

  (project-root (project-current))

goes into infinite recursion:

Debugger entered--Lisp error: (error "Lisp nesting exceeds ‘max-lisp-eval-depth’")
  project-root(nil)
  project-roots(nil)
  ...
  project-root(nil)
  project-roots(nil)
  ...