Hi Paul,

yes, i think this would be a good idea. Either you put filladapt.el onto the
requirement-list of JDE (but i would not do this because JDE can also work
without filladapt but not without the other requirements) or you add some
code to JDE like:

(if (and (boundp 'filladapt-token-table)
         (not (assoc "@param[ \t]" filladapt-token-table))
         ;; same for the other javadoc-tokens
    )
    ;; 1. activate filladapt-mode
    ;; 2. the tokens are not already added so add the tokens
)

maybe you could add another JDE-option jde-fill-comments with t as 
default so a user can decide this, because this would activate filladapt-mode
and maybe not every user want to have this automatic filling.

BUT IMHO automatic comment filling is one of the outstanding features of Emacs
in comarison to other editors or IDEs!

To make a long story short: I find this a good idea and i´m sure you find the 
right way to do it :-)

Klaus

>Hi Klaus

>Do you think it would be a good idea for the JDE
>to require filladapt and set it up to do filling
>correctly on Javadoc comments?

>- Paul


At 01:01 PM 3/2/2001 +0100, you wrote:
>> take a look at filladapt-mode
>> http://cc-mode.sourceforge.net/filladapt.php
>
>Yes and then you must ajust the option filladapt-token-table:
>Call "M-x customize-option RET filladapt-token-table RET" and then
>add the following elements (but do not add this at the end but add it
>before the last to items already defined; for this simply press the
>related [INS]-button)
>
>After your changes the customize buffer should look like:
>
>...
>[INS] [DEL] List:
>            Regexp: @param[    ]
>            Symbol: bullet
>[INS] [DEL] List:
>            Regexp: @return[   ]
>            Symbol: bullet
>[INS] [DEL] List:
>            Regexp: @see[      ]
>            Symbol: bullet
>[INS] [DEL] List:
>            Regexp: @exception[        ]
>            Symbol: bullet
>[INS] [DEL] List:
>            Regexp: [  ]+
>            Symbol: space
>[INS] [DEL] List:
>            Regexp: $
>            Symbol: end-of-line
>[INS]
>   [State]: this option has been set and saved.
>
>Please note the last two elements are already there as default value of this
>option. Please note also that [        ] is a space and a tab between brackets.
>
>Then [Save for Future Sessions] and you will get well filled Javadocs!
>
>Hope this helps,
>Klaus
>
>
>
>
>
>
>
>
>> -----Original Message-----
>> From:        Martin Monsorno [SMTP:[EMAIL PROTECTED]]
>> Sent:        Friday, March 02, 2001 11:57 AM
>> To:  jde mailing list
>> Subject:     filling javadoc comments
>> 
>> I often use M-q inside of javadoc-comments to automatically break
>> long lines. The problem is: when I have this:
>>     @param id an id
>>     @return something useful
>> the result is:
>>     @param id an id @return something useful
>> 
>> Does anybody know how to prevent emacs from filling lines with tags?
>> 
>> -- 
>> Martin Monsorno
>> mailto:[EMAIL PROTECTED]

Reply via email to