GNU bug report logs -
#57336
29.0.50; Tramp and recentf yet again
Previous Next
Reported by: Stephen Berman <stephen.berman <at> gmx.net>
Date: Mon, 22 Aug 2022 09:00:02 UTC
Severity: normal
Found in version 29.0.50
Fixed in version 29.1
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57336 in the body.
You can then email your comments to 57336 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57336
; Package
emacs
.
(Mon, 22 Aug 2022 09:00:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 22 Aug 2022 09:00:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
With my current build from master, when my ~/emacs.d/recentf file
contains an entry that uses ssh to connect to another machine and this
machine is offline when I start Emacs, then Tramp repeatedly tries to
connect to that machine. To reproduce:
0. Let ~/emacs.d/recentf consist of the following (the entry in
recentf-list refers to a machine that is currently offline):
;;; Automatically generated by ‘recentf’ on Mon Aug 22 09:50:45 2022.
(setq recentf-list
'(
"/ssh:steve <at> hpaul:~/"
))
(setq recentf-filter-changer-current 'nil)
;; Local Variables:
;; coding: utf-8-emacs
;; End:
1. Let ~/.emacs consist of the following:
(recentf-mode 1)
2. emacs
3. The echo area displays "Opening connection nil for steve <at> hpaul using
ssh..."
4. After a little while "failed" gets appended to the message, and then
the echo area displays "Timeout reached, see buffer ‘*tramp/ssh
steve <at> hpaul*’ for details"
5. Tramp tries again, repeating the message in step 3, then times out
again, repeating the message in step, and so on indefinitely. I can
break this cycle only by typing C-g and holding down the keys (just
repeatedly typing C-g doesn't work). When Tramp no longer tries to
connect, *Messages* displays this:
Tramp: Opening connection nil for steve <at> hpaul using ssh...failed
Cleaning up the recentf list...
error: "Lisp nesting exceeds ‘max-lisp-eval-depth’"
Quit [7 times]
Invoking tramp-cleanup-this-connection or tramp-cleanup-all-connections
does not prevent the attempts to connect on restarting Emacs, only
deleting the entries from recentf-list works.
I frequently use Tramp to ssh to other machines, so I assume my recentf
file normally contains such entries as above. Or perhaps I have always
killed all buffers displaying files on such machines before shutting
down Emacs, and then the entries are removed from the recentf file, and
this time I had not killed those buffers? I don't know, but it seems
unlikely. Anyway, Tramp has not attempted to connect to these machines
on starting Emacs until my current build (I have had issues with Tramp
and recentf in the past, see bug#26258 and bug#27108, but these were
fixed). I don't remember exactly when my most recent previous build
was, but I think it was within the last 1-3 weeks at most.
In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6)
of 2022-08-19 built on strobelfs2
Repository revision: dd97bff219dd3039c576710850e04fa4fa32f004
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Linux From Scratch r11.0-165
Configured using:
'configure --with-xinput2 --with-xwidgets 'CFLAGS=-Og -g3'
PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM
XINPUT2 XPM XWIDGETS GTK3 ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57336
; Package
emacs
.
(Sat, 27 Aug 2022 19:55:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 57336 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Stephen Berman <stephen.berman <at> gmx.net> writes:
> With my current build from master, when my ~/emacs.d/recentf file
> contains an entry that uses ssh to connect to another machine and this
> machine is offline when I start Emacs, then Tramp repeatedly tries to
> connect to that machine. [...]
I suspect that this is due to
commit c753e4cb2a2a5998626d48d85071c047cbab6c54
Author: Stefan Kangas <stefan <at> marxist.se>
Date: Thu Jun 23 11:00:19 2022 +0200
Use shortened filenames in recentf-mode
* lisp/recentf.el (recentf-filename-handlers): Set to
'abbreviate-file-name' to get shortened names by default. (Bug#56123)
'abbreviate-file-name' tries to establish a connection for remote file
names.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57336
; Package
emacs
.
(Sun, 28 Aug 2022 22:03:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 57336 <at> debbugs.gnu.org (full text, mbox):
miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:
>
> Stephen Berman <stephen.berman <at> gmx.net> writes:
>
>> With my current build from master, when my ~/emacs.d/recentf file
>> contains an entry that uses ssh to connect to another machine and this
>> machine is offline when I start Emacs, then Tramp repeatedly tries to
>> connect to that machine. [...]
>
> I suspect that this is due to
>
> commit c753e4cb2a2a5998626d48d85071c047cbab6c54
> Author: Stefan Kangas <stefan <at> marxist.se>
> Date: Thu Jun 23 11:00:19 2022 +0200
>
> Use shortened filenames in recentf-mode
>
> * lisp/recentf.el (recentf-filename-handlers): Set to
> 'abbreviate-file-name' to get shortened names by default. (Bug#56123)
>
> 'abbreviate-file-name' tries to establish a connection for remote file
> names.
Hmm, maybe Michael knows what's going on here, added to Cc.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57336
; Package
emacs
.
(Mon, 29 Aug 2022 10:10:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 57336 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefankangas <at> gmail.com> writes:
Hi Stefan,
>>> With my current build from master, when my ~/emacs.d/recentf file
>>> contains an entry that uses ssh to connect to another machine and this
>>> machine is offline when I start Emacs, then Tramp repeatedly tries to
>>> connect to that machine. [...]
>>
>> I suspect that this is due to
>>
>> commit c753e4cb2a2a5998626d48d85071c047cbab6c54
>> Author: Stefan Kangas <stefan <at> marxist.se>
>> Date: Thu Jun 23 11:00:19 2022 +0200
>>
>> Use shortened filenames in recentf-mode
>>
>> * lisp/recentf.el (recentf-filename-handlers): Set to
>> 'abbreviate-file-name' to get shortened names by default. (Bug#56123)
>>
>> 'abbreviate-file-name' tries to establish a connection for remote file
>> names.
>
> Hmm, maybe Michael knows what's going on here, added to Cc.
The problem is rather expand-file-name, which goes remote when the file
name contains a tilde "~". I've pushed a fix to master, could you pls
check?
Best regards, Michael.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#57336
; Package
emacs
.
(Mon, 29 Aug 2022 10:29:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 57336 <at> debbugs.gnu.org (full text, mbox):
On Mon, 29 Aug 2022 12:08:58 +0200 Michael Albinus <michael.albinus <at> gmx.de> wrote:
> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
> Hi Stefan,
>
>>>> With my current build from master, when my ~/emacs.d/recentf file
>>>> contains an entry that uses ssh to connect to another machine and this
>>>> machine is offline when I start Emacs, then Tramp repeatedly tries to
>>>> connect to that machine. [...]
>>>
>>> I suspect that this is due to
>>>
>>> commit c753e4cb2a2a5998626d48d85071c047cbab6c54
>>> Author: Stefan Kangas <stefan <at> marxist.se>
>>> Date: Thu Jun 23 11:00:19 2022 +0200
>>>
>>> Use shortened filenames in recentf-mode
>>>
>>> * lisp/recentf.el (recentf-filename-handlers): Set to
>>> 'abbreviate-file-name' to get shortened names by default. (Bug#56123)
>>>
>>> 'abbreviate-file-name' tries to establish a connection for remote file
>>> names.
>>
>> Hmm, maybe Michael knows what's going on here, added to Cc.
>
> The problem is rather expand-file-name, which goes remote when the file
> name contains a tilde "~". I've pushed a fix to master, could you pls
> check?
That fixes the problem I reported. Thanks!
Steve Berman
Reply sent
to
Michael Albinus <michael.albinus <at> gmx.de>
:
You have taken responsibility.
(Mon, 29 Aug 2022 10:35:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
bug acknowledged by developer.
(Mon, 29 Aug 2022 10:35:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 57336-done <at> debbugs.gnu.org (full text, mbox):
Version: 29.1
Stephen Berman <stephen.berman <at> gmx.net> writes:
Hi Stephen,
>> The problem is rather expand-file-name, which goes remote when the file
>> name contains a tilde "~". I've pushed a fix to master, could you pls
>> check?
>
> That fixes the problem I reported. Thanks!
Thanks for the feedback, I'm closing th bug.
> Steve Berman
Best regards, Michael.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 26 Sep 2022 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 360 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.