From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Compile mode in emacs!! Date: Wed, 28 Mar 2007 10:29:09 +0200 Message-ID: <46144A4D-E6F2-4DBA-BE0F-4A3661191324@web.de> References: <9688221.post@talk.nabble.com> <39262250703272210t4c3ff3ffy3b84ba7d26d9a2f0@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1175070586 10007 80.91.229.12 (28 Mar 2007 08:29:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 08:29:46 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: "Nazir " Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 10:29:37 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HWTXE-0002cr-Ma for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 10:29:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWTZg-0005x9-4E for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 03:32:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWTZR-0005ty-IW for help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 04:31:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWTZP-0005tc-3K for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 04:31:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWTZO-0005tZ-Uc for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 03:31:50 -0500 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWTWw-0003hj-MN for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 04:29:18 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate02.web.de (Postfix) with ESMTP id 2B7226D24B89; Wed, 28 Mar 2007 10:29:17 +0200 (CEST) Original-Received: from [62.134.229.68] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.107 #114) id 1HWTWu-00067I-00; Wed, 28 Mar 2007 10:29:17 +0200 In-Reply-To: <39262250703272210t4c3ff3ffy3b84ba7d26d9a2f0@mail.gmail.com> X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42228 Archived-At: Am 28.03.2007 um 07:10 schrieb Nazir: > The path in the shell is already set to the required compiler. So the question is, why has GNU Emacs another another PATH value =20 active? Do launch it from some menu? I looks as if your login shell =20 provides a different environment than what you use in an interactive =20 shell. If you fix this issue, then GNU Emacs will find the same =20 compiler as you in some shell. > I need to run a set of make files. > I do not want to change the "CC" in the make files. As I showed in my examples: you can use env to set particular =20 environment variables. > > I want to use, say "/tools/gnu/gcc". (THe shell from which emacs is =20= > laucnhed points to this gcc! ) Then my guess is that some environment variables reset the value. You =20= can, for example do M-x compile RET and then erase the default make =20 command and substitute it with env or printenv to see which =20 environment the compile process sees. Then some corrections can be made. > Can I configure the emacs to pick the required compiler? > I don't see this. There is a customisation group for the compilation =20 process (C-h f compile RET and you'll find a hint in the *Help* =20 buffer or via menus Options -> Customize Emacs -> Specific Group=85, =20 name completion works), but there is nothing to set the compiler =20 explicitly. This is done in the shell or in Makefiles, as determined =20 by a configure script for example, or set by the programmer. -- Greetings Pete 0 %-/\_// (*)(*)