From: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: igrep on remote files with tramp?
Date: Wed, 03 Aug 2005 10:10:16 +0200 [thread overview]
Message-ID: <nq3bprmoev.fsf@alcatel.de> (raw)
In-Reply-To: <dcole3$bmk$1@sea.gmane.org> (Kevin Rodgers's message of "Tue, 02 Aug 2005 14:35:13 -0600")
Kevin Rodgers <ihs_4664@yahoo.com> writes:
> > Can't a local igrep be run on the local tmp files that get used for so
> > many other purposes?
>
> I don't know how tramp works, but ange-ftp evidently does not leave the
> local tmp files on disk once their contents have been inserted into the
> buffer.
So does Tramp.
> > In any case, being able to run remote processes with tramp would be
> great.
>
> It turns out that ange-ftp provides file name handlers for
> shell-command, which uses remote-shell-program (e.g. /bin/remsh) to
> execute the command on the other host when visiting a remote file or
> directory. So I would be suprised if tramp does not provide the same
> functionality when you use e.g. `! grep foo *.java'.
So does Tramp.
> But igrep and grep are based on compile, which uses start-process
> instead of shell-command. But since tramp provides commands for
> compilation of files on remote hosts (see
> http://www.gnu.org/software/tramp/#Compilation), perhaps tramp-util.el
> just needs something like this (cribbed from tramp-compile):
[...]
It could go this way. But as I wrote already, it would be an endless
task to provide such Tramp pendants for all usefull
commands. Therefore it won't be done inside main Tramp development
(except the integration of `compile', which already exists).
Instead of I hope to convince the emacs-devel list to extend
`call-process' and `start-process' supporting something like file
handlers. There was already a step into that direction with
`process-file', which should act like `call-process' on remote
hosts. But this approach is not sufficient I fear.
> > I've frequently wished I could do this with gdb within emacs, for
> instance.
>
> You are not alone.
That will be the proof of concept (prototype implementation). If it
doesn't work for gdb out of the box, the concept is not worth to be
applied.
Best regards, Michael.
next prev parent reply other threads:[~2005-08-03 8:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-28 17:38 igrep on remote files with tramp? Daniel Berdine
2005-07-28 17:55 ` Daniel Berdine
2005-07-28 19:28 ` Kevin Rodgers
2005-07-28 21:02 ` Michael Albinus
2005-07-28 22:54 ` Kevin Rodgers
2005-07-28 19:43 ` Michael Albinus
[not found] ` <mailman.1998.1122579165.20277.help-gnu-emacs@gnu.org>
2005-07-31 23:52 ` Daniel Berdine
2005-08-02 20:35 ` Kevin Rodgers
2005-08-02 23:56 ` Kevin Rodgers
2005-08-03 8:10 ` Michael Albinus [this message]
[not found] ` <mailman.2000.1122579980.20277.help-gnu-emacs@gnu.org>
2005-08-01 0:04 ` Daniel Berdine
2005-08-01 5:01 ` igrep on remote files with tramp? (~Solved) Daniel Berdine
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nq3bprmoev.fsf@alcatel.de \
--to=michael.albinus@gmx.de \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).