Friedrich Dominicus <[EMAIL PROTECTED]> writes:

> --bug report follows this line--
> after setting tramp-unified-filenames to nil and running 
> C-x C-f /[ssh/[EMAIL PROTECTED] 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:[EMAIL PROTECTED]:/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.



_______________________________________________
Tramp-devel mailing list
[EMAIL PROTECTED]
http://mail.nongnu.org/mailman/listinfo/tramp-devel

Reply via email to