From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Why is TAB-completion in shell not working for some commands? Date: Tue, 08 Nov 2011 20:34:30 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332967845 8248 80.91.229.3 (28 Mar 2012 20:50:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2012 20:50:45 +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 Mar 28 22:50:44 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SCzpF-0006U7-Er for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 22:50:37 +0200 Original-Received: from localhost ([::1]:47660 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCzpE-0007yx-Su for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2012 16:50:36 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe01.iad.POSTED!00000000!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) Cancel-Lock: sha1:iBgXJuNEbSlVxHcD06y+JOnHGFI= Original-Lines: 10 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Wed, 09 Nov 2011 01:34:30 UTC Original-Xref: usenet.stanford.edu gnu.emacs.help:189697 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:84167 Archived-At: > 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? Probably because you set $PATH from your shell initialization files, but those aren't run before running Emacs. So the $PATH that your shell uses is different from the one Emacs uses (and the tab completion in M-x shell is performed by Emacs, not by the shell). Stefan