Mercurial > octave
diff libinterp/corefcn/error.cc @ 29117:10a35049bad7
doc: Cleanup Texinfo macros use in documentation.
* macros.texi: Delete @xbackslashchar macro which was needed for Texinfo
versions < 5.1 (2013 release date). Alphabetize macros. Document macros
more clearly.
* func.txi, data.cc, error.cc, file-io.cc, regexp.cc, strfns.cc, utils.cc,
pt-eval.cc, beep.m, dlmwrite.m, strread.m, textread.m, asctime.m, ctime.m:
Replace "@xbackslashchar" with just "@backslashchar".
* graphics.cc (Fwaitfor): Replace '\' in @qcode macro with @backslashchar.
* input.cc (FPS1): Replace '\' in @qcode macro with @backslashchar.
Use single quotes in @example block to avoid "\\" construct.
* jsonencode.cc (Fjsonencode): Replace '\' in @qcode macro with @backslashchar.
* sysdep.cc (Fwinqueryreg): Replace '\' in @qcode macro with @backslashchar.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 27 Nov 2020 17:01:47 -0800 |
parents | d632d99d5c2e |
children | 254ee9af5014 |
line wrap: on
line diff
--- a/libinterp/corefcn/error.cc Fri Nov 27 13:49:11 2020 -0500 +++ b/libinterp/corefcn/error.cc Fri Nov 27 17:01:47 2020 -0800 @@ -1240,11 +1240,11 @@ which will only stop execution if an error has been found. Implementation Note: For compatibility with @sc{matlab}, escape -sequences in @var{template} (e.g., @qcode{"@xbackslashchar{}n"} => +sequences in @var{template} (e.g., @qcode{"@backslashchar{}n"} => newline) are processed regardless of whether @var{template} has been defined with single quotes, as long as there are two or more input arguments. To disable escape sequence expansion use a second backslash before the sequence -(e.g., @qcode{"@xbackslashchar{}@xbackslashchar{}n"}) or use the +(e.g., @qcode{"@backslashchar{}@backslashchar{}n"}) or use the @code{regexptranslate} function. @seealso{warning, lasterror} @end deftypefn */) @@ -1453,11 +1453,11 @@ @qcode{"off"}. Implementation Note: For compatibility with @sc{matlab}, escape sequences in -@var{template} (e.g., @qcode{"@xbackslashchar{}n"} => newline) are processed +@var{template} (e.g., @qcode{"@backslashchar{}n"} => newline) are processed regardless of whether @var{template} has been defined with single quotes, as long as there are two or more input arguments. To disable escape sequence expansion use a second backslash before the sequence (e.g., -@qcode{"@xbackslashchar{}@xbackslashchar{}n"}) or use the +@qcode{"@backslashchar{}@backslashchar{}n"}) or use the @code{regexptranslate} function. @seealso{warning_ids, lastwarn, error} @end deftypefn */)