From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63870: 29.0.90; project.el can't dynamically populate the project list Date: Wed, 28 Jun 2023 15:56:34 +0300 Message-ID: <83bkgzvj7h.fsf@gnu.org> References: <83sfabvngh.fsf@gnu.org> <83edlvvky4.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32897"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63870@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 28 15:19:54 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qEV5N-0008KL-WB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jun 2023 15:19:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEUjJ-0003FQ-QT; Wed, 28 Jun 2023 08:57:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEUjG-0003F5-NB for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 08:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEUjG-0003Bu-Ep for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 08:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEUjG-0006GU-AY for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 08:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2023 12:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63870 X-GNU-PR-Package: emacs Original-Received: via spool by 63870-submit@debbugs.gnu.org id=B63870.168795698024029 (code B ref 63870); Wed, 28 Jun 2023 12:57:02 +0000 Original-Received: (at 63870) by debbugs.gnu.org; 28 Jun 2023 12:56:20 +0000 Original-Received: from localhost ([127.0.0.1]:50271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEUiZ-0006FV-LN for submit@debbugs.gnu.org; Wed, 28 Jun 2023 08:56:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEUiX-0006FH-Iv for 63870@debbugs.gnu.org; Wed, 28 Jun 2023 08:56:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEUiS-0002OC-6c; Wed, 28 Jun 2023 08:56:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=k4m6g10CxU1kQ4AHPM0T5axmYWCAi5wA1fcNMUnusDM=; b=o5n+AEI1zRob lLVq6Pg+85dehCulPUSw6Ja7AIsz07nm5e8jWcc/XPLRoYNIZ+1bimdgpX3lsv8nBD5dxonQ1xyFs Eu1BI+JhXFj+LZiA9ByV7Eg0QpGIssF5ptjs15MJ4WMMWtXqTwtiapk85yBEGBR00FSTXf8m5agtU YV8gJIMPiWuJ+k3yR5bAVC/F03JYnK+558W1d0Rn/AdqdBf2X49CHkJs3xnx4yOgh8cyTqxHl5h/y YNQcQtWymbLoUPWEcqAXU0VakYEzyi4LJzF1vGvkJPE2CB+M3Smnif5CZP+JN37kdHWcrVRIpWJxb GGpF4Aubg5QAtc+rX/yqqQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEUiP-000788-G3; Wed, 28 Jun 2023 08:56:11 -0400 In-Reply-To: (message from Spencer Baugh on Wed, 28 Jun 2023 08:37:58 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264215 Archived-At: > From: Spencer Baugh > Cc: 63870@debbugs.gnu.org > Date: Wed, 28 Jun 2023 08:37:58 -0400 > > Eli Zaretskii writes: > > >> Absolutely. I am trying to be careful about this: project-watch > >> shouldn't create watches on VCS directories. > > > > But below you explicitly give an example where it will. And given the > > fact that the majority of project.el projects use VCS as its backend, > > I'd say we are already there... > > No: the watch on a directory is removed once the directory becomes a VCS > directory. No, AFAIU the watch is removed once there is a project in the directory. But a VCS can work on a directory regardles of any project creation. > > Once again, this is dangerous; users could easily shoot themselves in > > the foot, because not many are aware of the pitfall of using file > > notifications for many directories. It makes no sense to warn against > > something and at the same time let callers easily stumble upon that. > > I agree with that, I suppose. Personally I would be fine with a > mandatory 1 or 2 levels of recursion, since I only need 2. Do you have > a suggestion for what that interface could look like? It feels a bit > awkward... I'd actually begin by not providing even 1 level. Let the callers call this new function explicitly for every directory which they want watching. If someone ever complains that this is somehow inconvenient (although I don't see why: directory-files is simple to use), then we could consider extending the API. But that's MO; please wait for Dmitry to chime in.