# HG changeset patch # User John W. Eaton # Date 1371551941 14400 # Node ID 7268845c0a1eec55c84afef7270440897ff8d58d # Parent 80b9a9e1c9650edd33d90ca3e04d324358e08c45 avoid backquote in error messages, some uses in doc strings * libinterp/corefcn/quadcc.cc, libinterp/interpfcn/file-io.cc, libinterp/octave-value/ov-java.cc, scripts/image/colormap.m, scripts/image/rgbplot.m, scripts/miscellaneous/xor.m, scripts/plot/print.m, scripts/special-matrix/gallery.m, scripts/statistics/base/quantile.m, scripts/strings/strsplit.m: Use ' instead of ` in error messages. Don't use sprintf unnecessarily in error messages. Use @code or @samp instead of `' in doc strings. diff --git a/libinterp/corefcn/quadcc.cc b/libinterp/corefcn/quadcc.cc --- a/libinterp/corefcn/quadcc.cc +++ b/libinterp/corefcn/quadcc.cc @@ -1495,7 +1495,7 @@ @end example\n\ \n\ @noindent\n\ -which uses the element-by-element `dot' form for all operators.\n\ +which uses the element-by-element ``dot'' form for all operators.\n\ \n\ @var{a} and @var{b} are the lower and upper limits of integration. Either\n\ or both limits may be infinite. @code{quadcc} handles an inifinite limit\n\ diff --git a/libinterp/interpfcn/file-io.cc b/libinterp/interpfcn/file-io.cc --- a/libinterp/interpfcn/file-io.cc +++ b/libinterp/interpfcn/file-io.cc @@ -1139,7 +1139,7 @@ \n\ In the second form, read from @var{fid} according to @var{template},\n\ with each conversion specifier in @var{template} corresponding to a\n\ -single scalar return value. This form is more `C-like', and also\n\ +single scalar return value. This form is more ``C-like'', and also\n\ compatible with previous versions of Octave. The number of successful\n\ conversions is returned in @var{count}\n\ @ifclear OCTAVE_MANUAL\n\ diff --git a/libinterp/octave-value/ov-java.cc b/libinterp/octave-value/ov-java.cc --- a/libinterp/octave-value/ov-java.cc +++ b/libinterp/octave-value/ov-java.cc @@ -1321,7 +1321,7 @@ else { found = 0; - error ("cannot convert matrix of type `%s'", val.class_name ().c_str ()); + error ("cannot convert matrix of type '%s'", val.class_name ().c_str ()); } } else if (val.is_cellstr ()) diff --git a/scripts/image/colormap.m b/scripts/image/colormap.m --- a/scripts/image/colormap.m +++ b/scripts/image/colormap.m @@ -35,8 +35,8 @@ ## @code{jet} map with 64 entries). The default colormap is returned. ## ## @code{colormap ("list")} returns a cell array with all the available -## colormaps. The options `register' and `unregister' will add or remove the -## colormap @var{name} to it. +## colormaps. The options @code{"register"} and @code{"unregister"} +## will add or remove the colormap @var{name} to it. ## ## With no arguments, @code{colormap} returns the current color map. ## @seealso{jet} diff --git a/scripts/image/rgbplot.m b/scripts/image/rgbplot.m --- a/scripts/image/rgbplot.m +++ b/scripts/image/rgbplot.m @@ -65,7 +65,7 @@ set (gca, 'ytick', []); colormap (cmap); otherwise - error ("rgbplot: unknown style `%s'", style); + error ("rgbplot: unknown style '%s'", style); endswitch xlabel ("color index"); @@ -88,5 +88,5 @@ %!error rgbplot (1,2) %!error rgbplot ({0 1 0}) %!error