From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: Using javac with Emacs Date: Fri, 18 Sep 2009 15:32:45 +0200 Organization: Anevia SAS Message-ID: <7cljkcfkea.fsf@anevia.com> References: <878wgcjyjk.fsf@student.ulg.ac.be> <87ws3w1k3p.fsf@merciadriluca-station.MERCIADRILUCA> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253282468 2992 80.91.229.12 (18 Sep 2009 14:01:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 14:01: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:01: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 1Moe1A-00043Y-Uu for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 16:00:57 +0200 Original-Received: from localhost ([127.0.0.1]:50158 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Moe1A-0003IO-C0 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 10:00:56 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!newsserver.news.garr.it!newsserver.cilea.it!univ-lyon1.fr!news.in2p3.fr!in2p3.fr!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp3-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:bVe/pehtgo5I4Bi3SSKR6UoE5sE= Original-Lines: 54 Original-NNTP-Posting-Date: 18 Sep 2009 15:32:45 MEST Original-NNTP-Posting-Host: 88.170.236.224 Original-X-Trace: 1253280765 news-1.free.fr 31404 88.170.236.224:37006 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:173149 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:68272 Archived-At: Merciadri Luca writes: > 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. 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__