comparison man/programs.texi @ 35298:f5b916018b7e

Added instructions for use of Ada tags.
author Francesco Potortì <pot@gnu.org>
date Sun, 14 Jan 2001 21:04:25 +0000
parents e268b7b500f0
children e6bffd5c5287
comparison
equal deleted inserted replaced
35297:e268b7b500f0 35298:f5b916018b7e
1963 1963
1964 @itemize @bullet 1964 @itemize @bullet
1965 1965
1966 @item 1966 @item
1967 In Ada code, functions, procedures, packages, tasks, and types are 1967 In Ada code, functions, procedures, packages, tasks, and types are
1968 tags. Use the @samp{--packages-only} option to create tags for packages 1968 tags. Use the @samp{--packages-only} option to create tags for
1969 only. 1969 packages only.
1970
1971 With Ada, it is possible to have the same name used for different
1972 entity kind (e.g. same name for a procedure and a function). Also,
1973 for things like package, procedures and functions, there is the spec
1974 (i.e. the interface) and the body (i.e. the implementation). To
1975 facilitate the choice to the user, a tag value is appended with a
1976 qualifier :
1977
1978 @table @asis
1979 @item function
1980 @kbd{/f}
1981 @item procedure
1982 @kbd{/p}
1983 @item package spec
1984 @kbd{/s}
1985 @item package body
1986 @kbd{/b}
1987 @item type
1988 @kbd{/t}
1989 @item task
1990 @kbd{/k}
1991 @end table
1992
1993 So, as an example, @kbd{M-x find-tag bidule/b} will go directly to the
1994 body of the package @var{bidule} while @kbd{M-x find-tag bidule} will
1995 just search for any tag @var{bidule}.
1970 1996
1971 @item 1997 @item
1972 In assembler code, labels appearing at the beginning of a line, 1998 In assembler code, labels appearing at the beginning of a line,
1973 followed by a colon, are tags. 1999 followed by a colon, are tags.
1974 2000