From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PJ Weisberg Newsgroups: gmane.emacs.help Subject: Re: Why is TAB-completion in shell not working for some commands? Date: Wed, 9 Nov 2011 07:28:48 -0800 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 Content-Type: multipart/alternative; boundary=0015174764dac717ad04b14ef15f X-Trace: dough.gmane.org 1320852549 18571 80.91.229.12 (9 Nov 2011 15:29:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 15:29:09 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Marius Hofert Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 09 16:29: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 1ROA5J-0003R2-FS for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 16:29:05 +0100 Original-Received: from localhost ([::1]:37342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROA5I-0007Yz-S3 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 10:29:04 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROA59-0007Ym-H3 for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 10:29:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROA54-0005p3-Ng for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 10:28:55 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:39325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROA54-0005oQ-JB for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 10:28:50 -0500 Original-Received: by faaq16 with SMTP id q16so2258906faa.0 for ; Wed, 09 Nov 2011 07:28:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2P16h9tvQWVWMwwioXZ48inw9WitwKgFyhqn0UNzN2c=; b=dZBh9CeCuoXnElbd+zKAbuNyq+aBy4fPcMOXMBza5YjcvpEoUXUAIs3oiWlUMi22D3 rKNwD/+EYydx9NpFf5+wzGWDEigiTfz6f0VDlnj8JXUlyMeWwCB6NBck81eScMs1qkTw 6vw+2ZQcAopAPjvWk8vw/WNREZHQAOghJ23yE= Original-Received: by 10.223.1.137 with SMTP id 9mr5531914faf.19.1320852528764; Wed, 09 Nov 2011 07:28:48 -0800 (PST) Original-Received: by 10.223.86.134 with HTTP; Wed, 9 Nov 2011 07:28:48 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 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:82819 Archived-At: --0015174764dac717ad04b14ef15f Content-Type: text/plain; charset=ISO-8859-1 I think you guys are going down the wrong track. 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... It sounds to me like OSX's launcher is not setting some environment variable that does get set when you run the terminal. Possibly $FPATH. I would guess that it's looking for and not finding a function called _a2ps to do the completion. -- -PJ --0015174764dac717ad04b14ef15f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think you guys are going down the wrong track.

On Tuesday, Novembe= r 8, 2011, Marius Hofert <= marius.hofert@math.ethz.ch> wrote:
> I just figured out that i= f I start emacs from the Mac's terminal (via "emacs" which st= arts /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...

It sou= nds to me like OSX's launcher is not setting some environment variable = that does get set when you run the terminal. =A0Possibly $FPATH. =A0I would= guess that it's looking for and not finding a function called _a2ps to= do the completion.

--

-PJ
--0015174764dac717ad04b14ef15f--