From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Why is TAB-completion in shell not working for some commands? Date: Wed, 09 Nov 2011 07:43:13 +0100 Message-ID: <4EBA2101.9010603@easy-emacs.de> References: <74F7A456-B7B9-4241-A11D-4EC5CF27DDAC@math.ethz.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1320821013 26910 80.91.229.12 (9 Nov 2011 06:43:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 06:43: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 Wed Nov 09 07:43:30 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RO1se-0003uT-ST for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 07:43:28 +0100 Original-Received: from localhost ([::1]:39437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO1se-0003Zx-E2 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 01:43:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58522) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO1sZ-0003Zh-Up for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 01:43:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO1sZ-0001Xl-0p for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 01:43:23 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:61022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO1sY-0001XX-Jz for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 01:43:22 -0500 Original-Received: from [192.168.178.27] (brln-4db9a0be.pool.mediaWays.net [77.185.160.190]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MCfv0-1REeE11NJq-009i7d; Wed, 09 Nov 2011 07:43:19 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.23) Gecko/20110920 SUSE/3.1.15 Thunderbird/3.1.15 In-Reply-To: <74F7A456-B7B9-4241-A11D-4EC5CF27DDAC@math.ethz.ch> X-Provags-ID: V02:K0:D6ruMf3l/mt/MEjNfVrEtHr0Mnw/lewIXYsV0HkWoRo nSZaV0lxj4n5uYGcLCqYFinqJCs5ypZ64iEIuG0ZHynSa47v1c ySS5t08Wt8iqRpjLikmAZDVfyr3lDtBSFIB8dfztBNDZxR5Bnh 4F8NotUj3DX2czeaepaoBqVMjRkvvviIfu0zE6eCNGAk0tQG0m 5JfmbJPPSIZE/ylOtox70sQ8Fn2hoabDFmG14+oGXSzqtYLytR V/KdGA9zOmxDO1cqDNQ85AlaG5xPHghwUdQOEvmxjCCOt/ANbn GV0aYaDD0FsQk1TYRs3GzKrRhE085JLvGD9OoZ7rnnsmonD6oS Dp5VRj2ygXVJ3fCFOgxR4AazS3npgNAoDIKXpuqX0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.171 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:82798 Archived-At: Am 08.11.2011 20:34, schrieb Marius Hofert: > Hi, > > I have a strange problem with OS: Mac OS X 10.7.2 and Emacs: GNU Emacs 24.0.91.1. > > If I open a shell with M-x shell, I can TAB-complete several commands, such as ps2pdf and many others. However, I can't seem to TAB-complete all commands. One exception is a2ps. I installed it, it works perfectly fine, I can TAB-complete it from the Mac's terminal, however, I can't TAB-complete it from the shell opened with M-x shell. The simple question is: Why? > > Note that if I type "echo $PATH", I get: > a) from the Mac's terminal: > /Applications/Emacs.app/Contents/MacOS/:/Applications/Emacs.app/Contents/MacOS/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin > b) from the emacs shell: > /Applications/Emacs.app/Contents/MacOS/:/Applications/Emacs.app/Contents/MacOS/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin > => exactly the same. > > If I type "which a2ps" from the emacs shell, I get: /opt/local/bin/a2ps so the correct place is found, but why is there no TAB-completion? > > Cheers, > > Marius > > > AFAIU it might matter, wherefrom you open the shell. It may or will have it's own (minor-)mode, where TAB completion is provided or not. In different available python-shells for example, TAB completion might be performed by different functions. Call M-x describe-mode from inside shell, to get info which mode is behind, which keys are set etc, Cheers, Andreas