Cristian Ionescu-Idbohrn <[EMAIL PROTECTED]> writes:

> I keep getting this error when trying to read a remote file using the ssh
> method:
>
>   Args out of range: 0, 1
>
> This is (some of) the backtrace:

You don't say which version of Tramp you're using.  Please try this
patch for CVS head:

Index: lisp/tramp.el
===================================================================
RCS file: /cvsroot/tramp/tramp/lisp/tramp.el,v
retrieving revision 2.408
diff -u -r2.408 tramp.el
--- lisp/tramp.el       5 Dec 2004 16:55:01 -0000       2.408
+++ lisp/tramp.el       19 Dec 2004 15:55:19 -0000
@@ -5838,7 +5838,7 @@
       (save-excursion
        (goto-char start-point)
        (when (looking-at (regexp-quote tramp-last-cmd))
-         (delete-region (point) (forward-line 1)))))
+         (delete-region (point) (progn (forward-line 1) (point))))))
     ;; Add output to debug buffer if appropriate.
     (when tramp-debug-buffer
       (append-to-buffer


Please try this other patch for the 2.0 stable branch:

Index: lisp/tramp.el
===================================================================
RCS file: /cvsroot/tramp/tramp/lisp/tramp.el,v
retrieving revision 2.359.2.21
diff -u -r2.359.2.21 tramp.el
--- lisp/tramp.el       5 Dec 2004 16:54:00 -0000       2.359.2.21
+++ lisp/tramp.el       19 Dec 2004 15:57:47 -0000
@@ -6336,7 +6336,7 @@
       (save-excursion
        (goto-char start-point)
        (when (looking-at (regexp-quote tramp-last-cmd))
-         (delete-region (point) (forward-line 1)))))
+         (delete-region (point) (progn (forward-line 1) (point))))))
     ;; Add output to debug buffer if appropriate.
     (when tramp-debug-buffer
       (append-to-buffer


I haven't tested them (sorry).  Do they work?

Kai


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

Reply via email to