Stephen Leake <[email protected]> writes:
> Ludovic Brenta <[email protected]> writes:
>
>> I see that ada-mode 5.0.1 is not derived from prog-mode as version 4
>> was. As a consequence, loading ada-mode no longer calls
>> prog-mode-hook, which we were relying on...
>
> Ok, at a minimum this should be mentioned in the user guide. Although I
> really don't want to document _all_ of the backward incompatibilities!
> I'll give it a try.
>
> Just out of curiosity, what does your prog-mode-hook do? 

It installs another hook in write-contents-functions that deletes
trailing whitespace.  We want this function in all languages that we use
(mostly Ada, Bourne shell, C and Perl).  Like I said, we could easily
duplicate our hook in ada-hook but I think this should be unnecessary
and that ada-mode should be one of the many prog-modes.

>> Fixing our hooks is easy but I'd like to know whether this is
>> intentional. Why should ada-mode not be part of the prog-mode
>> "family" anymore?
>
> prog-mode does not provide for ada-mode-post-local-vars, and I could
> not figure out any other way to make that work.
>
> That also deserves a comment in ada-mode.el

I'm curious as to what ada-mode-post-local-vars is supposed to be, too.

-- 
Ludovic Brenta.

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

Reply via email to