Michael Albinus | 1 Feb 14:09 2003
Picon
Picon

Re: filename completion ntemacs cygwin latest tramp - problem with eieio ?

"Thomas Haselberger" <thomas.haselberger <at> ucpmorgen.com> writes:

> dont know what happens there; but anyway, as requiring ange-ftp before tramp does the trick I'll probably
stop investigating here (even if I'm not satisfied with the results and still curious what happens ).

Finally, it seems like speedbar is the root of the problem. It
requires ange-ftp silently. You can check it yourself with the
following lines in your .emacs:

(require 'tramp)
(message "after tramp: %s" file-name-handler-alist)
(require 'speedbar)
(message "after speedbar: %s" file-name-handler-alist)

As workaround, you need to require either ange-ftp or (better)
speedbar before Tramp. I'll contact the maintainer of speedbar in
order to fix it. Anyway, wouldn't it be cool if Tramp is integrated in
speedbar, too?

> thanks for your advice,
> 
> 	tom

Best regards, Michael.
Eduardo Muñoz | 2 Feb 00:46 2003
Picon

tramp (2.0.28); dired can't reach root dir


Emacs  : GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195)
 of 2003-01-20 on EMF
Package: tramp (2.0.28)

C-x C-f /pscp:me <at> somehost:/

When I type the above expression I land in /home/emf (my
home dir on somehost). The culprit seems to be
dired-noselect, that strips the last '/'. I don't see an
easy solution for this problem.

--

-- 

Eduardo Muñoz
Eduardo Muñoz | 2 Feb 16:32 2003
Picon

tramp (2.0.28); dired can't reach root dir


Emacs  : GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195)
 of 2003-01-20 on EMF
Package: tramp (2.0.28)

After some hacking the problem seems to be that the function
tramp-handle-directory-file-name is no clever enough about
directory handling.

I changed the fuction as follows and everything seems
correct: 

(defun tramp-handle-directory-file-name (directory)
  "Like `directory-file-name' for tramp files."
  (with-parsed-tramp-file-name directory nil
    (let ((directory-length-1 (1- (length directory))))
      (save-match-data
	(if (and (eq (aref directory directory-length-1) ?/)
		 (eq (string-match tramp-file-name-regexp directory) 0)
                 (not (string= path "/"))) ; <- Changed line !!
	    (substring directory 0 directory-length-1)
	  directory)))))

HTH

--

-- 

Eduardo Muñoz
Kai Großjohann | 3 Feb 19:25 2003
Picon

Re: tramp (2.0.28); dired can't reach root dir

It seems there's a lot of voodoo going on in that function.  What do
people think about this one?

(defun tramp-handle-directory-file-name (directory)
  "Like `directory-file-name' for tramp files."
  ;; If path component of filename is "/", leave it unchanged.
  ;; Otherwise, remove any trailing slash from path component.
  ;; Method, host, etc, are unchanged.
  (with-parsed-tramp-file-name directory nil
    (if (and (eq (aref path (1- (length path))) ?/)
	     (not (string= path "/")))
	(substring directory 0 -1)
      directory)))

I wish it could be further simplified.  But `directory-file-name'
cannot be told to just use the Unix behavior.
--

-- 
A turnip curses Elvis
Kai Großjohann | 3 Feb 21:20 2003
Picon

What does this code do?

There's this piece of code in tramp.el; does anyone know what it does?

(defun tramp-parse-passwd (filename)
  "Return a list of (user host) tuples allowed to access.
Host is always \"localhost\"."

  (let (res)
    (if (and (symbolp 'user) (zerop (length user)))
	'(("root" nil))

Why does it refer to the symbol user?
--

-- 
A turnip curses Elvis
Kai Großjohann | 3 Feb 21:41 2003
Picon

Users of tramp-chunksize speak up!

Some of you are using tramp-chunksize, I think.  Could you please
speak up and say what's your local system, what's the remote system,
how you connect, and what's the value of tramp-chunksize that you use?

(As a reminder: tramp-chunksize can be used to make sending of data
to the remote host slower.  For some people, sending data too quickly
meant that it didn't arrive on the remote end.)

I've changed the default value to 500 now (send 500 bytes, then wait
0.1 seconds before sending the next chunk), from the old value of nil
(send all of it at once).  So if you use inline methods and observe a
slowdown, that's where it is coming from.
--

-- 
A turnip curses Elvis
Bruce Tulloch | 4 Feb 06:12 2003

tramp (2.0.28); Tramp does not properly replace ange-ftp

--text follows this line--

Enter your bug report in this message, including as much 
detail as you
possibly can about the problem, what you did to cause it and 
what the
local and remote machines are.

If you can give a simple set of instructions to make this 
bug happen
reliably, please include those.  Thank you for helping kill 
bugs in
TRAMP.

Another useful thing to do is to put (setq 
tramp-debug-buffer t) in
the ~/.emacs file and to repeat the bug.  Then, include the 
contents
of the *tramp/foo* buffer and the *debug tramp/foo* buffer 
in your bug
report.

--bug report follows this line--

Tramp does not turn off Ange-Ftp "permanently".

Instead ange-ftp hooks are removed from 
file-name-handler-alist only
to be replaced in this alist (with higher priority than 
tramp) when
(Continue reading)

Michael Albinus | 4 Feb 12:53 2003
Picon
Picon

Re: Users of tramp-chunksize speak up!

kai.grossjohann <at> uni-duisburg.de (Kai Großjohann) writes:

> Some of you are using tramp-chunksize, I think.  Could you please
> speak up and say what's your local system, what's the remote system,
> how you connect, and what's the value of tramp-chunksize that you use?

I've seen problems under HP-UX 10.20 & 11.00, even applying ssh to the
local machine. Using tramp-chunksize 500 is OK. Applying ssh outside
Emacs is OK as well. JFTR.

Best regards, Michael.
Michael Albinus | 4 Feb 13:36 2003
Picon
Picon

Re: What does this code do?

kai.grossjohann <at> uni-duisburg.de (Kai Großjohann) writes:

> There's this piece of code in tramp.el; does anyone know what it does?

It's sloppy code from me.

> (defun tramp-parse-passwd (filename)
>   "Return a list of (user host) tuples allowed to access.
> Host is always \"localhost\"."
> 
>   (let (res)
>     (if (and (symbolp 'user) (zerop (length user)))
> 	'(("root" nil))
> 
> Why does it refer to the symbol user?

It assumes that tramp-parse-passwd is called from
tramp-completion-handle-file-name-all-completions. Intention is to
provide "root <at> localhost" as default for su-alike user/host completion.

It's somewhere in a dusty part of my todo list making it clean (I know
the compiler warning). Maybe I should do it now, finally ...

Best regards, Michael.
Michael Albinus | 4 Feb 14:11 2003
Picon
Picon

Re: tramp (2.0.28); Tramp does not properly replace ange-ftp

Bruce Tulloch <bruce <at> causal.com> writes:

> Reloading tramp-ftp is the only way I have found to reset this alist
> (other than manually). My question is why is it necessary to remove

M-: (tramp-disable-ange-ftp)

should do the trick.

> the ange-ftp hooks at all ? Would it not be better just to leave them
> in the list _below_ the tramp hooks. How can I do this ?

Nice idea. I'll test it next days in order to see whether there are
side-effects.

Best regards, Michael.

Gmane