From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Nazir " Newsgroups: gmane.emacs.help Subject: Re: Compile mode in emacs!! Date: Wed, 28 Mar 2007 14:26:07 +0530 Message-ID: <39262250703280156t2d039eeq1e80b6147a9cef81@mail.gmail.com> References: <9688221.post@talk.nabble.com> <39262250703272210t4c3ff3ffy3b84ba7d26d9a2f0@mail.gmail.com> <46144A4D-E6F2-4DBA-BE0F-4A3661191324@web.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0112984984==" X-Trace: sea.gmane.org 1175087160 11578 80.91.229.12 (28 Mar 2007 13:06:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 13:06:00 +0000 (UTC) Cc: Help-gnu-emacs@gnu.org To: "Peter Dyballa" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 28 15:05:53 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 1HWXqE-00014i-Bz for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 15:05:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWXsh-0005dp-2R for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Mar 2007 08:08:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWTzO-0001PM-EC for help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 04:58:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWTzN-0001PA-CP for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 04:58:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWTzN-0001P7-7W for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 03:58:41 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.169]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWTwu-0007aS-KX for Help-gnu-emacs@gnu.org; Wed, 28 Mar 2007 04:56:09 -0400 Original-Received: by ug-out-1314.google.com with SMTP id j3so152953ugf for ; Wed, 28 Mar 2007 01:56:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=fCvnBOAnHzhj5UnCJoY48xGm3U9PNM1+J1+3/7lEGnP/8w6jWkbUF9zca24r6UZzG+Hdkcw+LFXVFnPBXgFqsxSZThphG9FGKYSV4GWM8dlvfK0SMKV/2kqJIUOSMRw/PnQyrtTsuBXBxZUJIj3gMprNDQVx3DVeDx0rM4j713I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=dNYYuKMWYUn+Gx3UEu3Tnrgbd21eyZcztwfmv6wlZrYuIRbiVCOtloUIAEqoa/bwGYI4MIuuLk9o4oLCabCWETmA4el87duUIqoLZRAeYBOq6qyGtMdye6j4dHexAvNqiIVO7VXv1CseQdch7ZCuVfV0gJXwpClsGuf8ahkJ5os= Original-Received: by 10.67.92.9 with SMTP id u9mr264538ugl.1175072167801; Wed, 28 Mar 2007 01:56:07 -0700 (PDT) Original-Received: by 10.67.71.18 with HTTP; Wed, 28 Mar 2007 01:56:07 -0700 (PDT) In-Reply-To: <46144A4D-E6F2-4DBA-BE0F-4A3661191324@web.de> X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) X-Mailman-Approved-At: Wed, 28 Mar 2007 09:05:38 -0400 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:42240 Archived-At: --===============0112984984== Content-Type: multipart/alternative; boundary="----=_Part_977_7801158.1175072167752" ------=_Part_977_7801158.1175072167752 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Peter, Oops!! ... when I said "printenv", in the Mx-compile, it shows a different value for "PATH", from the one I see in the terminal. > I looks as if your login shell >provides a different environment than what you use in an interactive >shell. If you fix this issue, then GNU Emacs will find the same >compiler as you in some shell. I guess, you are right. Could you please tell me how to fix this? Infact, when I said "printenv", I saw a big list, where in PATH_USER had th= e correct value, where as the PATH variable was referring to an incorrect value. I also changed the path in Mx-compile, using "setenv PATH ", but it gets reset to a different value!! Thanks, Nazir On 3/28/07, Peter Dyballa wrote: > > > 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 > active? Do launch it from some menu? I looks as if your login shell > provides a different environment than what you use in an interactive > shell. If you fix this issue, then GNU Emacs will find the same > 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 > environment variables. > > > > > I want to use, say "/tools/gnu/gcc". (THe shell from which emacs is > > laucnhed points to this gcc! ) > > Then my guess is that some environment variables reset the value. You > can, for example do M-x compile RET and then erase the default make > command and substitute it with env or printenv to see which > 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 > process (C-h f compile RET and you'll find a hint in the *Help* > buffer or via menus Options -> Customize Emacs -> Specific Group=85, > name completion works), but there is nothing to set the compiler > explicitly. This is done in the shell or in Makefiles, as determined > by a configure script for example, or set by the programmer. > > -- > Greetings > > Pete 0 > %-/\_// > (*)(*) > > > --=20 " LIFE ROCKS " ------=_Part_977_7801158.1175072167752 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi Peter,
 
Oops!! ... when I said "printenv", in the Mx-compile, it sho= ws a different value for "PATH", from the one I see in the termin= al.
 
> I looks as if your login shell
>provides a different enviro= nment than what you use in an interactive
>shell. If you fix this iss= ue, then GNU Emacs will find the same
>compiler as you in some shell.

I guess, you are right. Could you please tell me how to fix this?
Infact, when I said "printenv", I saw a big list, where in P= ATH_USER had the correct value, where as the PATH variable was referring to= an incorrect value.
I also changed the path in Mx-compile, using "setenv PATH <val= ue>", but it gets reset to a different value!!
 
Thanks,
Nazir

 
On 3/28/07, = Peter Dyballa <Peter_Dyballa= @web.de> wrote:

Am 28.03.2007 um 07:10 schri= eb Nazir:

> The path in the shell is already set to the required = compiler.

So the question is, why has GNU Emacs another another PATH valueactive? Do launch it from some menu? I looks as if your login shell
pro= vides a different environment than what you use in an interactive
shell.= If you fix this issue, then GNU Emacs will find the same
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
environment variables.

>
> I want to use, say "/tools/= gnu/gcc". (THe shell from which emacs is
> laucnhed points to th= is gcc! )

Then my guess is that some environment variables reset the= value. You
can, for example do M-x compile RET and then erase the default make
= command and substitute it with env or printenv to see which
environment = the compile process sees. Then some corrections can be made.

> Ca= n I configure the emacs to pick the required compiler?
>

I don't see this. There is a customisation group for th= e compilation
process (C-h f compile RET and you'll find a hint in t= he *Help*
buffer or via menus Options -> Customize Emacs -> Specif= ic Group=85,
name completion works), but there is nothing to set the compiler
exp= licitly. This is done in the shell or in Makefiles, as determined
by a c= onfigure script for example, or set by the programmer.

--
Greetin= gs

  Pete        &nb= sp;            =             &nb= sp;         0
   =             &nb= sp;            =             &nb= sp;  %-/\_//
         =             &nb= sp;            =           (*)(*)

<= br>



--
" LIFE ROCKS "=20 ------=_Part_977_7801158.1175072167752-- --===============0112984984== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0112984984==--