From: Michael Albinus <michael.albinus@gmx.de>
To: Felix Dietrich <felix.dietrich@sperrhaken.name>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Error with tramp-archive-autoload-file-name-handler
Date: Fri, 08 Apr 2022 11:41:21 +0200 [thread overview]
Message-ID: <87k0bz9ake.fsf@gmx.de> (raw)
In-Reply-To: <87fsmog4om.fsf@sperrhaken.name> (Felix Dietrich's message of "Thu, 07 Apr 2022 19:54:17 +0200")
Felix Dietrich <felix.dietrich@sperrhaken.name> writes:
> Hi Michael,
Hi Felix,
> Hm, I had wanted to add that now ‘tramp-autoload-file-name-handler’ and
> ‘tramp-archive-autoload-file-name-handler’ look nearly the same, and
> that a nicer solution would be to revert the changes of 4db69b32b8 (“Fix
> bug#48476”) to tramp-archive.el and make the archive autoload handler an
> alias again to ‘tramp-autoload-file-name-handler’ as well as changing
> the latter to use ‘tramp-archive-enabled’ directly instead of via
> ‘tramp-archive-autoload’. Interestingly, this does not work (almost
> sent it without testing): it causes a similar issue as bug #48476 with
> an error message “Recursive load” (no hang due to an infinite loop
> though). Do you remember why using ‘defalias’ here causes an infinite
> recursion?
Not really. I guess it is because this function was called twice
(replacing tramp-autoload-file-name-handler and
tramp-archive-autoload-file-name-handler in file-name-handler-alist),
which results in infinite recursion.
> The attached patch shows the erroneous changes described above. Here
> the steps from bug #48476 to reproduce the issue:
>
> mkdir foo.tar
> cd foo.tar
> emacs
This case is already handled in tramp-archive-test45-auto-load (emacs-28
branch) resp tramp-archive-test47-auto-load (master branch). I've
extended it slightly in the emacs-28 branch in order to test also the
case tramp-archive-enabled is nil, should arrive in master branch after
next merge.
. If you like you could play with this test case, perhaps more tests
could be applied (for example existence of
tramp-archive-autoload-file-name-handler and
tramp-archive-file-name-handler in file-name-handler-alist).
> I also forced ‘tramp-gvfs-enabled’ to t because its checks do not seem
> to take the DBUS_SESSION_BUS_ADDRESS environment variable into account
> (which was set by dbus-run-session). Maybe this had a negative
> influence.
This could also be tested.
>> With my previous patch, this shouldn't happen
>> anymore. Both tramp-archive-autoload-file-name-handler and
>> tramp-archive-file-name-handler shouldn't coexist in
>> file-name-handler-alist. Do you still see this after your patch has been
>> applied?
>
> I havenʼt looked particular hard, but no, I do not see both the autoload
> and the normal handler in the ‘file-name-handler-alist’ at the same time
> after a normal start and load of tramp – well, if I donʼt put them there
> myself, that is. My intention with this part was to show the issue I
> described was connected to and indeed the cause for the problem Michael
> Heerdegen had encountered, and also just to provide further details (I
> was really confused about the example in that part for quite a while).
Yes, thanks! But I believe we don't need to care further this.
Best regards, Michael.
next prev parent reply other threads:[~2022-04-08 9:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 23:44 Error with tramp-archive-autoload-file-name-handler Michael Heerdegen
2022-03-26 8:39 ` Michael Albinus
2022-03-26 19:01 ` Michael Heerdegen
2022-03-27 0:06 ` Michael Heerdegen
2022-03-27 8:33 ` Michael Albinus
2022-03-28 2:20 ` Michael Heerdegen
2022-03-28 6:08 ` Felix Dietrich
2022-03-28 10:25 ` Michael Albinus
2022-03-29 0:17 ` Michael Heerdegen
2022-03-29 7:30 ` Michael Albinus
2022-04-01 1:53 ` Michael Heerdegen
2022-04-02 12:00 ` Felix Dietrich
2022-04-02 17:00 ` Michael Albinus
2022-04-06 8:49 ` Felix Dietrich
2022-04-06 18:13 ` Michael Albinus
2022-04-07 10:14 ` Michael Albinus
2022-04-07 17:54 ` Felix Dietrich
2022-04-08 9:41 ` Michael Albinus [this message]
2022-04-13 2:03 ` Michael Heerdegen
2022-04-03 1:26 ` Michael Heerdegen
2022-04-03 15:57 ` Michael Albinus
2022-04-04 0:58 ` Michael Heerdegen
2022-04-04 7:40 ` Michael Albinus
2022-03-29 0:09 ` Michael Heerdegen
2022-03-27 8:16 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0bz9ake.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=felix.dietrich@sperrhaken.name \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).