all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: tramp & numberp
Date: Tue, 26 Oct 2010 11:11:58 +0200	[thread overview]
Message-ID: <m1bp6hpbc1.fsf@ip1-201.halifax.rwth-aachen.de> (raw)
In-Reply-To: 87vd4qg36o.fsf@gmx.de

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?




  reply	other threads:[~2010-10-26  9:11 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-24 14:07 tramp & numberp Andrea Crotti
2010-10-24 14:12 ` Andrea Crotti
2010-10-24 15:59 ` Michael Albinus
2010-10-24 16:06   ` Andrea Crotti
2010-10-24 16:09   ` Andrea Crotti
2010-10-25  7:08     ` Michael Albinus
2010-10-26  9:11       ` Andrea Crotti [this message]
2010-10-26 10:47         ` Andrea Crotti
2010-10-26 12:21           ` Michael Albinus
2010-10-26 12:26           ` Daniel Pittman
2010-10-26 12:20         ` Michael Albinus
2010-10-26 15:27           ` Andrea Crotti
2010-10-26 15:48             ` Michael Albinus
2010-10-27 11:31             ` Michael Albinus
2010-10-27 12:02               ` Andrea Crotti
2010-10-25  7:12     ` Andrea Crotti
2010-10-25  9:36       ` Michael Albinus
2010-10-25 11:16         ` Andrea Crotti
2010-10-25 11:51           ` Michael Albinus
2010-10-25 12:26             ` Andrea Crotti
2010-10-25 12:40               ` Michael Albinus
2010-10-25 12:45                 ` Andrea Crotti
2010-10-25 13:54                   ` Michael Albinus
2010-10-25 15:01                     ` Andrea Crotti
2010-10-25 15:33                       ` Michael Albinus
2010-10-25 15:41                         ` Andrea Crotti
2010-10-25 18:30                           ` Michael Albinus
2010-10-26  8:14                             ` Andrea Crotti
2010-10-26  8:52                               ` Michael Albinus
2010-10-25 12:48                 ` Andrea Crotti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1bp6hpbc1.fsf@ip1-201.halifax.rwth-aachen.de \
    --to=andrea.crotti.0@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.