From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Why is TAB-completion in shell not working for some commands? Date: Tue, 8 Nov 2011 20:34:39 +0100 Message-ID: <74F7A456-B7B9-4241-A11D-4EC5CF27DDAC@math.ethz.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320780898 5658 80.91.229.12 (8 Nov 2011 19:34:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2011 19:34:58 +0000 (UTC) To: Emacs help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 08 20:34:53 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 1RNrRb-00050B-Lf for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Nov 2011 20:34:51 +0100 Original-Received: from localhost ([::1]:60787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNrRX-0000RE-Ta for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Nov 2011 14:34:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:33202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNrRU-0000R8-3g for help-gnu-emacs@gnu.org; Tue, 08 Nov 2011 14:34:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNrRT-00047P-8x for help-gnu-emacs@gnu.org; Tue, 08 Nov 2011 14:34:44 -0500 Original-Received: from edge20.ethz.ch ([82.130.99.26]:10577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNrRT-00046W-3x for help-gnu-emacs@gnu.org; Tue, 08 Nov 2011 14:34:43 -0500 Original-Received: from CAS10.d.ethz.ch (172.31.38.210) by edge20.ethz.ch (82.130.99.26) with Microsoft SMTP Server (TLS) id 14.1.339.1; Tue, 8 Nov 2011 20:34:37 +0100 Original-Received: from 77-58-145-155.dclient.hispeed.ch (77.58.145.155) by cas10.d.ethz.ch (172.31.38.210) with Microsoft SMTP Server (TLS) id 14.1.339.1; Tue, 8 Nov 2011 20:34:39 +0100 X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [77.58.145.155] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.99.26 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:82796 Archived-At: 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:=20 = /Applications/Emacs.app/Contents/MacOS/:/Applications/Emacs.app/Contents/M= acOS/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/t= exbin:/opt/local/bin:/opt/local/sbin b) from the emacs shell:=20 = /Applications/Emacs.app/Contents/MacOS/:/Applications/Emacs.app/Contents/M= acOS/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/t= exbin:/opt/local/bin:/opt/local/sbin =3D> exactly the same.=20 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