help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using javac with Emacs


From: Anselm Helbig
Subject: Re: Using javac with Emacs
Date: Fri, 18 Sep 2009 15:28:12 +0200

At Fri, 18 Sep 2009 15:02:50 +0200,
Merciadri Luca <address@hidden> wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Peter Dyballa <address@hidden> writes:
> 
> > It seems as if your "terminal" runs a login shell while GNU Emacs
> > does not (in which interactive buffer, shell, eshell, term are you
> > invoking javac?).
> Using M-x then typing "javac nameofmyfile". That's the same way as I
> habitually do "make -B *.c", for example.

This can not work, because javac is not an emacs command. You have to
use M-! instead of M-x. 

> > You could compare the value of the environment
> > variable PATH in both environments.
> M-x then "echo" is not a recognized command. I think that M-x aims at
> executing a limited set of (Emacs-)predefined commands. Am I right?

M-x is for calling emacs commands. I wouldn't call it limited, though,
there are some thousands. 

M-! is for calling shell commands, M-: is for evaluation expressions
in emacs lisp. 

> > So what you need to do is to change your shell setup to have in a
> > "normal" shell at least the same value for PATH as in a login shell.
> Using ESC-!, I can type any shell command, but the output of
> echo $PATH
> is still the same as in a real terminal (but that is normal).

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]