# HG changeset patch # User John W. Eaton # Date 1284576210 14400 # Node ID 1cbfb15892c9956824b79fed246f97a75ac948eb # Parent 7f49dc864f32ac510efb696c3805af8c176cb94b addpath, rmpath: document path arguments diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-09-15 John W. Eaton + + * load-path.cc (Faddpath, Frmpath): Document path arguments. + 2010-09-15 John Swensen * __magick_read__.cc: Allow image_write to write filetypes diff --git a/src/load-path.cc b/src/load-path.cc --- a/src/load-path.cc +++ b/src/load-path.cc @@ -2011,7 +2011,7 @@ current load path.\n\ \n\ If @var{nargin} is greater than zero, concatenate the arguments,\n\ -separating them with @code{pathsep()}. Set the internal search path\n\ +separating them with @code{pathsep}. Set the internal search path\n\ to the result and return it.\n\ \n\ No checks are made for duplicate elements.\n\ @@ -2064,6 +2064,13 @@ directory name to the current path. If @var{option} is @samp{\"-end\"}\n\ or 1, append the directory name to the current path.\n\ Directories added to the path must exist.\n\ +\n\ +In addition to accepting individual directory arguments, lists of\n\ +directory names separated by @code{pathsep} are also accepted. For example,\n +\n\ +@example\n\ +addpath (\"dir1:/dir2:~/dir3\");\n\ +@end example\n\ @seealso{path, rmpath, genpath, pathdef, savepath, pathsep}\n\ @end deftypefn") { @@ -2169,6 +2176,12 @@ @deftypefn {Built-in Function} {} rmpath (@var{dir1}, @dots{})\n\ Remove @var{dir1}, @dots{} from the current function search path.\n\ \n\ +In addition to accepting individual directory arguments, lists of\n\ +directory names separated by @code{pathsep} are also accepted. For example,\n +\n\ +@example\n\ +rmpath (\"dir1:/dir2:~/dir3\");\n\ +@end example\n\ @seealso{path, addpath, genpath, pathdef, savepath, pathsep}\n\ @end deftypefn") {