GNU bug report logs - #77566
[PATCH] Add option for automatically delete non-existent projects.

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Sat, 5 Apr 2025 23:52:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Ship Mints <shipmints <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: dmitry <at> gutov.dev, Elijah Gabe Pérez <eg642616 <at> gmail.com>, 77566 <at> debbugs.gnu.org, Sean Whitton <spwhitton <at> spwhitton.name>
Subject: bug#77566: [PATCH] Add option for automatically delete non-existent projects.
Date: Mon, 7 Apr 2025 09:19:53 -0400
[Message part 1 (text/plain, inline)]
On Mon, Apr 7, 2025 at 2:41 AM Juri Linkov <juri <at> linkov.net> wrote:

> > +(defcustom project-dont-prune-remote-zombie-projects nil
> > +  "If non-nil, remote files will no be pruned by
> `project-forget-zombie-projects'."
> > +  :type 'boolean
> > +  :version "31.1"
> > +  :group 'project)
>
> Maybe it's possible to do with one option like there is
> remote-ignoring 'recentf-keep-default-predicate'
> in the default value of 'recentf-keep'.
>
> > I don't have a remote project so I can't test it.
>
> 'sudo' counts as a remote project too.
> So you can just type 'C-x x @' and the current project
> will be added as remote.
>

Indeed, and you can also open a local project via ssh to get the same thing
if you want to test other remote methods.

I think this is backwards

+    (unless (or (and no-remote (file-exists-p proj) (not (file-remote-p
proj)))

and should be

+    (unless (or (and no-remote (not (file-remote-p proj) (file-exists-p
proj)))

to avoid the cost of a remote file-exists-p.
[Message part 2 (text/html, inline)]

This bug report was last modified 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.