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