[Top][All Lists]

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

Re: tramp (2.0.38); Followup to Hard times with XEmacs ...

From: Michael Albinus
Subject: Re: tramp (2.0.38); Followup to Hard times with XEmacs ...
Date: Mon, 05 Jan 2004 15:53:12 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/20.7 (hpux)

Friedrich Dominicus <address@hidden> writes:

> --bug report follows this line--
> after setting tramp-unified-filenames to nil and running 
> C-x C-f /[ssh/address@hidden I got the error message 
> that this is not a valid tramp filename 

This case, I'ld like to see a backtrace for analyzing.

> while setting tramp-unified-filenames to t and running
> C-x C-f 
> /ssh:address@hidden:/home/frido/.zshrc
> I got the error message that the directory containing this path does
> not exist. 


>  tramp-file-name-structure '("^/\\(\\([a-zA-Z_0-9-]+\\):\\)?\\(\\([^:@/       
> ]*\\)@\\)?\\([a-zA-Z0-9_.#-]*\\):\\(.*$\\)" 2 4 5 6)
>  tramp-file-name-regexp "\\`/\\[.*\\]"


>  file-name-handler-alist 
> '(("\\(\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'\\)\\|\\(\\.bz2\\(~\\|\\.~[0-9]+~\\)?\\'\\)\\|\\(\\.tgz\\'\\)\\|\\(\\.gz\\(~\\|\\.~[0-9]+~\\)?\\'\\)"
>  . jka-compr-handler)
>                            ("^/\\([[][^]]*\\)?$" .
>                             tramp-completion-file-name-handler)
>                            ("\\`/\\[.*\\]" . tramp-file-name-handler))

tramp-file-name-structure reflects a regexp for unified
filenames. tramp-file-name-regexp and file-name-handler-alist are
valid for "separate" filenames. How does this happen?

tramp-unified-filenames, tramp-file-name-regexp and adding of
tramp-file-name-handler to file-name-handler-alist are autoloads. They
are executed _before_ your .emacs (or .xemacs/init.el), i.e. setting
of tramp-unified-filenames is too late in your init file.

tramp-file-name-structure is not an autoload. Therefore, setting
tramp-unified-filenames in your init file takes effect.

If you want to have unified Tramp filenames, you need to disable the
autoload for Tramp in XEmacs. Personally, I do change file permissions
to 000 for .../xemacs-packages/lisp/tramp/auto-autoloads.el*

> Regards
> Friedrich

Best regards, Michael.

reply via email to

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