From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Oddie Newsgroups: gmane.emacs.help Subject: Re: Why is TAB-completion in shell not working for some commands? Date: Wed, 9 Nov 2011 17:06:26 +0000 Message-ID: <8BF2824B-97AC-4722-8F2C-C572C5F558FF@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1320858698 3406 80.91.229.12 (9 Nov 2011 17:11:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2011 17:11:38 +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 Nov 09 18:11:34 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 1ROBgU-0003tL-Jh for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 18:11:34 +0100 Original-Received: from localhost ([::1]:60624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROBgU-0004Vt-0H for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2011 12:11:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROBbg-0002SR-MR for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 12:06:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROBbc-0000pU-6e for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 12:06:36 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:49544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROBbc-0000pQ-1h for help-gnu-emacs@gnu.org; Wed, 09 Nov 2011 12:06:32 -0500 Original-Received: by wyg24 with SMTP id 24so2205295wyg.0 for ; Wed, 09 Nov 2011 09:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=G5D5mTbHQAVbZZnfuil1a9ee7EEGdT8Gz3JyIQcNLcE=; b=q9hICfQbVSR08hfljy80pCZ1bUYzgdZ/bJxUo5MOMse/17nWx20eNVN4bsraoGLbLe 6MPz9vtEFegdSbQIwu6hPrSr2U7szot6LRTw9Q43GwninGV2Z691r782Unnyd+4uKMLN 6t33nE5xy3LJIOf5iGOgTE6w33+krwLyeWJuk= Original-Received: by 10.216.137.10 with SMTP id x10mr5698577wei.29.1320858389042; Wed, 09 Nov 2011 09:06:29 -0800 (PST) Original-Received: from stu-40-200.magd.ox.ac.uk (stu-40-200.magd.ox.ac.uk. [129.67.40.200]) by mx.google.com with ESMTPS id fr4sm6325424wbb.0.2011.11.09.09.06.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 09 Nov 2011 09:06:28 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 X-Mailman-Approved-At: Wed, 09 Nov 2011 12:11:30 -0500 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:82822 Archived-At: Hi Marius and all, > 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. This rang a bell for me. When launching anything from the Finder the PATH is not set correctly (since the Finder is not itself run from your shell). I am a bit fuzzy now on the details of how `exec-path', the PATH variable and tab-completion in shell-mode interact, but I would suggest putting something in your .emacs or init.el file that (1) sets the emacs variable `exec-path' to the sequence of directories you expect to find in PATH, and (2) sets the environment variable PATH based on that. Here's what I have, just as an example: ;; Exec-path and env variable (setq exec-path (append '("/opt/local/bin" "/opt/local/sbin" = "/opt/local/libexec/gnubin/" "/usr/local/mysql/bin/" "/usr/local/share/rhino" = "~/bin") exec-path '("/Applications/LilyPond.app/Contents/Resources/bin/" "/Applications/Racket v5.1.3/bin/"))) (setenv "PATH" (mapconcat 'identity exec-path ":")) HTH, Jonathan >=20 > --=20 >=20 > -PJ > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: = >=20 > ------------------------------ >=20 > Message: 8 > Date: Wed, 09 Nov 2011 18:46:22 +0200 > From: Eli Zaretskii > To: help-gnu-emacs@gnu.org > Subject: Re: Very slow redrawing when several windows in one frame > Message-ID: <83mxc5gs69.fsf@gnu.org> >=20 >> From: julien Barnier >> Date: Wed, 9 Nov 2011 14:18:03 +0000 (UTC) >>=20 >> One thing I've noticed is that as soon as I've got several windows = opened in >> one frame, window redrawing begin to be very slow (and the more open = windows, >> the slower it is). Any operation that requires a bit of redrawing = (window >> switching, minibuffer height change, etc.) is slow. >=20 > Please submit a bug report (with "M-x report-emacs-bug RET"), and > please show a recipe starting with "emacs -Q" for reproducing this > progressive slowdown. If you need to visit specific files for > reproducing the problem, please try using files that are part of the > Emacs source tree, or else tell where to get those files. >=20 > Thanks in advance. >=20 >> Is it a known bug ? >=20 > Not as far as I Know. >=20 >> Is there a workaround ? >=20 > Bugs should be fixed, not worked around. ;-) >=20 >=20 >=20 > ------------------------------ >=20 > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > https://lists.gnu.org/mailman/listinfo/help-gnu-emacs >=20 >=20 > End of help-gnu-emacs Digest, Vol 108, Issue 16 > ***********************************************