From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#27612: 25.2; invoking term from a remote eshell uses the local path Date: Sat, 15 Jul 2017 09:38:46 +0200 Message-ID: <87iniu9mk9.fsf@detlef> References: <87shi86nse.fsf@gmail.com> <87r2xlaf1o.fsf@detlef> <87vamu65m8.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500104355 2770 195.159.176.226 (15 Jul 2017 07:39:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2017 07:39:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 27612@debbugs.gnu.org To: Pablo Barbachano Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 15 09:39:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHfS-0000R6-0u for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 09:39:10 +0200 Original-Received: from localhost ([::1]:41074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWHfX-00037P-Co for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 03:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dWHfN-00034O-Qg for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 03:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dWHfK-000236-N9 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 03:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36834) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dWHfK-000231-JC for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 03:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dWHfK-000269-De for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2017 03:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2017 07:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27612 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27612-submit@debbugs.gnu.org id=B27612.15001043368053 (code B ref 27612); Sat, 15 Jul 2017 07:39:02 +0000 Original-Received: (at 27612) by debbugs.gnu.org; 15 Jul 2017 07:38:56 +0000 Original-Received: from localhost ([127.0.0.1]:39511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHfE-00025p-Js for submit@debbugs.gnu.org; Sat, 15 Jul 2017 03:38:56 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:50659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dWHfC-00025Y-Ec for 27612@debbugs.gnu.org; Sat, 15 Jul 2017 03:38:54 -0400 Original-Received: from detlef.gmx.de ([212.86.58.84]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LcBPV-1dxOss1uS5-00jXj4; Sat, 15 Jul 2017 09:38:47 +0200 In-Reply-To: <87vamu65m8.fsf@gmail.com> (Pablo Barbachano's message of "Sat, 15 Jul 2017 00:00:47 +0200") X-Provags-ID: V03:K0:H2EvlRHOt468vx4aoycUcZm3uxIC10tZcfy6q4LduJ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org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134582 Archived-At: Pablo Barbachano writes: > Hi Michael, Hi Pablo, >> That is because term.el is not Tramp-aware. In `term-exec-1', it uses >> `start-process' instead of `start-file-process'. > > I tried that and my dummy test case suddenly worked. Sure. "hostnme" just dumps a string, and it doesn't send escape sequences to the terminal. > So that's enough to make it work, but more complex programs like 'top' or 'ipython' seem to have the output mangled. For example if I now do `term bash` > > ``` > $ echo -e "1" > 1 > $ echo -e "\r1" > 1 > ``` > > So something is going on with how the newlines are interpreted in the terminal. This does not happen if I run them locally. > > I can try playing with this for some time and maybe send a patch. You might try it. But I believe it is more than just newline handling. Escape sequences are sent, and the buffer playing the tty is not prepared for this in the remote case. I would start with the process-filter. > Thanks for the pointer! > -- > Pablo Best regards, Michael.