help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Hierarchy on headings


From: Christos Tsiareas
Subject: Hierarchy on headings
Date: Wed, 4 Apr 2001 16:34:48 +0300

Hi,

I am a new EMACS user working in ADA.
I would like to know if it is possible to create multiple nested expansions
(headings) in an ADA program.

For example, for the following ADA program:

procedure First(Val : in Boolean)
is
  x: integer;
  y: integer;
begin
  if Val then
    x := y + 3;
  else
    y := x + 3;
  end if;
end First;

a. When I open the file I would like to only see:
procedure First (expansion)
as an expansion containing all the rest

a. If I open this expansion:

procedure First(Val : in Boolean)
is
  Local Declarations (expansion)
begin
  if Val then
    Handle value for X (Expansion)
  else
    Handle value for y (expansion)
  end if;
end First;

a. And finally, if I open the three nested expansion I should be able to
view all the program.


Is it possible? I have tried using the outline-minor mode and the
outline-regexp variable but I did not manage to have more than one level or
expansions.


Thank you,
Christos Tsiareas
SW Engineer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]