all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Using javac with Emacs
Date: Fri, 18 Sep 2009 16:21:38 +0200	[thread overview]
Message-ID: <h9051i$s5d$1@news.eternal-september.org> (raw)
In-Reply-To: 7cljkcfkea.fsf@anevia.com

pjb@informatimago.com (Pascal J. Bourguignon) writes:

> 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

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


  reply	other threads:[~2009-09-18 14:21 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
2009-09-18 14:21       ` Richard Riley [this message]
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='h9051i$s5d$1@news.eternal-september.org' \
    --to=rileyrgdev@gmail.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.