From: Ian Eure <ian@digg.com>
To: Terrence Brannon <metaperl@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: shell-command-on-region with TRAMP - local binary
Date: Tue, 20 Jan 2009 09:56:52 -0800 [thread overview]
Message-ID: <1760F6DC-58A1-4206-BC50-63AF82799FD4@digg.com> (raw)
In-Reply-To: <847860d8-f647-4633-bf43-8c98a4005761@w1g2000prm.googlegroups.com>
On Jan 20, 2009, at 7:21 AM, Terrence Brannon wrote:
> i want to run HTML Tidy using a binary on my local machine ... the
> problem is the buffer I want to run it on is being edited via TRAMP
> ssh on a remote machine. So the shell-command-on-region uses ssh to
> run the command.
>
> How can I run shell-command-on-region on a remote buffer using a local
> binary?
M-: (let ((default-directory "/")) (call-interactively 'shell-command-
on-region)) RET
If you never want to use shell-command-on-region with remote
processes, you can define around-advice for that function. Otherwise,
I think you'll need another function that sets default-directory to a
local path.
- Ian
prev parent reply other threads:[~2009-01-20 17:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-20 15:21 shell-command-on-region with TRAMP - local binary Terrence Brannon
2009-01-20 16:33 ` Terrence Brannon
2009-01-20 17:06 ` Xah Lee
2009-01-20 17:56 ` Ian Eure [this message]
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=1760F6DC-58A1-4206-BC50-63AF82799FD4@digg.com \
--to=ian@digg.com \
--cc=help-gnu-emacs@gnu.org \
--cc=metaperl@gmail.com \
/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.