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: Re: Why is TAB-completion in shell not working for some commands? Date: Wed, 9 Nov 2011 08:45:52 +0100 Message-ID: References: <74F7A456-B7B9-4241-A11D-4EC5CF27DDAC@math.ethz.ch> <4EBA2101.9010603@easy-emacs.de> <40781343-DF59-4B4A-A4A6-6E50DEE3ADBB@math.ethz.ch> <4EBA2376.7050006@easy-emacs.de> <4EBA2713.2070301@easy-emacs.de> <4EBA2B13.9090709@easy-emacs.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320824764 16330 80.91.229.12 (9 Nov 2011 07:46:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 07:46:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?iso-8859-1?Q?Andreas_R=F6hler?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 09 08:46:00 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 1RO2rA-00036z-3y for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 08:46:00 +0100 Original-Received: from localhost ([::1]:46362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO2r9-0000hR-N2 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 02:45:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO2r6-0000hM-5u for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 02:45:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RO2r5-0004C3-4Q for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 02:45:56 -0500 Original-Received: from edge20.ethz.ch ([82.130.99.26]:40135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RO2r4-0004Br-QH for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 02:45:55 -0500 Original-Received: from CAS12.d.ethz.ch (172.31.38.212) by edge20.ethz.ch (82.130.99.26) with Microsoft SMTP Server (TLS) id 14.1.339.1; Wed, 9 Nov 2011 08:45:49 +0100 Original-Received: from [192.168.1.221] (129.132.146.66) by CAS12.d.ethz.ch (172.31.38.212) with Microsoft SMTP Server (TLS) id 14.1.339.1; Wed, 9 Nov 2011 08:45:52 +0100 In-Reply-To: <4EBA2B13.9090709@easy-emacs.de> X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [129.132.146.66] 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:82807 Archived-At: >=20 > so you have completion at least in this shell (?) >=20 Not for a2ps for example, only for other commands (as I wrote in the = beginning).=20 If I type a2p + TAB in the Mac's terminal, I get: a2p a2p-5.12 a2p5.10 a2p5.12 a2ping a2ps=20 The same in the emacs shell: Possible completions are: a2p a2p5.10 a2p5.12 a2ping =3D> a2p-5.12 and a2ps are missing [although I can execute, e.g., a2ps]. I can also use which a2ps in the emacs shell and correctly obtain: /opt/local/bin/a2ps Also, both PATHs are the same (in the terminal and in the emacs shell). I installed a2ps via Macports (package manager) and it correctly put in = the /opt/local/bin path to PATH. echo $PATH = /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=20 The only thing I did was: Macports defines the following line in .profile: export PATH=3D$PATH:/opt/local/bin:/opt/local/sbin I just added the following to .profile: export = PATH=3D/Applications/Emacs.app/Contents/MacOS/:/Applications/Emacs.app/Con= tents/MacOS/bin/:$PATH The reason for this is that with /Applications/Emacs.app... in the = beginning of PATH, I can type "emacs" in the terminal and start the same = emacs as I installed (the GUI version), not the very old emacs that = natively comes with Mac OS and that is /user/bin/emacs The main problem is that I can't figure out which commands work with TAB = completion and which don't. If not all work as in the terminal and if I = don't know which work, this is quite tedious to work with (because one = assumes that the command one is trying to complete is not installed = etc.) Cheers, Marius