Subject: bug#47168: closed (Re: bug#47168: 28.0.50; Infinite recursion in project-root)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 17 Mar 2021 16:52:02 +0000

Your bug report

#47168: 28.0.50; Infinite recursion in project-root

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
47168: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47168
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#47168: 28.0.50; Infinite recursion in project-root
From: Dmitry Gutov <[email-masked]>
To: Stefan Monnier <[email-masked]>
Cc: Juri Linkov <[email-masked]>, [email-masked]
Date: Wed, 17 Mar 2021 18:51:36 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

On 17.03.2021 05:54, Stefan Monnier wrote:
> But we could use some dynamically-scoped
> `project--within-roots-fallback` variable to break such recursion;-)

Good idea, thanks!

Applied and pushed.

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)
  ...