From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pinkiesOut Newsgroups: gmane.emacs.help Subject: Re: Broken eshell tab completion (pcomplete) over ssh Date: Wed, 25 Apr 2012 10:10:54 -0700 (PDT) Message-ID: <23008251.409.1335373854347.JavaMail.geo-discussion-forums@yncb7> References: <9375722.1784.1335298519900.JavaMail.geo-discussion-forums@ynee1> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1335373998 13939 80.91.229.3 (25 Apr 2012 17:13:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2012 17:13:18 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gnu.emacs.help@googlegroups.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 25 19:13:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SN5mF-0003DR-5B for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 19:13:15 +0200 Original-Received: from localhost ([::1]:56725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN5mE-0005um-7y for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Apr 2012 13:13:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN5k7-0005K6-RJ for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 13:11:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SN5k1-0000v6-LM for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 13:11:03 -0400 Original-Received: from mail-yx0-f189.google.com ([209.85.213.189]:57064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SN5k1-0000v0-Hd for help-gnu-emacs@gnu.org; Wed, 25 Apr 2012 13:10:57 -0400 Original-Received: by yenm3 with SMTP id m3so830013yen.6 for ; Wed, 25 Apr 2012 10:10:54 -0700 (PDT) Original-Received: by 10.236.182.129 with SMTP id o1mr114709yhm.18.1335373854457; Wed, 25 Apr 2012 10:10:54 -0700 (PDT) Original-Path: glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=75.22.116.214; posting-account=N0n90AoAAADI-l3VKGJJwHN9mQMg_Esk Original-NNTP-Posting-Host: 75.22.116.214 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 75.22.116.214 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.189 X-Mailman-Approved-At: Wed, 25 Apr 2012 13:13:09 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84638 Archived-At: On Wednesday, April 25, 2012 1:52:22 AM UTC-4, XeCycle wrote: > pinkiesOut writes: > > > Although tab completion in eshell works on my local system, > > pressing tab when connected to another machine over ssh results > > in the insertion of a literal tab character. Running pcomplete > > manually with M-x produces the same result, confirming that the > > function is properly bound to my tab key. Some friendly folks at > > #emacs point out that tab completion in eshell should just work > > over ssh. > > > > Oddly, I do not have this problem when connecting to the same > > server using term or ansi-term mode. Does anyone have an idea of > > what might be breaking this functionality? > > It doesn't know which program you're running. It simply assumes > a command-line program, which is true --- you are talking to your > login shell. Since Eshell doesn't have a `char-mode' like term > does, it sends your input line by line, so it ends up as a > literal tab. > > Use `cd /ssh:user@host:'. > > -- > Carl Lei (XeCycle) > Department of Physics, Shanghai Jiao Tong University > OpenPGP public key: 7795E591 > Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591 XeCycle, This works. Thanks for the tip!