Georg Bauhaus <[email protected]> writes:

> The integration of comments with the usual editing features is
> so much better than what I am used to when using different languages'
> modes, let alone that of other editors. 

I think that's a compliment on the implementation of ada-mode; thanks :).

> Very minor discrepancies cannot change this. E.g., press M-Q with
> point on the empty lines of the comments:
>
> procedure Non_Comment           -- The following line will be removed on M-Q,
>                                 --
> is                              --  * if it was an empty comment.
>
>    E : String := (1 =>    -- The following line will stay when pressing M-Q,
>                           --
>                           --  * even though it was empty.
>                     'A');

Assuming M-Q is bound to `fill-paragraph', I get:

procedure Non_Comment           -- The following line will be removed
                                --on M-Q,
is                              --  * if it was an empty comment.

   E : String := (1 =>    -- The following line will stay when pressing M-Q,
                          --
                          --  * even though it was empty.
                    'A');

Which is inconsistent.

On the other hand, `ada-fill-comment-paragraph', which is the prefered
fill function for Ada comments, signals an error.

It appears we should set `fill-paragraph-function' to
`ada-fill-comment-paragraph', and fix this error. I'll add that to my
list (near the bottom). Although an active region bypasses that. Sigh.

In addition, `ada-fill-comment-paragraph' doesn't respect the region;
that should be fixed.

-- 
-- Stephe

_______________________________________________
Emacs-ada-mode mailing list
[email protected]
http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org

Reply via email to