From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Using javac with Emacs Date: Fri, 18 Sep 2009 16:21:38 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <878wgcjyjk.fsf@student.ulg.ac.be> <87ws3w1k3p.fsf@merciadriluca-station.MERCIADRILUCA> <7cljkcfkea.fsf@anevia.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253285007 12148 80.91.229.12 (18 Sep 2009 14:43:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 14:43:27 +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:43:21 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 1MoegC-0001Jo-Dv for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 16:43:20 +0200 Original-Received: from localhost ([127.0.0.1]:55248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoegB-0003cu-OB for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 10:43:19 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin1!goblin.stu.neva.ru!feeder.eternal-september.org!eternal-september.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-X-Trace: news.eternal-september.org U2FsdGVkX18vNxoHjmbUiSuM5NUyHGoYJLWv6qHClEBOf70th9Cas75O1/BGZXuuGettO9nmnwwN3ndHI6RT6zTC1Fl+gS8jrMF3aCHXHG+fXbfTGQtLXqReqXohgdBcA5Oh2QzhDTo= Original-X-Complaints-To: abuse@eternal-september.org Original-NNTP-Posting-Date: Fri, 18 Sep 2009 14:21:38 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/w2yVctodtUaRWPMbuyHW/ Cancel-Lock: sha1:6P+pWK9Pbyzh3rNBJg1Fvp43iQI= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:173152 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:68275 Archived-At: pjb@informatimago.com (Pascal J. Bourguignon) writes: > 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 Wouldn't it just be easier to say he needed to use "M-! javac blah.java" ? it's a very common error on the part of newcomers to Emacs. > > > > Perhaps you wanted to type: > > M-x compile RET C-a C-k javac nameofmyfile RET > > but that's something entirely different. As a side note to the OP, using compile is much nicer since there are helped functions such as "next-error" which helps navigate to bad lines. In my c buffers for example I bind F11 to "next-error".