* bug#57336: 29.0.50; Tramp and recentf yet again
@ 2022-08-22 8:59 Stephen Berman
2022-08-27 20:07 ` miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Berman @ 2022-08-22 8:59 UTC (permalink / raw)
To: 57336
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@hpaul:~/"
))
(setq recentf-filter-changer-current 'nil)
\f
;; 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@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@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@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#57336: 29.0.50; Tramp and recentf yet again
2022-08-22 8:59 bug#57336: 29.0.50; Tramp and recentf yet again Stephen Berman
@ 2022-08-27 20:07 ` miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-28 22:02 ` Stefan Kangas
0 siblings, 1 reply; 6+ messages in thread
From: miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-27 20:07 UTC (permalink / raw)
To: Stephen Berman, 57336; +Cc: Stefan Kangas
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]
Stephen Berman <stephen.berman@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@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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#57336: 29.0.50; Tramp and recentf yet again
2022-08-27 20:07 ` miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-28 22:02 ` Stefan Kangas
2022-08-29 10:08 ` Michael Albinus
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Kangas @ 2022-08-28 22:02 UTC (permalink / raw)
To: miha, Stephen Berman, 57336; +Cc: Michael Albinus
miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:
>
> Stephen Berman <stephen.berman@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@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#57336: 29.0.50; Tramp and recentf yet again
2022-08-28 22:02 ` Stefan Kangas
@ 2022-08-29 10:08 ` Michael Albinus
2022-08-29 10:28 ` Stephen Berman
0 siblings, 1 reply; 6+ messages in thread
From: Michael Albinus @ 2022-08-29 10:08 UTC (permalink / raw)
To: Stefan Kangas; +Cc: Stephen Berman, miha, 57336
Stefan Kangas <stefankangas@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@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#57336: 29.0.50; Tramp and recentf yet again
2022-08-29 10:08 ` Michael Albinus
@ 2022-08-29 10:28 ` Stephen Berman
2022-08-29 10:34 ` Michael Albinus
0 siblings, 1 reply; 6+ messages in thread
From: Stephen Berman @ 2022-08-29 10:28 UTC (permalink / raw)
To: Michael Albinus; +Cc: Stefan Kangas, miha, 57336
On Mon, 29 Aug 2022 12:08:58 +0200 Michael Albinus <michael.albinus@gmx.de> wrote:
> Stefan Kangas <stefankangas@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@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#57336: 29.0.50; Tramp and recentf yet again
2022-08-29 10:28 ` Stephen Berman
@ 2022-08-29 10:34 ` Michael Albinus
0 siblings, 0 replies; 6+ messages in thread
From: Michael Albinus @ 2022-08-29 10:34 UTC (permalink / raw)
To: Stephen Berman; +Cc: 57336-done, Stefan Kangas, miha
Version: 29.1
Stephen Berman <stephen.berman@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.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-08-29 10:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-22 8:59 bug#57336: 29.0.50; Tramp and recentf yet again Stephen Berman
2022-08-27 20:07 ` miha--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-28 22:02 ` Stefan Kangas
2022-08-29 10:08 ` Michael Albinus
2022-08-29 10:28 ` Stephen Berman
2022-08-29 10:34 ` Michael Albinus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).