From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andrea Crotti Newsgroups: gmane.emacs.help Subject: Re: tramp & numberp Date: Tue, 26 Oct 2010 11:11:58 +0200 Message-ID: References: <871v7f37lj.fsf@gmx.de> <87vd4qg36o.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1288084943 10107 80.91.229.12 (26 Oct 2010 09:22:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2010 09:22:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 11:22:21 2010 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.69) (envelope-from ) id 1PAfjZ-0006TG-Aw for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2010 11:22:21 +0200 Original-Received: from localhost ([127.0.0.1]:59389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAfjY-0004pl-0P for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2010 05:22:20 -0400 Original-Received: from [140.186.70.92] (port=33345 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAfZl-0000zY-Us for help-gnu-emacs@gnu.org; Tue, 26 Oct 2010 05:12:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAfZk-0003al-Rx for help-gnu-emacs@gnu.org; Tue, 26 Oct 2010 05:12:13 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:50160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAfZk-0003ah-H5 for help-gnu-emacs@gnu.org; Tue, 26 Oct 2010 05:12:12 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PAfZh-0001Zn-ET for help-gnu-emacs@gnu.org; Tue, 26 Oct 2010 11:12:09 +0200 Original-Received: from ip1-201.halifax.rwth-aachen.de ([137.226.108.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Oct 2010 11:12:09 +0200 Original-Received: from andrea.crotti.0 by ip1-201.halifax.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Oct 2010 11:12:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 54 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip1-201.halifax.rwth-aachen.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:6eTjnd2YCTeKFYJPBwIR4UTKPYU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:75231 Archived-At: Michael Albinus writes: > Andrea Crotti writes: > >> With >> GNU Emacs 23.2.1 (x86_64-apple-darwin10.3.0, NS apple-appkit-1038.29) of >> 2010-05-09 on linc >> I can't even find the file tramp-sh.el... > > Yes, that patch I've referred to was for Tramp 2.2. For Tramp 2.1.18 > (bundled with Emacs 23.2), you might apply the following patch: > > *** ~/src/emacs-23/lisp/net/tramp.el.~99642~ 2010-10-25 09:00:04.640285001 +0200 > --- ~/src/emacs-23/lisp/net/tramp.el 2010-10-21 08:24:16.448917001 +0200 > *************** > *** 2816,2822 **** > (tramp-send-command-and-read > vec > (format > ! "((%s %s || %s -h %s) && %s -c '((\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)' %s || echo nil)" > (tramp-get-file-exists-command vec) > (tramp-shell-quote-argument localname) > (tramp-get-test-command vec) > --- 2816,2822 ---- > (tramp-send-command-and-read > vec > (format > ! "( (%s %s || %s -h %s) && %s -c '( (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)' %s || echo nil)" > (tramp-get-file-exists-command vec) > (tramp-shell-quote-argument localname) > (tramp-get-test-command vec) > *************** > *** 3223,3229 **** > ;; but it does not work on all remote systems. Therefore, we > ;; quote the filenames via sed. > "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs " > ! "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%X.0 %%Y.0 %%Z.0 %%s.0 \"%%A\" t %%i.0 -1)'); " > "echo \")\"") > (tramp-shell-quote-argument localname) > (tramp-get-ls-command vec) > --- 3223,3229 ---- > ;; but it does not work on all remote systems. Therefore, we > ;; quote the filenames via sed. > "cd %s; echo \"(\"; (%s -a | sed -e s/\\$/\\\"/g -e s/^/\\\"/g | xargs " > ! "%s -c '(\"%%n\" (\"%%N\") %%h %s %s %%Xe0 %%Ye0 %%Ze0 %%se0 \"%%A\" t %%ie0 -1)'); " > "echo \")\"") > (tramp-shell-quote-argument localname) > (tramp-get-ls-command vec) > > Best regards, Michael. And another question, how should I apply this patch in the best way? I mean I have the tramp.el.gz file that I can modify also from emacs but can I do that automatically since it's also compressed?