GNU bug report logs - #34196
27.0.50; tramp hangs on wrong password with global-auto-revert-mode

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Fri, 25 Jan 2019 15:38:01 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Aaron Jensen <aaronjensen <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 34196 <at> debbugs.gnu.org
Subject: bug#34196: 27.0.50; tramp hangs on wrong password with global-auto-revert-mode
Date: Tue, 5 Feb 2019 08:43:52 -0800
On Tue, Feb 5, 2019 at 4:51 AM Michael Albinus <michael.albinus <at> gmx.de> wrote:
>
> [Pls keep the Cc, for the archives]

Sorry, clicked the wrong button, thank you for the reminder.

> > I think that not-yet-connected tramp buffers need to be excluded from
> > garm entirely, if that is possible.
>
> Good idea. I've appended a patch, which reverts the last change from
> tramp.el, and implements your proposal in autorevert.el. This is also
> better, because Tramp as library shouldn't care about auto-revert.
>
> Could you, pls, check whether this works for you?

It works brilliantly as far as I can tell in both emacs -Q and my config.

Is there any cost to an extra loop over all buffers and doing
with-current-buffer?

I wonder if a change to auto-revert-active-p would be better than
looping through all of the buffers and with-current-buffering them
again. I don't know if that's semantically wrong for that function.

Another option is putting a check in auto-revert-notify-add-watch,
since that already has checks to ensure the file is okay to be
watched:

          (or auto-revert-notify-watch-descriptor
              (and (file-remote-p default-directory)
                   (not (file-remote-p default-directory nil t)))
              (string-match auto-revert-notify-exclude-dir-regexp
                            (expand-file-name default-directory))
              (file-symlink-p (or buffer-file-name default-directory)))

With that in place, even if I enable auto-revert-remote-files I don't
experience the hang.

Thanks,

Aaron




This bug report was last modified 6 years and 102 days ago.

Previous Next


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