From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.help Subject: Re: Why is shell env different in emacs shell mode than normal shell Date: Fri, 09 Mar 2012 18:45:00 +0100 Message-ID: <20120309174511.63E5D1FDEF@saturn.ch.ristopher.com> References: <33473173.post@talk.nabble.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1331315133 29542 80.91.229.3 (9 Mar 2012 17:45:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2012 17:45:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 18:45:33 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 1S63sg-0000qP-AG for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2012 18:45:30 +0100 Original-Received: from localhost ([::1]:50377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63sf-0003Wt-FO for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2012 12:45:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63sV-0003VZ-ID for help-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:45:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S63sS-0000pP-BD for help-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:45:19 -0500 Original-Received: from ristopher.com ([146.185.21.93]:33761 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S63sR-0000op-UD for help-gnu-emacs@gnu.org; Fri, 09 Mar 2012 12:45:16 -0500 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 63E5D1FDEF; Fri, 9 Mar 2012 17:45:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1331315111; bh=60Y3rq3bdobMG7OVh6p9Kx6qXwU+5ZhQENxCXZQ4wfI=; h=From:To:Subject:In-Reply-To:References:Date:MIME-Version: Content-Type:Message-Id; b=ntCX0n/JalAOD65EbDtIns43qJKm/AYZrHgPufgecVqpouNRXAEMTdlRXyo6xlyKe gCAjHy8qSDDw81eDqhiY2uoudNqlDnJHOsd8ASWlX4A36dQmTurp3e7fhspVBAfFYZ aftSVBzMO2Z16yotXhhQA3f5JxvuCmnvXSkb5R6Q= In-Reply-To: <33473173.post@talk.nabble.com> (AngusC's message of "Fri, 9 Mar 2012 09:10:48 -0800 (PST)") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 146.185.21.93 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:83989 Archived-At: AngusC writes: > I am running emacs 23.3.1 on Windows 7. Using the standard command > line I have tab auto-completion but this doesn't work if in emacs I > use M-x shell. Is this normal? do I need to configure something in > the emacs config file? To take advantage of Emacs's text processing power, M-x shell RET has to make some trade-offs. This includes no real support of ncurses or no support for native (bash) completion. To get a real interactive terminal, try M-x term RET. Other than that, you could try to write your own completion function in Elisp. Check `shell-dynamic-complete-functions'. Christopher