[Emacs-ada-mode] updated ada-mode with manual
Stephen Leake
stephen_leake at stephe-leake.org
Thu Aug 31 16:45:26 PDT 2006
Ludovic Brenta <ludovic at ludovic-brenta.org> writes:
> Stephen Leake writes:
>> Randall writes:
>>> and caters for the necessary bits; if things are not automatic, then
>>> the programmer expects that Ada-mode does what he tells it (build
>>> *this* module).
>>
>> Typing C-c C-c does not tell ada-mode that.
>>
>> Typing C-c C-m will.
>
> Stephe, I like your idea of C-c C-m quite a lot; I think it would
> address everyone's concerns. One remark though: I would like it if C-c
> C-m would *not* override the current main, if any. I believe this is
> easy to achieve in Lisp using save-excursion. With this scheme:
>
> C-x C-f foo.adb
> C-c C-c -> gnatmake foo
> C-x C-f bar.adb
> C-c C-m -> gnatmake bar (in an "excursion")
> C-c C-c -> gnatmake foo (reuse the unchanged global main)
The notion of "excursion" occurs in several places in Emacs;
save-window-excursion restores the current window after executing some
form. I don't know if it makes sense here; my initial response is that
it doesn't. It depends on how deeply the notion of "current main" is
embedded in the code, and exactly how it is stored.
I haven't implemented C-c C-m yet; I'll keep it in mind.
--
-- Stephe
More information about the Emacs-ada-mode
mailing list