From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: Using javac with Emacs Date: Fri, 18 Sep 2009 15:28:12 +0200 Organization: Freie Universitaet Berlin Message-ID: <87zl8sbcwj.wl%anselm.helbig+news2009@googlemail.com> References: <878wgcjyjk.fsf@student.ulg.ac.be> <87ws3w1k3p.fsf@merciadriluca-station.MERCIADRILUCA> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1253282408 2676 80.91.229.12 (18 Sep 2009 14:00:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 14:00:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 16:00:01 2009 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 1Moe0G-0003ky-2f for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 16:00:00 +0200 Original-Received: from localhost ([127.0.0.1]:49608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Moe0F-0002XB-Lx for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 09:59:59 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-X-Trace: news.uni-berlin.de TZIO0C2IgMxFUJeICh8EZgpLtLk4FAeY6YEvkchg9qe0pSR+f0aAENnQih Cancel-Lock: sha1:AQHVyMqvqEMGmRYGb+TzSfCeoZg= In-Reply-To: <87ws3w1k3p.fsf@merciadriluca-station.MERCIADRILUCA> Mail-Followup-To: Anselm Helbig Original-Xref: news.stanford.edu gnu.emacs.help:173148 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:68271 Archived-At: At Fri, 18 Sep 2009 15:02:50 +0200, Merciadri Luca wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Peter Dyballa 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:anselm.helbig+news2009@googlemail.com