comparison src/load-path.cc @ 8746:5dd06f19e9be

handle commands in the lexer
author John W. Eaton <jwe@octave.org>
date Sun, 15 Feb 2009 23:49:15 -0500
parents 236ff50db90f
children 7d48766c21a5
comparison
equal deleted inserted replaced
8745:6dc61981d18b 8746:5dd06f19e9be
1895 } 1895 }
1896 1896
1897 return retval; 1897 return retval;
1898 } 1898 }
1899 1899
1900 DEFCMD (addpath, args, nargout, 1900 DEFUN (addpath, args, nargout,
1901 "-*- texinfo -*-\n\ 1901 "-*- texinfo -*-\n\
1902 @deftypefn {Built-in Function} {} addpath (@var{dir1}, @dots{})\n\ 1902 @deftypefn {Built-in Function} {} addpath (@var{dir1}, @dots{})\n\
1903 @deftypefnx {Built-in Function} {} addpath (@var{dir1}, @dots{}, @var{option})\n\ 1903 @deftypefnx {Built-in Function} {} addpath (@var{dir1}, @dots{}, @var{option})\n\
1904 Add @var{dir1}, @dots{} to the current function search path. If\n\ 1904 Add @var{dir1}, @dots{} to the current function search path. If\n\
1905 @var{option} is @samp{\"-begin\"} or 0 (the default), prepend the\n\ 1905 @var{option} is @samp{\"-begin\"} or 0 (the default), prepend the\n\
1991 print_usage (); 1991 print_usage ();
1992 1992
1993 return retval; 1993 return retval;
1994 } 1994 }
1995 1995
1996 DEFCMD (rmpath, args, nargout, 1996 DEFUN (rmpath, args, nargout,
1997 "-*- texinfo -*-\n\ 1997 "-*- texinfo -*-\n\
1998 @deftypefn {Built-in Function} {} rmpath (@var{dir1}, @dots{})\n\ 1998 @deftypefn {Built-in Function} {} rmpath (@var{dir1}, @dots{})\n\
1999 Remove @var{dir1}, @dots{} from the current function search path.\n\ 1999 Remove @var{dir1}, @dots{} from the current function search path.\n\
2000 \n\ 2000 \n\
2001 @seealso{path, addpath, genpath, pathdef, savepath, pathsep}\n\ 2001 @seealso{path, addpath, genpath, pathdef, savepath, pathsep}\n\