Hi, Good question...Jindent has lots of features.  I suggest reading the
features info on its web site for complete info.

Off-the-top-of-the-head-brief-summary, Emacs' reindenting does not:
- move the opening brace
- add or remove white space lines as specifed
- wrap lines longer than a specified column, reindenting them appropriately
- add javadoc templates where no javadoc exists for the class and above
each method
- line up variable names in a list of declarations


> From: "Daniel Hegyi" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: Sending the current buffer to a Java application.
> Date: Fri, 03 Nov 2000 12:36:51 EST
> 
> Hi Jeff,
> 
> Why can't you clean up other people's messy code by selecting the whole 
> (java) buffer and doing a M-x indent-region ? Or does Jindent have some 
> extra features?
> 
> Regards,
> Daniel
> 
> 
> >From: "Jeff Jensen" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: Sending the current buffer to a Java application.
> >Date: Thu, 2 Nov 2000 22:22:18 -0600
> >
> >This elisp is an example of sending the buffer contents to a command line
> >program, and back.  It is from the Jindent web site (which is a great tool
> >for cleaning up that messy code received from others!).
> >
> >
> >Jindent Integration for "Emacs"
> >(from Holger Uhr, [EMAIL PROTECTED])
> >
> >Add the following lines to your .emacs file to integrate Jindent:
> >
> >
> >(defun jindent ()
> >"Pipes the buffer through Jindent"
> >(interactive)
> >(message "Jindenting buffer (http://www.jindent.de) ...")
> >(setq executing-kbd-macro t)
> >(filter-buffer "/usr/local/java/jdk1.2/bin/java -classpath \
> >~/lib/Jindent/Jindent.jar: Jindent -mute -p \
> >~/lib/Jindent/Holger.jin")
> >(setq executing-kbd-macro nil)
> >(message "Jindenting buffer (http://www.jindent.de) ... done")
> >)
> >
> >(defun filter-buffer (command)
> >(shell-command-on-region (point-min) (point-max) \
> >command t t "*Messages*")
> >)
> >
> >
> >-----Original Message-----
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED]]On
> >Behalf Of Rob Shaw
> >Sent: Thursday, November 02, 2000 6:52 PM
> >To: [EMAIL PROTECTED]
> >Subject: Sending the current buffer to a Java application.
> >
> >
> >I'm interested in sending a buffer to the stdin of a Java
> >application, have it process the input stream, and stream the
> >results back via stdout into the original emacs buffer.
> >
> >There are many possible uses for such a configuration.
> >For example, one could create an english to german conversion
> >utility.  The idea here is that such utilities could be written
> >in Java as opposed to elisp.
> >
> >Does anybody have some sample code or know of any sample code
> >that I could look at?
> >
> >Thanks,
> >Rob
> >
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> Share information about yourself, create your own public profile at 
> http://profiles.msn.com.
> 
> 

Reply via email to