There are several easy to use commands to stroll through Ada code. All these functions are available through the Ada menu, and you can also use the following key bindings or the command names:
end
. If point is at the end of a
subprogram, this command jumps to the corresponding begin
if the
user option ada-move-to-declaration
is nil
(default), it
jumps to the subprogram declaration otherwise.
These functions use the information in the output of the Gnat Ada
compiler. However, if your application was compiled with the
-gnatx
switch, these functions will not work, since no extra
information is generated by GNAT. See GNAT documentation for further
information.
Emacs will try to run Gnat for you whenever the cross-reference
informations are older than your source file (provided the
ada-xref-create-ali
variable is non nil). Gnat then produces a
file with the same name as the current Ada file but with the extension
changed to .ali
. This files are normally used by the binder, but
they will also contain additional cross-referencing information.