changeset 26104:0e4b9df85361

Don't issue a warning when -noui option used with print. * print.m: Document '-noui' option and the fact that this is the default for Octave. * __print_parse_opts__.m: Don't issue a warning if '-noui' option is found.
author Rik <rik@octave.org>
date Tue, 20 Nov 2018 16:05:42 -0800
parents 9cfbe7688368
children 0cebf81fcdc5
files scripts/plot/util/print.m scripts/plot/util/private/__print_parse_opts__.m
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/print.m	Tue Nov 20 14:39:17 2018 -0800
+++ b/scripts/plot/util/print.m	Tue Nov 20 16:05:42 2018 -0800
@@ -156,6 +156,12 @@
 ## @itemx -dashed
 ##   Force all lines to be solid or dashed, respectively.
 ##
+## @item -noui
+##   Don't print uicontrol objects such as pushbuttons which may overlay the
+## plot.  This is the default behavior and it is not possible to include
+## uicontrol objects in the output without using an external screen capture
+## tool.
+##
 ## @item -r@var{NUM}
 ##   Resolution of bitmaps in dots per inch (DPI).  For both metafiles and SVG
 ## the default is the screen resolution; for other formats the default is 150
--- a/scripts/plot/util/private/__print_parse_opts__.m	Tue Nov 20 14:39:17 2018 -0800
+++ b/scripts/plot/util/private/__print_parse_opts__.m	Tue Nov 20 16:05:42 2018 -0800
@@ -171,9 +171,8 @@
       elseif (length (arg) > 2 && arg(1:2) == "-f")
         arg_st.figure = str2double (arg(3:end));
       elseif (strcmp (arg, "-noui"))
-        warning ("octave:ignoredargument", ...
-                 ["print: '%s' accepted for Matlab compatibility, ", ...
-                  "but is ignored."], arg);
+        ## Accepted, but nothing needs to be done since Octave already
+        ## excludes uicontrol objects when printing.
       elseif (length (arg) >= 1 && arg(1) == "-")
         error ("print: unknown option '%s'", arg);
       elseif (length (arg) > 0)