From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Klotz, Leigh" Newsgroups: gmane.emacs.devel Subject: Re: Implementing Eclipse's "organize-imports" in Emacs Lisp Date: Thu, 7 Feb 2008 11:05:25 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1202411179 26761 80.91.229.12 (7 Feb 2008 19:06:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Feb 2008 19:06:19 +0000 (UTC) To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 07 20:06:38 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JNC4a-0007mr-Vu for ged-emacs-devel@m.gmane.org; Thu, 07 Feb 2008 20:06:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNC48-0008Vf-GE for ged-emacs-devel@m.gmane.org; Thu, 07 Feb 2008 14:05:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNC43-0008VD-L2 for emacs-devel@gnu.org; Thu, 07 Feb 2008 14:05:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNC42-0008UI-0a for emacs-devel@gnu.org; Thu, 07 Feb 2008 14:05:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNC41-0008UE-UN for emacs-devel@gnu.org; Thu, 07 Feb 2008 14:05:37 -0500 Original-Received: from wbmler1.mail.xerox.com ([13.13.138.216]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JNC41-0008OD-HJ for emacs-devel@gnu.org; Thu, 07 Feb 2008 14:05:37 -0500 Original-Received: from wbmlir1.mail.xerox.com (wbmlir1.mail.xerox.com [13.131.8.221]) by wbmler1.mail.xerox.com (8.13.8/8.13.8) with ESMTP id m17J5WLL017271 for ; Thu, 7 Feb 2008 14:05:33 -0500 Original-Received: from wbmlir1.mail.xerox.com (localhost [127.0.0.1]) by wbmlir1.mail.xerox.com (8.13.8/8.13.6) with ESMTP id m17J5Rp6006791 for ; Thu, 7 Feb 2008 14:05:27 -0500 Original-Received: from USA0300GW002.na.xerox.net (usa0300gw002.na.xerox.net [13.135.210.15]) by wbmlir1.mail.xerox.com (8.13.8/8.13.6) with ESMTP id m17J5OIm006735 for ; Thu, 7 Feb 2008 14:05:27 -0500 X-Xerox-Source-Ip: 13.135.210.15 X-Xerox-Source-Name: usa0300gw002.na.xerox.net X-Xerox-Reported-Name: USA0300GW002.na.xerox.net Original-Received: from usa7061ms01.na.xerox.net ([13.151.232.15]) by USA0300GW002.na.xerox.net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Feb 2008 14:05:26 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: Implementing Eclipse's "organize-imports" in Emacs Lisp Thread-Index: AchpvGUQZASG+PLGRBGdFuInM8ecVQ== X-OriginalArrivalTime: 07 Feb 2008 19:05:26.0690 (UTC) FILETIME=[660C2820:01C869BC] X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:88446 Archived-At: I found this thread because I showed an Eclipse-using colleague flymake-mode for Java, and he asked about oragnize-imports. Credmp made flymake-mode for Java use just the ECJ compiler from Eclipse and EMACS flymake mode. As for RMS's question below, the startup time for running Java and the ECJ compiler is small and not that noticeable when flymake-mode activates it. I don't know if having a perssitent compiler server a la jde-ecj-server would be useful, especially for something done rarely and intentionally such as organize-imports. Here's where I found out about flymake-mode for Java: http://www.credmp.org/index.php/2007/07/20/on-the-fly-syntax-checking-ja va-in-emacs/ The credmp.org functions make unnecessary use of JDE and had a couple of bugs with 22.1.1.=20 I've been able to make it work without JDE at all. Here's what I'm using: http://graflex.org/klotz/weblog/2008/02/java-error-highlighting-in-emacs .html Leigh. --------------------------------------- From: Richard Stallman Subject: Re: Implementing Eclipse's "organize-imports" in Emacs Lisp Date: Mon, 28 Jan 2008 16:33:05 -0500 I don't how much of it is the GUI bits (which presumably Emacs wouldn't use), but the normal Eclipse app is _extremely_ slow just to start, even before you load a project. Of course it _also_ consumes vast amounts of memory, which make having a persistent process around a bit less inviting ... :-( Unless someone wants to write a totally new program, either we use that one or we don't. Someone interested in this should actually TRY doing this operation without the GUI. Speculating about it is not worth our time.