From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: Tramp question Date: Tue, 19 Oct 2010 17:49:17 +0200 Message-ID: <87mxqab2te.fsf@gmx.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1287503414 1566 80.91.229.12 (19 Oct 2010 15:50:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2010 15:50:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 19 17:50:12 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P8ERy-0005j1-S7 for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Oct 2010 17:50:07 +0200 Original-Received: from localhost ([127.0.0.1]:48237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8ERy-000433-1I for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Oct 2010 11:50:06 -0400 Original-Received: from [140.186.70.92] (port=41050 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8ERR-0003sl-2X for help-gnu-emacs@gnu.org; Tue, 19 Oct 2010 11:49:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8ERP-0004ob-VU for help-gnu-emacs@gnu.org; Tue, 19 Oct 2010 11:49:32 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:42980 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P8ERP-0004oH-K2 for help-gnu-emacs@gnu.org; Tue, 19 Oct 2010 11:49:31 -0400 Original-Received: (qmail invoked by alias); 19 Oct 2010 15:49:28 -0000 Original-Received: from p4FC18C84.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.193.140.132] by mail.gmx.net (mp043) with SMTP; 19 Oct 2010 17:49:28 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+hPgxuh2OhChC7QivVPB5xoYsWX2vVhCpxQtP6VU MhGPaFugURx7z8 In-Reply-To: (Andrea Crotti's message of "Tue, 19 Oct 2010 16:13:11 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75163 Archived-At: Andrea Crotti writes: > --8<---------------cut here---------------start------------->8--- > M-: RET (shell-command-to-string "git ls-files") > --8<---------------cut here---------------end--------------->8--- > it doesn't work on the remote machine. `shell-command-to-string' uses internally `call-process', which does not support processes on remote hosts. Replacing this call by `process-file' seems to DTRT. You might write a bug report. > I think that's more or less also why something works in tramp and > something doesn't (gtags-mode for example). I do not know, whether it is always intended to run `shell-command-to-string' on the remote host. Must be checked, before it is changed. Best regards, Michael.