Hi,

i'm using tramp 2.2.0 on xemacs and i have internal error when using ssh filename completion on some of my servers: If i look at the buffer "*tramp/ssh [email protected]*" after the error i see the list of the filenames/directories of my remote server. But after each line i have a blank line. So the function tramp-sh-handle-file-name-all-completions cannot see the last 'ok' (because the last line is an empty one) and report an internal error.

Example of content of the tramp buffer:
***********
postfix/

mailname

python2.4/

../

updatedb.conf

debian_version

motd.tail

./

motd

bash_completion

crontab

mime.types

ok

***********

i don't know where the blank line came from. It's not from the perl script 'tramp-perl-file-name-all-completions' because if i execute it manually on the server it works like a charm without bank lines.

To fix this problem temporary i made the patch in attachment.

Best Regards
--- lisp/tramp-sh.el.orig	2010-12-16 13:31:01.000000000 +0100
+++ lisp/tramp-sh.el	2010-12-16 13:31:07.000000000 +0100
@@ -1734,6 +1734,10 @@
 
            ;; Now grab the output.
            (with-current-buffer (tramp-get-buffer v)
+             ;; Remove empty line Yves Blusseau Patch
+             (goto-char (point-min))
+             (while (re-search-forward "^\n" nil t)
+               (replace-match "" nil nil))
              (goto-char (point-max))
 
              ;; Check result code, found in last line of output

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to