[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error with tramp-archive-autoload-file-name-handler

From: Michael Heerdegen
Subject: Re: Error with tramp-archive-autoload-file-name-handler
Date: Mon, 28 Mar 2022 04:20:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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

$ emacs -Q -l tramp --eval "(add-to-list 'file-name-handler-alist (cons 
#'tramp-archive-autoload-file-name-handler))" --eval '(file-directory-p 
                    --eval "(add-to-list 'file-name-handler-alist (cons 
#'tramp-archive-autoload-file-name-handler))" --eval '(file-directory-p 

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.

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...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]