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: Michael Albinus
Subject: bug#54606: 27.1; next/previous image command in image-mode triggers tramp connections for all remote dired buffers
Date: Tue, 29 Mar 2022 15:09:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Phil Sainty <psainty@orcon.net.nz> writes:
>
>>       ;; Find a dired buffer.
>>       (dolist (buffer (buffer-list))
>>      (with-current-buffer buffer
>>        (when (and (derived-mode-p 'dired-mode)
>>                   (equal (file-truename dir)
>>                          (file-truename default-directory)))
>>
>> That call to (file-truename default-directory) for each dired
>> buffer can cause tramp to spin up for closed connections for
>> entirely irrelevant dired buffers.
>>
>> 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?
>
> Hm.  Would binding `non-essential' around that call fix the issue?  (I've
> added Michael to the CCs.)

That's my expectation. It's on my TODO to test, but I'm occupied yet. Hope
to fix this later this week.

But of course you can beat me :-)

Best regards, Michael.





reply via email to

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