emacs-devel
[Top][All Lists]
Advanced

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

Re: master 6e796b5: Stop project-root from going into infinite recursion


From: Stefan Monnier
Subject: Re: master 6e796b5: Stop project-root from going into infinite recursion
Date: Wed, 17 Mar 2021 17:33:13 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> @@ -215,7 +217,9 @@ It usually contains the main build file, dependencies
>  configuration file, etc. Though neither is mandatory.
>  
>  The directory name must be absolute."
> -  (car (project-roots project)))
> +  (if project--within-roots-fallback
> +      (signal 'cl-no-applicable-method (list 'project-root project))
> +    (car (project-roots project))))

I think `cl-call-next-method` is a better choice.


        Stefan




reply via email to

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