# HG changeset patch # User Rik # Date 1542758742 28800 # Node ID 0e4b9df85361de2aecb465a3b9d8107e4628fb9b # Parent 9cfbe7688368c0002f24a638262fbc8e288cc720 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. diff -r 9cfbe7688368 -r 0e4b9df85361 scripts/plot/util/print.m --- 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 diff -r 9cfbe7688368 -r 0e4b9df85361 scripts/plot/util/private/__print_parse_opts__.m --- 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)