[Emacs-ada-mode] Thanks and my first enquiry

Manuel Gomez mgrojo at ya.com
Sun Aug 20 11:39:11 PDT 2006


El dom, 20-08-2006 a las 10:35 -0400, Stephen Leake escribió:
> I'll try to summarize some of the points made here, and add them to
> the web page. I think it is also clear that there should be an Emacs
> Ada mode manual, to explain these top-level issues.

There is an Ada mode info manual. It can be access in my installation
from "Ada > Help > Ada mode", as well as from the info directory.

Check this
http://cvs.savannah.gnu.org/viewcvs/emacs/man/ada-mode.texi?rev=1.13.2.6&root=emacs&view=markup

> I think the project file can specify the main program, but I haven't
> checked that.

Yes, it can.

The masked-coder known as Randux wrote:
> 
> Blast, it seems as though I spoke too soon.  The M-x
> ada-compile-current doesn't do what I need- it only compiles.  I want
> it to do a full, normal gnatmake on the module just like C-c C-c was
> supposed to do.  Sorry about that.  Back to the drawing board.
> 

What do you mean by module? ada-compile-current compiles just the
current file, be it the main program, a package body, etc. If you want
to build different main programs in an Emacs session, I think you should
define a project file for every main program, and switch to the one
appropiate when you want to build it. Check the "Ada > Project" submenu.

Perhaps the current behaviour is not the best one for novice users.
Instead of remembering that the main program was the current file for
the first C-c C-c invocation, it should ask for a project file or a new
one when it is not any loaded yet. If advanced users want to compile
their sources in a different way, perhaps using makefiles or using a
simple gnatmake command-line, they always could invoke the M-x compile
command.

--
Manuel




More information about the Emacs-ada-mode mailing list