My itch to see the Emacs syntax highlighting handle generics more effectively is getting worse and worse with each new release of the Java language. I suspect adding customization support for the language level is a significant piece of programming effort. But it would still be interesting to hear someone knowledgeable expound at a fairly high level on what needs to be done to cc-mode.el
and or cc-cmds.el
to make this happen. Perhaps there is another solution. Is JDE language level aware?
views:
177answers:
2
A:
Perhaps it is time to consider a Java IDE. An IDE does much more than edit your code.
Peter Lawrey
2009-11-07 22:38:30
Emacs does much more than any Java IDE I have seen. (In fact, for some of its Java functionality, it uses Eclipse's libraries.)
jrockway
2009-11-07 22:45:35
I use both Emacs (80%) and Eclipse (20%) in my programming work and would dearly love to see them better integrated. As so many people have pointed out so many times, the bulk of programming is done outside of the IDE (meetings, memos, reading, browsing, etc.). You are right thought that an IDE does more than edit your code. And so does Emacs. :-)My apologies for the double down vote and then checking the green check. Fat fingering and then made matters worse by trying to undo ... :-(
pajato0
2009-11-07 22:54:29
JDEE (Java Development Environment for Emacs) is a Java IDE. http://jdee.sourceforge.net/quicktour.html
Gunslinger47
2009-11-07 23:44:48
So it sounds like you are using eclipse and more. The best bit of eclipse is its debugger so I hope you are using that part. Otherwise I would suggest you use IntelliJ or Netbeans which are much better IHMO. If you are just using the editor portions of eclipse I am not surprised you still prefer emacs.
Peter Lawrey
2009-11-08 07:51:40
Eclipse code completion/refactoring/code analysis is so basic, if you don't that, your claim that emacs is so much better than an IDE doesn't hold much water IMHO.
Peter Lawrey
2009-11-08 08:03:59
I agree that the Eclipse debugger is very powerful and I use it probably more than any other Eclipse feature. There are some Emacs Java debuggers (gdb, jdb) but they are not as effective as Eclipse. I also use Eclipse for refactoring, import handling and a few other features. But I use Emacs for planning, email, editing all sorts of documents, shells, file browsing/searching, tool documentation, edit server, IM and probably lots more that exists mainly in muscle memory. Even so, I would never claim one is better than the other, only that I use one more than the other.
pajato0
2009-11-08 09:05:23
+2
A:
Quick solution:
M-x c++-mode
Java generics are similar enough to C++ templates to improve the highlighting of generic variable declarations. More information on permanent integration seems to be discussed here:
http://osdir.com/ml/emacs.jdee/2007-07/msg00022.html
Gunslinger47
2009-11-07 23:49:43