From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Error with tramp-archive-autoload-file-name-handler Date: Fri, 08 Apr 2022 11:41:21 +0200 Message-ID: <87k0bz9ake.fsf@gmx.de> References: <87bkxtzjf1.fsf@web.de> <871qyphzv1.fsf@gmx.de> <87r16o4jxo.fsf@web.de> <871qyouuls.fsf@web.de> <87y20vg5gu.fsf@gmx.de> <87fsn2q0mk.fsf@web.de> <87o81qwqwi.fsf@sperrhaken.name> <87h77ifk6w.fsf@gmx.de> <87v8vx7gsz.fsf@web.de> <87wngddxm0.fsf@gmx.de> <87pmm11sdw.fsf@web.de> <877d873dak.fsf@sperrhaken.name> <87v8vre7y6.fsf@gmx.de> <87lewiy4t5.fsf@sperrhaken.name> <87y20igjww.fsf@gmx.de> <87o81d8akz.fsf@gmx.de> <87fsmog4om.fsf@sperrhaken.name> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3873"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Felix Dietrich Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 08 11:42:27 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncl8N-0000ny-K0 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 08 Apr 2022 11:42:27 +0200 Original-Received: from localhost ([::1]:33008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ncl8M-00004q-If for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 08 Apr 2022 05:42:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncl7Q-0008WJ-5T for help-gnu-emacs@gnu.org; Fri, 08 Apr 2022 05:41:28 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:44329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ncl7O-0003Fd-6T for help-gnu-emacs@gnu.org; Fri, 08 Apr 2022 05:41:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649410882; bh=ejlypg5l1qFaqW5qcjK/e+NtQm6jJmHzw0DaI6QB27Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=B/qHiCsIhguydVjdK5SzGvS1jeB/iJPERxkluoo2k2PgWRgV/YPwMDl1QdYsbeHXv FqmU2HAiFV+JgoOhg2s8U4xk6R2NLRQR27s3+MS2enVHM8bggQNxTjXSXaSUPOnm2+ m9J1T97PjXDoZR4nf0+PhSZm6lYm3LC3W0tRERG0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.118.138]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgeoI-1oB1by25ls-00h4sF; Fri, 08 Apr 2022 11:41:22 +0200 In-Reply-To: <87fsmog4om.fsf@sperrhaken.name> (Felix Dietrich's message of "Thu, 07 Apr 2022 19:54:17 +0200") X-Provags-ID: V03:K1:i6BZeiBxWJf0MupxYIVgH+XO/hnX9uqqZzwcd/u3xrPiPq6rqvF 5CjD3iLhlQ68iD9Z4II3bjvjhkiUQ07eV6ezyrRlILT+9S7PsT6ycht5KuwFCiTvd1NLuYR uZ7Ecgr+YHBznzn3cNlptrfMSBmVt3kqNjbR8Zqgy1wS/0Y2PMs8D0J/oRiOhSk/cAfeNqV AvkrH6Lr4cjZtFVcxLMHQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:QoBQRq3B9JU=:qJquuGfyGO7w4E2ICLLkdV 2ixIXWhUFPB/DjpI+Y2Vn8KblnjIKfh2x/dfK+8w4PG5SWe0Qv7Cl1SLfZ2LdxnCopsJG4tte t1TcBVDptt0FW0mwZI1GesprvxSnuzayn9YOJ+ZR/rT9AZNGATpHCQMpS2RxCELES+1u1xZIe G6hKiq0AWQP3QkARUnwgq4kC4mYKoUTkz+hFPyM1kslKdi1ynLfY9DWyXRrSjADaBkfE2fnfG W1Ey6cuVQ2I5elfzi84LRFTngBZjY/Lk6Q9SveF5iAw6jKKyZWNkPIIcikBB1ScmrrEw3StvL iaDKCGCWZ/xIrBDu2npPx1y6+U8VvZ6hjaAyn70wRafw1WDzHFBWFgZpqt3g9cwq3jUmLfBoH W16tuHlupS/hwqb/9uUArsC22i7SM3g1/heoH78RZ46yJywTla6/TbiTVTV/I9ILdLnxJYXLi jGEO+Ak8Cc12RHfcS4Ei8vnykN0E0UD/2tTpXILgqui1YBR/vWvX6nFtHIggjrnAX0d5JiVlw DUfqmmnmANAClXUHOQgBu4dHFDTMVOdsycWpbe4E67hZOyQqCCxlOlr2fUEZEeWcUNpnlbhaJ +KtHULLNGjCLrXK+7AGJD/yrDrPYa8hKhx6vWpo71B0ZdsBztc+y0oBHpMjoklBHFzh5kIB78 xPrui8O85XL5Qed/8RKEsmvwH0BSldkJ/KwjN4wO7f8g5gdAZYubVtwcn0a2EpBMb+F3+dSSP 5G1TgXlk8vsCoIPDzTSfoprckSCeGW3rRF0HnWoJBicGXyUw/uaxH/OVLjOUqRNZbiNJ7L6N Received-SPF: pass client-ip=212.227.15.18; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136888 Archived-At: Felix Dietrich writes: > Hi Michael, Hi Felix, > Hm, I had wanted to add that now =E2=80=98tramp-autoload-file-name-handle= r=E2=80=99 and > =E2=80=98tramp-archive-autoload-file-name-handler=E2=80=99 look nearly th= e same, and > that a nicer solution would be to revert the changes of 4db69b32b8 (=E2= =80=9CFix > bug#48476=E2=80=9D) to tramp-archive.el and make the archive autoload han= dler an > alias again to =E2=80=98tramp-autoload-file-name-handler=E2=80=99 as well= as changing > the latter to use =E2=80=98tramp-archive-enabled=E2=80=99 directly instea= d of via > =E2=80=98tramp-archive-autoload=E2=80=99. Interestingly, this does not w= ork (almost > sent it without testing): it causes a similar issue as bug #48476 with > an error message =E2=80=9CRecursive load=E2=80=9D (no hang due to an infi= nite loop > though). Do you remember why using =E2=80=98defalias=E2=80=99 here cause= s 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 =E2=80=98tramp-gvfs-enabled=E2=80=99 to t because its check= s 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=CA=BCt looked particular hard, but no, I do not see both the auto= load > and the normal handler in the =E2=80=98file-name-handler-alist=E2=80=99 a= t the same time > after a normal start and load of tramp =E2=80=93 well, if I don=CA=BCt pu= t 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.