# HG changeset patch # User jwe # Date 1199480952 0 # Node ID 0fa079d0477230042147c7e7c2b9a2d84128db6a # Parent 40252ccfcb67e47ca68a9988d990acfc4480d2e9 [project @ 2008-01-04 21:09:11 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-01-04 Thomas Weber + + * variables.cc (Fclear): Doc fix. + 2008-01-04 John W. Eaton * symtab.h (symbol_table:pop_scope): Avoid accessing beyond end of diff --git a/src/variables.cc b/src/variables.cc --- a/src/variables.cc +++ b/src/variables.cc @@ -2230,7 +2230,7 @@ DEFCMD (clear, args, , "-*- texinfo -*-\n\ -@deffn {Command} clear [-x] pattern @dots{}\n\ +@deffn {Command} clear [options] pattern @dots{}\n\ Delete the names matching the given patterns from the symbol table. The\n\ pattern may contain the following special characters:\n\ \n\ @@ -2268,7 +2268,24 @@ @code{foo} as a function. Executing @kbd{clear foo} a second time will\n\ clear the function definition.\n\ \n\ -With -x, clear the variables that don't match the patterns.\n\ +The following options are available in both long and short form\n\ +@table @code\n\ +@item -all, -a\n\ +Clears all local and global user-defined variables and all functions\n\ +from the symbol table.\n\ +\n\ +@item -exclusive, -x\n\ +Clears the variables that don't match the following pattern.\n\ +\n\ +@item -functions, -f\n\ +Clears the function names and the built-in symbols names.\n\ +@item -global, -g\n\ +Clears the global symbol names.\n\ +@item -variables, -v\n\ +Clears the local variable names.\n\ +@end table\n\ +With the execption of @code{exclusive}, all long options can be used \n\ +without the dash as well.\n\ @end deffn") { octave_value_list retval;