I recommend using filladapt.el (get it from http://wonderworks.com/) 
which does a much better job of filling than the standard one.

After installing this package you can modify the variable 'filladapt-token-table'
like follows (add these elements to the variable):

    ("@param[ \t]" bullet)
    ("@see[ \t]" bullet)
    ("@return[ \t]" bullet)
    ("@exception[ \t]" bullet)

I´m sure you are able to add further javadoc-keywords if you need them :-)

After that all your JAVADOC comments wil be filled correct.

Hope this helps,
Klaus

> Hi!
> 
> I'm not sure if this has been fixed in versions above jde-2.1.6beta23
> (which I still use, I simply have not got around updating yet ;).
> 
> When typing M-q (i.e. running fill-paragraph) in a JavaDOC comment,
> fill-paragraph does the "wrong" thing, i.e.
> 
> /**
>  * A very long sentence which goes <point-placed-here> on and 
> on and on
> and on and on and on and on and on and on over several lines.
>  *
>  * @param foo Some text describing foo
>  */
> 
> If point is placed at <point-placed-here> and I hit M-q, the result is
> 
> /**
>  * A very long sentence which goes <point-placed-here> on and
>  * on and on and on and on and on and on and on and on over 
>  * several lines. @param foo Some text describing foo
>  */
> 
> Which is at least not what I intended. ;)
> 
> However this could very easily be fixed if JDE-mode redefined
> paragraph-start and paragraph-separate to something like this
> 
> (make-local-variable 'paragraph-start)
> (setq paragraph-start "\([ 
> ]\|[ ]+\*[ ]*\)")
> (make-local-variable 'paragraph-separate)
> (setq paragraph-separate "\([ ]*\|[ ]+\*[ ]*\)$")
> 
> 
> /John
> 
> -- 
> LM/ERA/LVA/KD John Olsson  mailto:[EMAIL PROTECTED] 
>    Ericsson Radio Systems AB, Box 1248, S-581 12 Linkoping
> -------------------------------------------------------------
>   Phone: +46 13 321070   ECN: 868 1070   Fax: +46 13 287370
> -------------------------------------------------------------
> I was doing object-oriented assembly when I was 1 year old...  
> For some reason my mom insists on calling it "Playing with blocks"
> 

Reply via email to