emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: GNU bug Tracking System
Subject: bug#47168: closed (28.0.50; Infinite recursion in project-root)
Date: Wed, 17 Mar 2021 16:52:02 +0000

Your message dated Wed, 17 Mar 2021 18:51:36 +0200
with message-id <50205e36-2120-399b-a013-dc92e004a016@yandex.ru>
and subject line Re: bug#47168: 28.0.50; Infinite recursion in project-root
has caused the debbugs.gnu.org bug report #47168,
regarding 28.0.50; Infinite recursion in project-root
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
47168: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=47168
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 28.0.50; Infinite recursion in project-root Date: Mon, 15 Mar 2021 19:04:46 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
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)
  ...



--- End Message ---
--- Begin Message --- Subject: Re: bug#47168: 28.0.50; Infinite recursion in project-root Date: Wed, 17 Mar 2021 18:51:36 +0200 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1
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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]