From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Error with tramp-archive-autoload-file-name-handler Date: Mon, 28 Mar 2022 04:20:03 +0200 Message-ID: <87fsn2q0mk.fsf@web.de> References: <87bkxtzjf1.fsf@web.de> <871qyphzv1.fsf@gmx.de> <87r16o4jxo.fsf@web.de> <871qyouuls.fsf@web.de> <87y20vg5gu.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15240"; 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: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 28 04:21:15 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 1nYf0N-0003oD-NT for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Mar 2022 04:21:15 +0200 Original-Received: from localhost ([::1]:41978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYf0M-0005u2-7W for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 27 Mar 2022 22:21:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41044) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYezK-0005tn-OT for help-gnu-emacs@gnu.org; Sun, 27 Mar 2022 22:20:10 -0400 Original-Received: from mout.web.de ([217.72.192.78]:52121) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYezH-0003rk-Tg for help-gnu-emacs@gnu.org; Sun, 27 Mar 2022 22:20:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1648434004; bh=9kgpWOrWvdwaiq878d0FxKKyc6xqw57WqTwQ5dnhr2Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=OBQuNbDwPl3AZd5PpB5WOUaiYzdIOPaEEnXv9yLjTUaLXr9c+nqoPsStQ79y3QgmM j2kcIP2flCo19civ+qY2psF3GpKMdQC1bXPuJhuca4qrla80Te/tlcutKoZVrcAjv4 /LUW1vlYq4lmn5poXbQKrwDpF2lMMC56hGPf+tug= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.59.210.63]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MgRM5-1oFwgl0LDb-00hnUI; Mon, 28 Mar 2022 04:20:04 +0200 In-Reply-To: <87y20vg5gu.fsf@gmx.de> (Michael Albinus's message of "Sun, 27 Mar 2022 10:33:21 +0200") X-Provags-ID: V03:K1:yrXFKhuUhm2GEODgZ9WaT8E3S+9FePuzZPOef2h1D/qvPRKmwKO iaxQ+4ckqxUtV0gSXzapSUOfz7HojaD90m5qeRWSU6xTqy2j2ps4nKi0lB6taiRlHY4lIDu 3KFNbHrS9J2il9IH3YjjUfetP37zS0Xn/2gXVlbOE6UshfjFyJOZ+G0NScZLmHgd7Tm1yeJ SizuHmAUMM/a7Km8wshCQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:1GJM4i08A6g=:brqr3gU8RU21sZPK4tky9H yntHCxlrvjRPX0WpF/eUmeOleg2zPNQnplU+OqdylvrMcaMMwRVqFA1BwdAGRYRKGBegNjDFD 0JPmmr57gONkbYJiKRUAJPXDnObdrSusXQMFjqFp/ivYygiO/ZaWvb+AhqlHPxlpJ5FMeDNk0 LHBjv9QHkNX3EBGauqiumeS4hjdkQqb/78780WXC+k5o9fQ1mhagn1U3wvMP+AThMp0kr49wW 0HcrUXJOYcabpYF4GN3/UXfJ2evyWhrYpDtlV4/BC1SkB8HkWZm5aknTmU74wlTY2DJlRGODO 8K89+dbz5li8uKvf2F7cDYnnenyibc1/qLuzQK+1ifgMVco+/zaLqbIEGwqcoof6D7ZvMUwTh woYUCLUuASFHy8rrtaIyC8RZqgAELu0rrs2fkQAppp/7Mzqz8XvlaylkjQ18cofmpAaJiBd8B gMIZnfHL+2tyB0CmZdXUKBtNvVx3zn6DSfWhmbvn4B8q+9IuYuezK4G5ZLBomQ6k/WEOIncLb V88RnIFt1/iRNs22+zCxy5Bf0P4d7iRXchUM8zrRNrM04XiCVotFJrhBX1f7b7XAgoCr5rKHy ElMtWnlHabVVrYTl76UWenaUvKQKgVy9lOehEif6xp2YbDTh5CjliR9W6J2789s4+T0keQF/J 5xeKRb9hfWKZsWdgWV7MDJGOgfImhvN3yWiROW9BqpDsTLkhW/qR8s6uXkKdjN4binNCZjfNH bsAnAKtFDUz2I3CoP4md/HEWFqFycgHfY9EsRvT92XOOeiMe7Tu9h4GpfnMdh21xdaE549/1 Received-SPF: pass client-ip=217.72.192.78; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-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:136794 Archived-At: Michael Albinus writes: > I cannot reproduce. The following works fine: > > $ emacs -Q -l tramp --eval "(add-to-list 'file-name-handler-alist (cons (tramp-archive-autoload-file-name-regexp) #'tramp-archive-autoload-file-name-handler))" --eval '(file-directory-p "/home/albinus/tmp/out.tar.xz/")' You missed the TWICE part in my last message. Just eval the above twice: $ emacs -Q -l tramp --eval "(add-to-list 'file-name-handler-alist (cons (tramp-archive-autoload-file-name-regexp) #'tramp-archive-autoload-file-name-handler))" --eval '(file-directory-p "/home/albinus/tmp/out.tar.xz/")'\ --eval "(add-to-list 'file-name-handler-alist (cons (tramp-archive-autoload-file-name-regexp) #'tramp-archive-autoload-file-name-handler))" --eval '(file-directory-p "/home/albinus/tmp/out.tar.xz/")' Sorry, but that's the best recipe I can offer. And I guess something like this is actually happening. AFAIU, Tramp can call `tramp-register-archive-file-name-handler' several times - see tramp-archive.el line 394: ``` ;; In older Emacsen (prior 27.1), the autoload above does not exist. ;; So we call it again; it doesn't hurt. (tramp-register-archive-file-name-handler) ``` and my interpretation is that at least in my case that does hurt. But let's first see if you can reproduce the recipe now, and interpret the result later... Thanks, Michael.