all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: Using javac with Emacs
Date: Fri, 18 Sep 2009 15:32:45 +0200	[thread overview]
Message-ID: <7cljkcfkea.fsf@anevia.com> (raw)
In-Reply-To: 87ws3w1k3p.fsf@merciadriluca-station.MERCIADRILUCA

Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> writes:

> Peter Dyballa <Peter_Dyballa@Web.DE> 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.

Not unless you defined a command named make--B-*.c

Typing M-x "javac nameofmyfile" RET may work only if you defined a
command named \"javac\ nameofmyfile\".

(defun \"javac\ nameofmyfile\" ()
  (interactive)
  (do-something))

And then, yes, you may type M-x "javac nameofmyfile" RET



Perhaps you wanted to type:

     M-x compile RET C-a C-k javac nameofmyfile RET

but that's something entirely different.



>> 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?

Right.


>> 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).

You should get the same path with:

           M-x compile RET C-a C-k echo "$PATH" RET
than with:
           M-! echo "$PATH" RET


-- 
__Pascal Bourguignon__


  parent reply	other threads:[~2009-09-18 13:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-18 11:13 Using javac with Emacs Merciadri Luca
2009-09-18 12:15 ` Anselm Helbig
2009-09-18 12:59   ` Merciadri Luca
2009-09-18 13:26     ` Anselm Helbig
2009-09-18 19:16       ` Merciadri Luca
2009-09-18 19:18       ` Merciadri Luca
2009-09-18 20:04         ` Peter Dyballa
     [not found]         ` <mailman.6981.1253304267.2239.help-gnu-emacs@gnu.org>
2009-09-19  8:21           ` Merciadri Luca
2009-09-18 12:41 ` Peter Dyballa
     [not found] ` <mailman.6939.1253277697.2239.help-gnu-emacs@gnu.org>
2009-09-18 13:02   ` Merciadri Luca
2009-09-18 13:28     ` Anselm Helbig
2009-09-18 15:47       ` Merciadri Luca
2009-09-18 13:32     ` Pascal J. Bourguignon [this message]
2009-09-18 14:21       ` Richard Riley
2009-09-18 15:46         ` Merciadri Luca
2009-09-18 16:36           ` Colin S. Miller
2009-09-18 19:10             ` Merciadri Luca
2009-09-18 18:52           ` Peter Dyballa
     [not found]           ` <mailman.6973.1253299971.2239.help-gnu-emacs@gnu.org>
2009-09-18 19:10             ` Merciadri Luca
2009-09-18 15:44       ` Merciadri Luca

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=7cljkcfkea.fsf@anevia.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.