|
From: | Lars Ingebrigtsen |
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:03:14 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] | Current Thread | [Next in Thread] |