# HG changeset patch # User Rik # Date 1313514213 25200 # Node ID b80b18f537ca059ce00df82376448638a52b474f # Parent e4f82a337d666f9e3de2539d0a9236ab664090bb doc: Correct various Texinfo warnings about incorrect use of macros. * install.txi: Change @strong{Note:} to @strong{Note}: to move colon outside of macro. * edit.m: Change "WARNING!" to "Warning:" for consistency with other instances. * wilcoxon_test.m: Change "Warning:" to "Caution:" to more accurately reflect level of concern. * strmatch.m: Change @strong{Note:} to @strong{Caution:} to stop spurious cross-reference creation. * datenum.m: Change "Warning:" to "Caution:" to more accurately reflect level of concern. * oct-parse.yy: Change @xref to an @pxref to suppress warning about incorrect usage. diff --git a/doc/interpreter/install.txi b/doc/interpreter/install.txi --- a/doc/interpreter/install.txi +++ b/doc/interpreter/install.txi @@ -32,7 +32,7 @@ under the terms of the GNU General Public License as published by the Free Software Foundation. -@strong{Note:} This file is automatically generated from +@strong{Note}: This file is automatically generated from @file{doc/interpreter/install.txi} in the Octave sources. To update the documentation make changes to the .txi source file rather than this derived file. diff --git a/scripts/miscellaneous/edit.m b/scripts/miscellaneous/edit.m --- a/scripts/miscellaneous/edit.m +++ b/scripts/miscellaneous/edit.m @@ -54,7 +54,7 @@ ## filename. If @file{name.ext} is not modifiable, it will be copied to ## @env{HOME} before editing. ## -## @strong{WARNING!} You may need to clear name before the new definition +## @strong{Warning:} You may need to clear name before the new definition ## is available. If you are editing a .cc file, you will need ## to mkoctfile @file{name.cc} before the definition will be available. ## @end itemize diff --git a/scripts/statistics/tests/wilcoxon_test.m b/scripts/statistics/tests/wilcoxon_test.m --- a/scripts/statistics/tests/wilcoxon_test.m +++ b/scripts/statistics/tests/wilcoxon_test.m @@ -23,7 +23,7 @@ ## @var{y}) == 1/2. Under the null, the test statistic @var{z} ## approximately follows a standard normal distribution when @var{n} > 25. ## -## @strong{Warning}: This function assumes a normal distribution for @var{z} +## @strong{Caution:} This function assumes a normal distribution for @var{z} ## and thus is invalid for @var{n} @leq{} 25. ## ## With the optional argument string @var{alt}, the alternative of diff --git a/scripts/strings/strmatch.m b/scripts/strings/strmatch.m --- a/scripts/strings/strmatch.m +++ b/scripts/strings/strmatch.m @@ -43,7 +43,7 @@ ## @end group ## @end example ## -## @strong{Note:} @code{strmatch} is scheduled for deprecation. Use +## @strong{Caution:} @code{strmatch} is scheduled for deprecation. Use ## @code{strcmpi} or @code{strncmpi} in all new code. ## @seealso{strfind, findstr, strcmp, strncmp, strcmpi, strncmpi, find} ## @end deftypefn diff --git a/scripts/time/datenum.m b/scripts/time/datenum.m --- a/scripts/time/datenum.m +++ b/scripts/time/datenum.m @@ -50,7 +50,7 @@ ## Days can be fractional. ## @end itemize ## -## @strong{Warning:} this function does not attempt to handle Julian +## @strong{Caution:} this function does not attempt to handle Julian ## calendars so dates before Octave 15, 1582 are wrong by as much ## as eleven days. Also be aware that only Roman Catholic countries ## adopted the calendar in 1582. It took until 1924 for it to be diff --git a/src/oct-parse.yy b/src/oct-parse.yy --- a/src/oct-parse.yy +++ b/src/oct-parse.yy @@ -4216,10 +4216,10 @@ calls the function @code{acos} with the argument @samp{-1}.\n\ \n\ The function @code{feval} can also be used with function handles of\n\ -any sort. @xref{Function Handles} Historically, @code{feval} was\n\ +any sort (@pxref{Function Handles}). Historically, @code{feval} was\n\ the only way to call user-supplied functions in strings, but\n\ function handles are now preferred due to the cleaner syntax they\n\ -offer. For example,\n\ +offer. For example,\n\ \n\ @example\n\ @group\n\ @@ -4232,7 +4232,7 @@ @end example\n\ \n\ @noindent\n\ -are equivalent ways to call the function referred to by @var{f}. If it\n\ +are equivalent ways to call the function referred to by @var{f}. If it\n\ cannot be predicted beforehand that @var{f} is a function handle or the\n\ function name in a string, @code{feval} can be used instead.\n\ @end deftypefn")