GNU bug report logs - #78572
30.1; Tramp Project error message loop - File is missing

Previous Next

Package: emacs;

Reported by: Alexis Bakatine <abakatine <at> proton.me>

Date: Sat, 24 May 2025 02:28:02 UTC

Severity: normal

Found in version 30.1

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Ship Mints <shipmints <at> gmail.com>
Cc: Alexis Bakatine <abakatine <at> proton.me>, 78572 <at> debbugs.gnu.org
Subject: bug#78572: 30.1; Tramp Project error message loop - File is missing
Date: Thu, 29 May 2025 09:25:36 +0200
Ship Mints <shipmints <at> gmail.com> writes:

Hi Stephane,

> If this continues to be a concern, you can easily wrap the project
> mode line with a remote file guard.  Maybe something like this:
>
>   (setq project-mode-line-format '(:eval
> (my/project-mode-line-format)))
>   (defun my/project-mode-line-format ()
>     (unless (file-remote-p default-directory)
>       (project-mode-line-format)))

We have without-remote-files for this. So you could use instead

--8<---------------cut here---------------start------------->8---
(add-function
 :around (symbol-function #'project-mode-line-format) #'without-remote-files)
--8<---------------cut here---------------end--------------->8---

> -Stephane

Best regards, Michael.




This bug report was last modified 13 days ago.

Previous Next


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