From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: eshell/cp not able to use Tramp syntax ? Date: Wed, 31 Oct 2007 21:30:21 +0100 Message-ID: <87mytz10yq.fsf@gmx.de> References: <87myu3ed19.fsf@bzg.ath.cx> <87myu3zgiq.fsf@imag.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1193862630 2359 80.91.229.12 (31 Oct 2007 20:30:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2007 20:30:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Dave O'Toole To: =?iso-8859-15?Q?Fran=E7ois_Puitg?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 31 21:30:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1InKCq-0007Ey-Mg for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Oct 2007 21:30:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InKCg-0005jP-UB for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Oct 2007 16:30:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InKCN-0005fd-Hp for help-gnu-emacs@gnu.org; Wed, 31 Oct 2007 16:29:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InKCL-0005bV-8x for help-gnu-emacs@gnu.org; Wed, 31 Oct 2007 16:29:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InKCL-0005b1-3P for help-gnu-emacs@gnu.org; Wed, 31 Oct 2007 16:29:57 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1InKCJ-0008RI-JD for help-gnu-emacs@gnu.org; Wed, 31 Oct 2007 16:29:56 -0400 Original-Received: (qmail invoked by alias); 31 Oct 2007 20:29:53 -0000 Original-Received: from p57A21F54.dip0.t-ipconnect.de (EHLO arthur.local) [87.162.31.84] by mail.gmx.net (mp031) with SMTP; 31 Oct 2007 21:29:53 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/l6g9rVFXlrt6ZHAFq8Z0fp/QYNFdfR++f//HV0K IxS2iDl3OYHVA+ In-Reply-To: <87myu3zgiq.fsf@imag.fr> (=?iso-8859-15?Q?=22Fran=E7ois?= Puitg"'s message of "Dim, 28 Oct 2007 11:21:17 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48952 Archived-At: "Fran=E7ois Puitg" writes: > So I'll load the required library manually: > > ,---- > | [(meta x)] load-library esh-maint > | [(meta x)] load-library em-unix > | [(meta :)] (eshell/cp "/home/fran/Devel/Emacs/Org/test.c" > | "/[puitg@ssh-leibniz.imag.fr]public_html/") > `---- > > Lisp backtrace below and debug info at the end of the mail. > > -- Frn=E7s > > Debugger entered--Lisp error: (wrong-type-argument number-char-or-marker-= p (0 . 7498)) > =3D((0 . 7498) 905219) > (and attr-target (or (not ...) (eq system-type ...)) (setq attr (eshell= -file-attributes ...)) (nth 10 attr-target) (nth 10 attr) (=3D (nth 10 attr= -target) (nth 10 attr)) (nth 11 attr-target) (nth 11 attr) (=3D (nth 11 att= r-target) (nth 11 attr))) > (cond ((string-match "\\`\\.\\.?\\'" ...) (if eshell-warn-dot-directori= es ...)) ((and attr-target ... ... ... ... ... ... ... ...) (eshell-error .= ..)) (t (let ... ...))) > (while files (setcar files (directory-file-name ...)) (cond (... ...) (= ... ...) (t ...)) (setq files (cdr files))) > (let ((attr-target ...) (is-dir ...) attr) (if (and ... ... ...) (error= "%s: when %s multiple files, last argument must be a directory" command ac= tion)) (while files (setcar files ...) (cond ... ... ...) (setq files ...))) > eshell-shuffle-files("cp" "copying" ("/home/fran/Devel/Emacs/Org/test.c= ") "/[puitg@ssh-leibniz.imag.fr]public_html/" copy-file nil t nil) I've debugged it down to an error in eshell-shuffle-files. With XEmacs=20 21.4.20 and eshell from the XEmacs package repository, we have ((and attr-target (or (not (eshell-under-windows-p)) (eq system-type 'ms-dos)) (setq attr (eshell-file-attributes (car files))) (nth 10 attr-target) (nth 10 attr) (=3D (nth 10 attr-target) (nth 10 attr)) (nth 11 attr-target) (nth 11 attr) (=3D (nth 11 attr-target) (nth 11 attr))) With GNU Emacs 23 and the builtin eshell from the CVS repository, where it works, we have ((and attr-target (or (not (eshell-under-windows-p)) (eq system-type 'ms-dos)) (setq attr (eshell-file-attributes (car files))) (nth 10 attr-target) (nth 10 attr) ;; Use equal, not -, since the inode and the device could ;; cons cells. (equal (nth 10 attr-target) (nth 10 attr)) (nth 11 attr-target) (nth 11 attr) (equal (nth 11 attr-target) (nth 11 attr))) So the error is already known (see the comment); XEmacs shall sync eshell. Best regards, Michael.