From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Implementing Eclipse's "organize-imports" in Emacs Lisp Date: Tue, 22 Jan 2008 15:09:56 +0100 Message-ID: <4795F934.9010703@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201011108 26882 80.91.229.12 (22 Jan 2008 14:11:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jan 2008 14:11:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: pmr@pajato.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 22 15:12:07 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 1JHJqb-00013S-On for ged-emacs-devel@m.gmane.org; Tue, 22 Jan 2008 15:11:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHJqB-0002Vg-Ua for ged-emacs-devel@m.gmane.org; Tue, 22 Jan 2008 09:11:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHJpL-0001ub-PF for emacs-devel@gnu.org; Tue, 22 Jan 2008 09:10:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHJpK-0001tT-Gb for emacs-devel@gnu.org; Tue, 22 Jan 2008 09:10:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHJpK-0001tD-75 for emacs-devel@gnu.org; Tue, 22 Jan 2008 09:10:10 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JHJpK-0002Wb-03 for emacs-devel@gnu.org; Tue, 22 Jan 2008 09:10:10 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:59361 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1JHJpH-00078F-5j; Tue, 22 Jan 2008 15:10:08 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Antivirus: avast! (VPS 080122-0, 2008-01-22), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1JHJpH-00078F-5j. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1JHJpH-00078F-5j 912b92c938f5408f8b1fc3fa009b6987 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) 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:87300 Archived-At: Paul Michael Reilly wrote: > 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 Why not try to ask this on the JDEE developers list?