Next: Identifier completion, Previous: Compiling Examples, Up: Top
There are several easy to use commands to navigate 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. Some of these menu entries are available only if the GNAT compiler is used, since the implementation relies on the GNAT cross-referencing information.
ada-next-procedure
).
ada-previous-procedure
).
end
(ada-move-to-start
). 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), otherwise it jumps to
the subprogram declaration.
ada-move-to-end
).
ff-find-other-file
). If point is in a subprogram, position
point on the corresponding declaration or body in the other file.
ada-find-references
). Use
C-x ` (next-error
) to visit each reference (as for
compilation errors).
If the ada-xref-create-ali
variable is non-nil
, Emacs
will try to run GNAT for you whenever cross-reference information is
needed, and is older than the current source file.