changeset 42342:edeb3d66b7e0

Perl changes for etags.
author Francesco Potortì <pot@gnu.org>
date Wed, 26 Dec 2001 21:51:53 +0000
parents e0faaa516289
children 199bc55cdd07
files etc/NEWS man/maintaining.texi
diffstat 2 files changed, 13 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Wed Dec 26 21:27:54 2001 +0000
+++ b/etc/NEWS	Wed Dec 26 21:51:53 2001 +0000
@@ -135,6 +135,10 @@
 
 *** In Prolog, etags creates tags for rules in addition to predicates.
 
+*** In Perl, packages are tags.  Subroutine tags are named from their
+package.  You can jump to sub tags as you did before, by the sub name, or
+additionally by looking for package::sub.
+
 *** New language PHP: tags are functions, classes and defines.  If
 the --members option is specified to etags, tags are vars also.
 
--- a/man/maintaining.texi	Wed Dec 26 21:27:54 2001 +0000
+++ b/man/maintaining.texi	Wed Dec 26 21:51:53 2001 +0000
@@ -332,16 +332,21 @@
 
 @item
 In Objective C code, tags include Objective C definitions for classes,
-class categories, methods, and protocols.
+class categories, methods, and protocols.  Tags for variables and
+functions in classes are named @samp{@var{class}::@var{variable}} and
+@samp{@var{class}::@var{function}}.
 
 @item
 In Pascal code, the tags are the functions and procedures defined in
 the file.
 
 @item
-In Perl code, the tags are the procedures defined by the @code{sub},
-@code{my} and @code{local} keywords.  Use @samp{--globals} if you want
-to tag global variables.
+In Perl code, the tags are the packages, subroutines and variables
+defined by the @code{package}, @code{sub}, @code{my} and @code{local}
+keywords.  Use @samp{--globals} if you want to tag global variables.
+Tags for subroutines are named @samp{@var{package}::@var{sub}}.  The
+name for subroutines defined in the default package is
+@samp{main::@var{sub}}.
 
 @item
 In PHP code, tags are functions, classes and defines.  When using the