all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludwig, Mark" <ludwig.mark@siemens.com>
To: Francesco Mazzoli <f@mazzo.li>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: Emacs and Java
Date: Fri, 14 Sep 2012 13:35:18 +0000	[thread overview]
Message-ID: <BC5672F8AD4C054BAF167C9801500D1AB0AF76F8@USSLMMBX003.net.plm.eds.com> (raw)
In-Reply-To: <87har0onhj.wl%f@mazzo.li>

> -----Original Message-----
> From: Francesco Mazzoli
> Sent: Friday, September 14, 2012 6:25 AM
> To: help-gnu-emacs@gnu.org
> Subject: Emacs and Java
> 
> Hi,
> 
> As much as I dislike Java, I find myself having to write Java code from time to
> time, and I'm sure that a lot of you are in the same situation.
> 
> Given that, I find it very surprising that support for the Java language in
> Emacs is abysmal.
> 
> I tried:
> 
>   * java-mode: does not support any modern Java construct, and with
> modern I
>     mean >= Java 5 (generics, foreach loops, enums).
>   * JDEE: seems to be completely unmaintained and barely working with
> modern
>     emacsen, and lacking support for post-2004 Java as well.
>   * malabar-mode <https://github.com/espenhw/malabar-mode/>:
> promises support
>     for what JDEE is lacking.  Building with stock Maven and Emacs on Ubuntu
>     12.04 fails.  There is a fork (<https://github.com/buzztaiki/malabar-mode>)
>     that seems more maintained but building fails there as well with a different
>     error.
> 
> So it seems that there is no way to at least edit comfortably Java code, let
> alone have flymake, semantic features, etc.  This seems a huge gap in what is
> the best editor out there.
> 
> Am I correct, or is there hope in some project I haven't considered?
> malabar-mode seems to be the best candidate (if you can get it working) but
> frankly I'm not that comfortable using it since it pulls a huge number of
> dependencies and I don't want something to fancy anyway.

I use cc-mode, which does a reasonable job for my Java work.

I have to confess to being unhappy about the fact that cc-mode knows nothing about the object-oriented nature of Java.  I make up for that myself through heavy use of tags, which I build with custom extras to pick up interface definitions.

Note further that I have not tried the current etags (v24), which might pick up interface definitions....

Hope this helps,
Mark




  parent reply	other threads:[~2012-09-14 13:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 11:25 Emacs and Java Francesco Mazzoli
2012-09-14 13:28 ` Eli Zaretskii
2012-09-14 14:14   ` Francesco Mazzoli
2012-09-14 14:32     ` Francesco Mazzoli
2012-09-14 15:01       ` Francesco Mazzoli
2012-09-14 13:35 ` Ludwig, Mark [this message]
     [not found] ` <CAHW=5p_PBvqzLFa0dFGgTvKS94oU2mn9332G7Ce1VLZwRQjDiQ@mail.gmail.com>
2012-09-14 16:29   ` Grégoire Neuville
2012-09-15  7:25     ` Francesco Mazzoli
2012-09-16  6:53       ` Tom
2012-09-15  0:53 ` Leo
2012-09-15  7:27   ` Francesco Mazzoli
2012-09-15  8:15     ` Eli Zaretskii
2012-09-15 11:17       ` Jambunathan K
2012-09-15 11:48         ` Jambunathan K
2012-09-15 20:57         ` Francesco Mazzoli
2012-09-15  7:22 ` JDEE help (was: Emacs and Java) Francesco Mazzoli
2012-09-15  8:17   ` Eli Zaretskii
2012-09-15  9:28   ` Forward: " Francesco Mazzoli
2012-09-15 18:39   ` JDEE help Philipp Haselwarter

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=BC5672F8AD4C054BAF167C9801500D1AB0AF76F8@USSLMMBX003.net.plm.eds.com \
    --to=ludwig.mark@siemens.com \
    --cc=f@mazzo.li \
    --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.