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 18:02:48 +0100 Message-ID: <9DE954E5-A870-4C0C-BF35-11D794B44D58@math.ethz.ch> 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 1320858189 31502 80.91.229.12 (9 Nov 2011 17:03:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 17:03:09 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: PJ Weisberg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 09 18:03:05 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 1ROBYG-0008Cw-Ns for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 18:03:04 +0100 Original-Received: from localhost ([::1]:56859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROBYF-0005CW-PI for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 12:03:03 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROBY6-0005C4-Ry for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 12:02:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROBY2-0008H9-LB for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 12:02:54 -0500 Original-Received: from edge10.ethz.ch ([82.130.75.186]:20384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROBY2-0008Gv-CR for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 12:02:50 -0500 Original-Received: from CAS10.d.ethz.ch (172.31.38.210) by edge10.ethz.ch (82.130.75.186) with Microsoft SMTP Server (TLS) id 14.1.339.1; Wed, 9 Nov 2011 18:02:48 +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; Wed, 9 Nov 2011 18:02:48 +0100 In-Reply-To: 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.75.186 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:82821 Archived-At: On 2011-11-09, at 16:28 , PJ Weisberg wrote: > I think you guys are going down the wrong track. >=20 > On Tuesday, November 8, 2011, Marius Hofert = wrote: > > I just figured out that if I start emacs from the Mac's terminal = (via "emacs" which starts /Applications/Emacs.app/Contents/MacOS/Emacs) = and open an emacs shell with M-x shell, I can tab-complete a2ps. > > > > Hmmm... so the GUI version seems to act weird... >=20 > It sounds to me like OSX's launcher is not setting some environment = variable that does get set when you run the terminal. I'm no expert on this (otherwise I would have figured it out on my own), = but it sounds reasonable. > Possibly $FPATH. never heard about that. I echo'ed that in the terminal and in the emacs = shell and obtained an empty line in both cases. > I would guess that it's looking for and not finding a function called = _a2ps to do the completion. >=20 > --=20 >=20 > -PJ