<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Stephen Leake wrote:<br>
</tt>
<blockquote cite="mid:uiqu17rzt.fsf@nasa.gov" type="cite"><tt>There are
actually two ways to use .gpr files to set Emacs Ada mode<br>
project variables.<br>
  <br>
You can specify a .gpr file directly as the Emacs Ada mode project<br>
file, or you can specify a .gpr file as part of an Emacs Ada mode<br>
project file. <br>
  <br>
I use the later, because it lets me also specify capitialization<br>
exceptions, and other source directories to search, such as for<br>
Makefiles. <br>
  </tt></blockquote>
<tt>&lt;snip&gt;<br>
</tt>
<blockquote cite="mid:uiqu17rzt.fsf@nasa.gov" type="cite">
  <blockquote type="cite"><tt>Well, yes. I mean, that does test them,
but if I have to use a shell to <br>
run gnatmake so I can use my *.gpr files, then I don't get all the <br>
features of Ada Mode, such as jumping to the lines an error occurs on.<br>
    </tt></blockquote>
<!----><tt><br>
With the current Emacs Ada mode, you get this, when you run the<br>
compilation via M-x compile, or one of the Emacs Ada mode 'build'<br>
commands.<br>
  <br>
  </tt>
  <blockquote type="cite"><tt>Maybe ``organize itself'' was not the
best choice of words. What I'd <br>
like is to have Ada Mode base all of its compilation commands off of
the <br>
.gpr files, no .adp files needed. <br>
    </tt></blockquote>
<!----><tt><br>
That is possible.<br>
  <br>
  </tt>
  <blockquote type="cite"><tt>Basically, using .gpr files exactly as it
uses .adp files (in the<br>
version of ada-*.el that I have). I guess that would mean that it'd<br>
just call gnatmake -Psomething.gpr from the correct directory<br>
whenever it does a build. Unfortunately, I tried setting this switch<br>
in my *.adp file, and it tells me that it can't find the file. Guess<br>
I'm doing it wrong.<br>
    </tt></blockquote>
<!----><tt><br>
There is a tutorial in the current Emacs Ada mode manual; please try<br>
it and see if it makes things clearer.<br>
  <br>
  </tt></blockquote>
<tt><br>
Just an update:<br>
<br>
I've installed the latest version of ada-mode, and it works great. 
I've been designating standard *.gpr files as my ada-mode project
files, and it works just as I'd hoped.  Truly excellent!<br>
</tt>
</body>
</html>