I doubt this problem is jde specific, so I hope noone takes offense to
my asking here.  It is a problem which many jde users will likely
encounter.

I recently switched from ntemacs 20.3 to 20.4.  My .emacs is pretty
much unchanged, but the auto fill behavior in jde mode is quite
different.  In particular, it now breaks string literals which go
beyond a line, and it inserts asterisks into javadoc comments.
Neither of these unwanted behaviors occurred in ntemacs 20.3.

I'm sure this behavior is configurable in emacs.  Anyone know what I
need to set to go back to the 20.3 way of auto filling?

I've minimized my emacs initialization down to the following:

(add-to-list 'load-path "d:/dinstall/emacs/jde-2.1.5")
(require 'jde)
(add-hook 'jde-mode-hook 'turn-on-auto-fill)


And here is sample code which illustrates the problems.


public class JdeTest {
    /** Here is a javadoc style comment. Long enough to span several
     * lines.  Who wants a bunch of asterisks in there javadoc
     * comments? **/
        
    public static void main (String[] argv) {
        // Note the string below has been broken into two lines.  This
        // will cause a compilation error.
        String foo = "This is a quoted string long enough to go beyond
 a line on my screen"; 
        
    }
}

Many thanks.

-Dave

Reply via email to