From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Michael Reilly Newsgroups: gmane.emacs.devel Subject: Implementing Eclipse's "organize-imports" in Emacs Lisp Date: Tue, 22 Jan 2008 05:53:12 -0500 Message-ID: Reply-To: pmr@pajato.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1201001934 22503 80.91.229.12 (22 Jan 2008 11:38:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jan 2008 11:38:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 22 12:39:13 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 1JHHT8-0003Rx-LV for ged-emacs-devel@m.gmane.org; Tue, 22 Jan 2008 12:39:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHHSj-000140-A8 for ged-emacs-devel@m.gmane.org; Tue, 22 Jan 2008 06:38:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHHSK-0000hz-7p for emacs-devel@gnu.org; Tue, 22 Jan 2008 06:38:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHHSF-0000ej-DX for emacs-devel@gnu.org; Tue, 22 Jan 2008 06:38:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHHSF-0000eT-7c for emacs-devel@gnu.org; Tue, 22 Jan 2008 06:38:11 -0500 Original-Received: from 68-191-253-213.static.oxfr.ma.charter.com ([68.191.253.213] helo=lilly.pajato.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JHHSF-0000RV-1F for emacs-devel@gnu.org; Tue, 22 Jan 2008 06:38:11 -0500 Original-Received: from lilly.pajato.com (localhost.localdomain [127.0.0.1]) by lilly.pajato.com (8.14.2/8.14.2) with ESMTP id m0MArCiR008957 for ; Tue, 22 Jan 2008 05:53:12 -0500 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Greylist: delayed 2668 seconds by postgrey-1.27 at monty-python; Tue, 22 Jan 2008 06:38:10 EST 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:87291 Archived-At: I probably spend half my time doing Java development in Emacs and the other half in Eclipse. I once tried to get the Eclipse plugin that talks to Emacsclient to work better for me with only marginal success. It is an option to revive this effort. But even if this were to work nicely, it's appeal is limited to Eclipse developers leaving NetBeans, IntelliJ, JBuilder, etc. Users out of the solution space. One of the Eclipse features that I find indispensable is the Organize Imports feature which analyses the source file to determine if the import statements need to be pruned, augmented or modified (based on the .classpath file which is problematic since this file is an Eclipse artifact). I would dearly love to have this capability in Emacs. Have either of the other two Java developers who use Emacs done this perchance? :-) I'm guessing not. Assuming it does not exist, I'd be inclined to create a Java application to run in the background which provides an IPC mechanism to talk to Emacs Lisp. Then I would develop "features" in this proxy app for Emacs that are more natural to implement in Java. I'm guessing that a "daemon" type app is better than a typical Unix tool approach (because of painful start-up latencies that won't likely be solved for a few years ubiquitously) Anyone feel this is just a totally wrong way to go to solve the problem? -pmr