all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Nazir " <elxsian@gmail.com>
To: "Peter Dyballa" <Peter_Dyballa@web.de>
Cc: Help-gnu-emacs@gnu.org
Subject: Re: Compile mode in emacs!!
Date: Wed, 28 Mar 2007 14:26:07 +0530	[thread overview]
Message-ID: <39262250703280156t2d039eeq1e80b6147a9cef81@mail.gmail.com> (raw)
In-Reply-To: <46144A4D-E6F2-4DBA-BE0F-4A3661191324@web.de>


[-- Attachment #1.1: Type: text/plain, Size: 2505 bytes --]

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 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 <value>", 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 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…,
> 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
>                                            %-/\_//
>                                             (*)(*)
>
>
>


-- 
" LIFE ROCKS "

[-- Attachment #1.2: Type: text/html, Size: 3733 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  reply	other threads:[~2007-03-28  8:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-27  8:20 Compile mode in emacs!! elxsian
2007-03-27 12:10 ` Peter Dyballa
2007-03-28  5:10   ` Nazir 
2007-03-28  8:29     ` Peter Dyballa
2007-03-28  8:56       ` Nazir  [this message]
2007-03-28  9:17         ` Peter Dyballa
     [not found]           ` <39262250703280328g1f53a9a0l2a5e490e8a52acad@mail.gmail.com>
2007-03-28 11:17             ` Peter Dyballa
     [not found]               ` <39262250703280551md8bdc54u5b9c31e59d207018@mail.gmail.com>
2007-03-28 15:20                 ` Peter Dyballa
     [not found] <mailman.1487.1174994711.7795.help-gnu-emacs@gnu.org>
2007-03-28 13:18 ` Ken Goldman
2007-03-29  0:30 ` "Wilfred Zegwaard (privé)"
  -- strict thread matches above, loose matches on Subject: below --
2007-03-27  8:18 elxsian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39262250703280156t2d039eeq1e80b6147a9cef81@mail.gmail.com \
    --to=elxsian@gmail.com \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=Peter_Dyballa@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.