[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shell-command-on-region doesn't use tramp
From: |
Dan Davison |
Subject: |
shell-command-on-region doesn't use tramp |
Date: |
Thu, 18 Feb 2010 10:31:09 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
I'd like to use shell-command-on-region with tramp, so that the shell
process is running remotely. However, it seems that although
shell-command behaves in this way, shell-command-on-region does
not. E.g. this will insert the name of the local host
(let ((default-directory "/address@hidden:"))
(shell-command-on-region (point) (mark) "hostname" t))
but this will insert the name of the remote host
(let ((default-directory "/address@hidden:"))
(shell-command "hostname" t))
emacs-version 23.1.1, tramp-version 2.1.15, Ubuntu 9.10
I'm curious as to whether this is intended behaviour or a bug, and would
appreciate any suggestions for a nice way to implement my own version of
shell-command-on-region (using tramp technology?) that does run
remotely.
Interestingly the above behaviour seems to contradict this thread on
help-gnu-emacs from last year:
http://lists.gnu.org/archive/html/help-gnu-emacs/2009-01/msg00487.html
But is consistent with this 2002 thread on tramp-devel, where the
bug/feature question is not resolved
http://www.mail-archive.com/address@hidden/msg00341.html
Dan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- shell-command-on-region doesn't use tramp,
Dan Davison <=