GNU bug report logs - #47168
28.0.50; Infinite recursion in project-root

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Mon, 15 Mar 2021 17:11:03 UTC

Severity: normal

Found in version 28.0.50

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Juri Linkov <juri <at> linkov.net>
Subject: bug#47168: closed (Re: bug#47168: 28.0.50; Infinite recursion in
 project-root)
Date: Wed, 17 Mar 2021 16:52:02 +0000
[Message part 1 (text/plain, inline)]
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 47168 <at> debbugs.gnu.org.

-- 
47168: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47168
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Juri Linkov <juri <at> linkov.net>, 47168-done <at> debbugs.gnu.org
Subject: Re: bug#47168: 28.0.50; Infinite recursion in project-root
Date: Wed, 17 Mar 2021 18:51:36 +0200
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.

[Message part 3 (message/rfc822, inline)]
From: Juri Linkov <juri <at> linkov.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Infinite recursion in project-root
Date: Mon, 15 Mar 2021 19:04:46 +0200
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)
  ...



This bug report was last modified 4 years and 128 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.