[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Args out of range
From: |
Kai Grossjohann |
Subject: |
Re: Args out of range |
Date: |
Sun, 19 Dec 2004 16:58:05 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Cristian Ionescu-Idbohrn <address@hidden> 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
- Args out of range, Cristian Ionescu-Idbohrn, 2004/12/19
- Re: Args out of range,
Kai Grossjohann <=