From unknown Wed Aug 20 06:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47168: 28.0.50; Infinite recursion in project-root Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Mar 2021 17:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47168 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 47168@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16158282513292 (code B ref -1); Mon, 15 Mar 2021 17:11:03 +0000 Received: (at submit) by debbugs.gnu.org; 15 Mar 2021 17:10:51 +0000 Received: from localhost ([127.0.0.1]:36665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLqjz-0000qu-DP for submit@debbugs.gnu.org; Mon, 15 Mar 2021 13:10:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:44768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLqjx-0000qc-5f for submit@debbugs.gnu.org; Mon, 15 Mar 2021 13:10:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLqjw-0005OZ-Uv for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2021 13:10:49 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:50501) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLqjs-0003ex-Gb for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2021 13:10:48 -0400 X-Originating-IP: 91.129.108.46 Received: from mail.gandi.net (m91-129-108-46.cust.tele2.ee [91.129.108.46]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 42967FF803 for ; Mon, 15 Mar 2021 17:10:40 +0000 (UTC) From: Juri Linkov Organization: LINKOV.NET Date: Mon, 15 Mar 2021 19:04:46 +0200 Message-ID: <87ft0wpooj.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.199; envelope-from=juri@linkov.net; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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) ... From unknown Wed Aug 20 06:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47168: 28.0.50; Infinite recursion in project-root Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Mar 2021 02:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47168 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov , 47168@debbugs.gnu.org, Stefan Monnier Received: via spool by 47168-submit@debbugs.gnu.org id=B47168.161594924712810 (code B ref 47168); Wed, 17 Mar 2021 02:48:01 +0000 Received: (at 47168) by debbugs.gnu.org; 17 Mar 2021 02:47:27 +0000 Received: from localhost ([127.0.0.1]:41587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMMDX-0003KY-19 for submit@debbugs.gnu.org; Tue, 16 Mar 2021 22:47:27 -0400 Received: from mail-wr1-f49.google.com ([209.85.221.49]:44956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMMDU-0003KI-Ik for 47168@debbugs.gnu.org; Tue, 16 Mar 2021 22:47:25 -0400 Received: by mail-wr1-f49.google.com with SMTP id t9so263717wrn.11 for <47168@debbugs.gnu.org>; Tue, 16 Mar 2021 19:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=UznB/PCnVerTopTO+9iNvjtViUiss+uKOcjytVo8LcY=; b=GZsRavbVojn/N9XIP8bFZqKto3uAtSq4aLUhDx2FQFbtdPivObJ1RA5jLOBrODtRdF xzBrCIArgdVNGDFoX33EeIRKm0r8aMSbGQCfBncmDZ1Sid+1qBUOwjrczhWoNiTgYg3i i3ZX5EL8qWXUy+YZ22Nap2yKIqvXRI5fesdMdCJh8EOWUpR8IE6xG3xQan9m1BVpqN9N 0LyeygvuhzoQ3lX7YTcSGQCjpYC+d34w9IW+q9o4eL1YkpsIsKiSgZYxfhOeouHGly7S /fcIdcg1eAn+DjC6VUJoH3NNiE7cZmGIWlxAKKvlXix/IUCC7FbZe2C4w9TZ3s/H5DhJ F6JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=UznB/PCnVerTopTO+9iNvjtViUiss+uKOcjytVo8LcY=; b=GUlf0ZiC0Sny1qb0bT5CgIyVCpKs5eOzKzVszzg1QUQcQ1flKv47r6KGoizSFj7tN5 Mec4WqXemg1jdgTXtu1ZWJbEg0Kg1nHx1UGi+W5RPu/wehujewGQV+HPKq7HAyQ/Z4TM VQJIw/ZBymSWhUnYT48Lh7FP+8KzmszPzELFOtKLdTrD8D3K0tebhVIuOYMl9rZ97gBz bzAL0ScoMXlYaH8uYQvgugqQh9OPZU0bKEOTOeGbuvozOgxhutFv678W4+UvowPY9qnK Zd6ovUtl2BUdlFoABYGGdm17fVGLEXMrB3p9rEJzXJeW53ud6jwRV23LBNDLni7fVj4B H6ug== X-Gm-Message-State: AOAM532KmwRin+jKWUq/yZ+P+mKU80vKeQ3CNEodFzIsa61a3b22c0ae ibfneBXMDZ40YSvS34TGZ6Q= X-Google-Smtp-Source: ABdhPJzn2ZbhnIIimeaItSRJeK8Vi78NO5s+pAIKxYSb+qC2jPcJaPu91KcNHmyEIejV3riYocNmEw== X-Received: by 2002:a5d:638a:: with SMTP id p10mr1962556wru.286.1615949238431; Tue, 16 Mar 2021 19:47:18 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id u9sm955756wmc.38.2021.03.16.19.47.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Mar 2021 19:47:17 -0700 (PDT) References: <87ft0wpooj.fsf@mail.linkov.net> From: Dmitry Gutov Message-ID: <36f5ca08-1ddc-a183-3f12-e942f6a7ff89@yandex.ru> Date: Wed, 17 Mar 2021 04:47:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <87ft0wpooj.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Juri, On 15.03.2021 19:04, Juri Linkov wrote: > 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) > ... Note that the right way to write this code is either (project-root (project-current t)) or (when-let ((project (project-current))) (project-root project)) so we only see this when the programmer failed to account for the absence of current project. Still, it would be nice to never show a backtrace like this, even in those cases. The idea here was to keep compatibility with backends which implement project-roots and not project-root (perhaps the built-in vc backend in Emacs 27), as well as let the clients call either project-root or project-roots, also for backward compatibility purposes. Worst case, we can give up on that and require all 3rd party code standardize on project-root and have all users install the latest project.el from ELPA. But perhaps we still can have it both ways? Stefan, any chance there's a relatively non-dirty way we can check whether there is a non-default implementation for the generic function with given args, before calling it? That would allow us to break recursion. From unknown Wed Aug 20 06:40:08 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47168: 28.0.50; Infinite recursion in project-root Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Mar 2021 03:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47168 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: 47168@debbugs.gnu.org, Juri Linkov Received: via spool by 47168-submit@debbugs.gnu.org id=B47168.161595329019008 (code B ref 47168); Wed, 17 Mar 2021 03:55:02 +0000 Received: (at 47168) by debbugs.gnu.org; 17 Mar 2021 03:54:50 +0000 Received: from localhost ([127.0.0.1]:41654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMNGk-0004wV-1g for submit@debbugs.gnu.org; Tue, 16 Mar 2021 23:54:50 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMNGf-0004wF-Hs for 47168@debbugs.gnu.org; Tue, 16 Mar 2021 23:54:48 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id C757C1004BD; Tue, 16 Mar 2021 23:54:39 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 725871000C9; Tue, 16 Mar 2021 23:54:38 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1615953278; bh=wXKBTZLh01sy1C4Hgftym6wr2hSX8hopP3W0esE2mL0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=e9gr6A9josvMilKXGxkS2pCD2e5BlAmkNVaLe48N3poJHScXAHLp9VGRkdbpNV1nl akSbbrj8ND7XEF0HH2lhAu9Nj736Kzi3tYOf8ma2KtpaXTU2Vy/gquyOlGAJEWC/Fp Ju5kVDb47iH1lYrYkWaqWcmiJG/EFA/xnML4Y6fdRy+MB4MPmvDkfPNXzSZ6WUDL2p HJtqaomCGEap+LEYzgntA1fwQ/bzZWlG69wfpUr0/7zwCsLA9jYTuKTi0FQbTwAXmC AAWRQcDhMOKggZNg06Hu98uOITp+N9CNksLH/UIyOhA4KsmJOZc5CKH4jNzcIuq5ZJ UcngTlrjMxJNw== Received: from alfajor (unknown [216.154.43.249]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0444A120278; Tue, 16 Mar 2021 23:54:37 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87ft0wpooj.fsf@mail.linkov.net> <36f5ca08-1ddc-a183-3f12-e942f6a7ff89@yandex.ru> Date: Tue, 16 Mar 2021 23:54:37 -0400 In-Reply-To: <36f5ca08-1ddc-a183-3f12-e942f6a7ff89@yandex.ru> (Dmitry Gutov's message of "Wed, 17 Mar 2021 04:47:15 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.100 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Stefan, any chance there's a relatively non-dirty way we can check whether > there is a non-default implementation for the generic function with given > args, before calling it? Not really, no. We could refrain from providing a default implementation, and instead add a method to `cl-no-next-method` or something like that, but I'm not sure it would make much difference. > That would allow us to break recursion. But we could use some dynamically-scoped `project--within-roots-fallback` variable to break such recursion ;-) Stefan From unknown Wed Aug 20 06:40:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Juri Linkov Subject: bug#47168: closed (Re: bug#47168: 28.0.50; Infinite recursion in project-root) Message-ID: References: <50205e36-2120-399b-a013-dc92e004a016@yandex.ru> <87ft0wpooj.fsf@mail.linkov.net> X-Gnu-PR-Message: they-closed 47168 X-Gnu-PR-Package: emacs Reply-To: 47168@debbugs.gnu.org Date: Wed, 17 Mar 2021 16:52:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1615999922-15387-1" This is a multi-part message in MIME format... ------------=_1615999922-15387-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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@debbugs.gnu.org. --=20 47168: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D47168 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1615999922-15387-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 47168-done) by debbugs.gnu.org; 17 Mar 2021 16:51:48 +0000 Received: from localhost ([127.0.0.1]:43877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMZOe-0003zl-23 for submit@debbugs.gnu.org; Wed, 17 Mar 2021 12:51:48 -0400 Received: from mail-ed1-f44.google.com ([209.85.208.44]:42563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMZOb-0003zX-4H for 47168-done@debbugs.gnu.org; Wed, 17 Mar 2021 12:51:47 -0400 Received: by mail-ed1-f44.google.com with SMTP id u4so3099375edv.9 for <47168-done@debbugs.gnu.org>; Wed, 17 Mar 2021 09:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=R663FAOLwWZjf4gg1UuF+p79eHfG/nTESy3ToALIQ58=; b=EqUwEDlpvmi2HgAHIfJxBSYFOIuja5Jv1L56cr6bL0u17EvaJ7p8n//b+x9/PyTg0j n/x0AD1WAMKd3oeokSLyw9jDtUvaM+xMcAzCaBY2pG1OJQ0KlyBmWWlIZ0pMmIhVD+B7 u/czmRNBjK3cYZxmTBxW3MKqSTLn7ETEmo6rKiS7zQdL2X8Hn6ACx0uhudCkGGoArUCx y/0YCy3PuvXMe3e1+avYS72ew8ZI0so+s97Ru3GXjzbJln08qitRh8qpi0KGQ1xM1WOK kN8HLScQqQj7s6rgy6MBRRB865k+zdCToS0Gz8hzR3fnVJAzWluirrAfmiSbqDfX9yXo arPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=R663FAOLwWZjf4gg1UuF+p79eHfG/nTESy3ToALIQ58=; b=epuE54FMzvnQUvBlJJi0JtppzPMyCS12bTGw4N/tDq6V8ShxiLx7cR/IgLwSHt/I/A NkKJYHqtXthQyZhqMBAtZLjYoWC1jOuDzoLqxhjSSUGchg+gC+PRpIz0dJJPUtkuKNYb e0vUGs1x+dJQxm3lstJ4mNRPxlZP2jrGLcfZepiiLcmS3pYnDvocNQgGoF7aRgVOD3i/ R2yKxKySh9zjNQDb4GpP+67EJu/NRQ3hJQ0AP/vRcCZsoRGkmz2669WS6va57eK0Ibvz 6qwTuj35+s+NIhqOaQ61D2lbZwBxr6ld/JqlZlyaq2No6PS3uN3aErBJVPVkrwZljZMw LLIA== X-Gm-Message-State: AOAM532VLoPnN9FQ1Zu4V1V/Rb9hikOvZalIDO5PEgeaqo2vymn+Y/YZ Mi8TGXeVcZKxv/sOOLk4Y5g= X-Google-Smtp-Source: ABdhPJxenK3n00IozFSXhDyvvE4F1Nee8aKkoWuN55x0tAbooVegAmlkhNG4vhYTNk9o4hhqIZGRjg== X-Received: by 2002:a05:6402:35d3:: with SMTP id z19mr42988748edc.143.1615999899336; Wed, 17 Mar 2021 09:51:39 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id sb4sm12051948ejb.71.2021.03.17.09.51.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Mar 2021 09:51:38 -0700 (PDT) Subject: Re: bug#47168: 28.0.50; Infinite recursion in project-root To: Stefan Monnier References: <87ft0wpooj.fsf@mail.linkov.net> <36f5ca08-1ddc-a183-3f12-e942f6a7ff89@yandex.ru> From: Dmitry Gutov Message-ID: <50205e36-2120-399b-a013-dc92e004a016@yandex.ru> 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 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 47168-done Cc: Juri Linkov , 47168-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) 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. ------------=_1615999922-15387-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Mar 2021 17:10:51 +0000 Received: from localhost ([127.0.0.1]:36665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLqjz-0000qu-DP for submit@debbugs.gnu.org; Mon, 15 Mar 2021 13:10:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:44768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLqjx-0000qc-5f for submit@debbugs.gnu.org; Mon, 15 Mar 2021 13:10:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLqjw-0005OZ-Uv for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2021 13:10:49 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:50501) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLqjs-0003ex-Gb for bug-gnu-emacs@gnu.org; Mon, 15 Mar 2021 13:10:48 -0400 X-Originating-IP: 91.129.108.46 Received: from mail.gandi.net (m91-129-108-46.cust.tele2.ee [91.129.108.46]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 42967FF803 for ; Mon, 15 Mar 2021 17:10:40 +0000 (UTC) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Infinite recursion in project-root Organization: LINKOV.NET Date: Mon, 15 Mar 2021 19:04:46 +0200 Message-ID: <87ft0wpooj.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.199; envelope-from=juri@linkov.net; helo=relay9-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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) ... ------------=_1615999922-15387-1--