bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54606: 27.1; next/previous image command in image-mode triggers tram


From: Lars Ingebrigtsen
Subject: 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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Michael Albinus <michael.albinus@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]