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: Sun, 27 Mar 2022 10:33:21 +0200 Message-ID: <87y20vg5gu.fsf@gmx.de> References: <87bkxtzjf1.fsf@web.de> <871qyphzv1.fsf@gmx.de> <87r16o4jxo.fsf@web.de> <871qyouuls.fsf@web.de> 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="22827"; 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 Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 27 10:34:02 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 1nYOLZ-0005lJ-OE for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 27 Mar 2022 10:34:01 +0200 Original-Received: from localhost ([::1]:35636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYOLY-0000Bh-5l for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 27 Mar 2022 04:34:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYOL0-0000BZ-J9 for help-gnu-emacs@gnu.org; Sun, 27 Mar 2022 04:33:26 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:60639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYOKy-00035v-Ml for help-gnu-emacs@gnu.org; Sun, 27 Mar 2022 04:33:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648370002; bh=mfKtcBPfw6b7OV8/dOxdv2D+o8xHch90ERmH+6RAh+Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=kCgc9rE1a+0YzZr2EIQ2YSSUmsiKd2Gm+empLrF/D8J/2aGys32fl7xpVReSSDchi Ww5fpevasdlfnLvC4XwSj+BEnyW/S0P32XJqJ6/ZBMueSYzK84Hz1L32QQzupsFvet pUFVlmrOXmc8rTmnMqg+1izwCf3eFSxbSP3TMijo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.243.20]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MCsU6-1nh9mM2gpk-008pu0; Sun, 27 Mar 2022 10:33:22 +0200 In-Reply-To: <871qyouuls.fsf@web.de> (Michael Heerdegen's message of "Sun, 27 Mar 2022 01:06:39 +0100") X-Provags-ID: V03:K1:fq870507aFcbgsOf6V5cqvT9ZWXSrt99BpVuTle1iOdLNw/5zl5 1JXE+3xy3lFjr2uSRNIq6A0qQAznoTUYI5TSUZIqTKiLGl5dU3F6n6YIyQozZ3x/1rv4f47 N75p1tJy8Q92Rsun3hlrZeDvt12BkiOz0Lh3kZfvCcglxAsuXmitOXEmSItDe+APbbnmyex XxwzFVqz/JGbcU01P6KLg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ov9gLDnvA10=:RRsNDtVrh3o6ss1ZQzPnb+ JfIQOSfiRbUC3Xt/5QY7usufwK3uAi+yclOWbJBLZj3q+/mdQ3Z6TH0vd2a4mM20+ITCTj4OD 1KF3IeHgeyQF6HU+Q03ZD1pwPFP/w/+e2WRvrFMKCPHpksE2+SYwjIAIyK5FkLYh4UcUpSkQ4 2H6swZ2HlCW6ewQcWcKea6oRYtpzRuFo8iBFG1Sfge6c7ETv8N+tw4bFZKp1NRq5sHX1D2ZSD JOwjsCHudKj/4ynhxx27xBP00hTqmcRrN8amkbzYVNH5K/jRoaJ/GUMBl57wzgLlY/1yeWh9Y z8cBkSds+hacj3VjA0Hx0PgfGn1R8rvIxlFmD6phlW9i2vYLCvQ5uVI48Nh/roTS9fawsf1Ap Nb/nKSK4P2OvFu+p8nndaoRWZykfD7ydjNy5Gh0tYPRmdVrLy8cPEGD1arjVpMlMrjFhZ48uA Xi1yOqoxEiQ2TsCOAphUitCzsVPa6K8jUPoVQ5LweD7DG2EZGu7xa3TCyopVc0JR8KNFSPnSN ODg3bbBVYqX9SB0FK4waCxIKSijUB4GykUlBCjuxVszEnqptKRWIdwVFfhsY+zfV3cYojk/B5 imNI/JZEidB1YPLLohTbRUe8OZ/o4iSJqnOUcOqLJCEK95AjGx5q9Dfcegm5Zb9FSYK0Gf7g5 htygjl8L+25yOdk7lvKWmVK1g3CKGX0AP7Pa93wlfY9qX6OKREKDRRMaM1rpNSqaFFzz/C3lH EAbXLRbdWajIYrRdU4G+0lThdRieTC+8Ztk0OurmyQmMGKEGKBxOo3kuRwpGwyfdHuUOgA30 Received-SPF: pass client-ip=212.227.15.19; 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:136787 Archived-At: Michael Heerdegen writes: > Michael Heerdegen writes: > >> > Does this happen with "emacs -Q"? >> No. > > But evaluating this TWICE (the `add-to-list' form is from > `tramp-register-archive-file-name-handler') does: > > #+begin_src emacs-lisp > (add-to-list 'file-name-handler-alist > (cons (tramp-archive-autoload-file-name-regexp) > #'tramp-archive-autoload-file-name-handler)) > (file-directory-p > "/home/micha/software/emacs/test/lisp/net/tramp-archive-resources/foo.is= o/") > |--> (error "Invalid handler in =E2=80=98file-name-handler-alist=E2=80= =99") > #+end_src > > Hope that helps, I still have no complete overview what is evaluated > when and why, but I think that adding > `tramp-archive-autoload-file-name-handler' multiple times could be > related. I cannot reproduce. The following works fine: --8<---------------cut here---------------start------------->8--- $ emacs -Q -l tramp --eval "(add-to-list 'file-name-handler-alist (cons (tr= amp-archive-autoload-file-name-regexp) #'tramp-archive-autoload-file-name-h= andler))" --eval '(file-directory-p "/home/albinus/tmp/out.tar.xz/")' --8<---------------cut here---------------end--------------->8--- > BTW, one difference, maybe a crucial one, between the two users is the > value of `tramp-archive-enabled': Here I have `nil` after starting > Emacs, the user where the problem occurs gets `t` after starting. That makes a difference, indeed. > Michael. Best regards, Michael.