GNU bug report logs - #54606
27.1; next/previous image command in image-mode triggers tramp connections for all remote dired buffers

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Mon, 28 Mar 2022 10:14:02 UTC

Severity: normal

Found in version 27.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 54606 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Phil Sainty <psainty <at> orcon.net.nz>, 54606 <at> debbugs.gnu.org
Subject: Re: bug#54606: 27.1; next/previous image command in image-mode
 triggers tramp connections for all remote dired buffers
Date: Thu, 31 Mar 2022 13:41:35 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

>> Can we put some guards in there to decide whether or not dir
>> and default-directory are actually on the same host before
>> comparing them via file-truename?
>
> If you want to go *this* direction, there would be a simple change:
>
> 	  (when (and (derived-mode-p 'dired-mode)
> 	             (equal (file-remote-p dir)
> 		            (file-remote-p default-directory))
> 	             (equal (file-truename dir)
> 		            (file-truename default-directory)))
>
> file-remote-p doesn't do anything on wire.

I think that sounds like a good change here anyway.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 111 days ago.

Previous Next


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