[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp & numberp
From: |
Andrea Crotti |
Subject: |
Re: tramp & numberp |
Date: |
Tue, 26 Oct 2010 11:11:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) |
Michael Albinus <michael.albinus@tieto.com> writes:
> Andrea Crotti <andrea.crotti.0@gmail.com> 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?
- Re: tramp & numberp, (continued)
- Re: tramp & numberp, Andrea Crotti, 2010/10/25
- Re: tramp & numberp, Michael Albinus, 2010/10/25
- Re: tramp & numberp, Andrea Crotti, 2010/10/25
- Re: tramp & numberp, Michael Albinus, 2010/10/25
- Re: tramp & numberp, Andrea Crotti, 2010/10/25
- Re: tramp & numberp, Michael Albinus, 2010/10/25
- Re: tramp & numberp, Andrea Crotti, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/26
- Re: tramp & numberp, Andrea Crotti, 2010/10/25
- Re: tramp & numberp, Michael Albinus, 2010/10/25
- Re: tramp & numberp,
Andrea Crotti <=
- Re: tramp & numberp, Andrea Crotti, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/26
- Re: tramp & numberp, Daniel Pittman, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/26
- Re: tramp & numberp, Andrea Crotti, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/26
- Re: tramp & numberp, Michael Albinus, 2010/10/27
- Re: tramp & numberp, Andrea Crotti, 2010/10/27