changeset 31037:39876ea8c588 stable

warning_ids.m: Add new warning ID "Octave:deprecated-option". * NEWS.7.md: Place deprecation notice about plot options in the "Functions" block of the deprecated section. * warning_ids.m: Add new warning ID "Octave:deprecated-option".
author Rik <rik@octave.org>
date Fri, 27 May 2022 07:55:01 -0700
parents 7c4e580bc103
children 39ca6d0b63e4 ecb867dfc8eb
files etc/NEWS.7.md scripts/help/warning_ids.m
diffstat 2 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS.7.md	Fri May 27 15:57:08 2022 +0200
+++ b/etc/NEWS.7.md	Fri May 27 07:55:01 2022 -0700
@@ -325,6 +325,10 @@
   `disable_permutation_matrix` | `optimize_permutation_matrix`
   `disable_range`              | `optimize_range`
 
+  For plot functions, the use of numbers to select line colors in
+  shorthand formats was an undocumented feature that is deprecated in
+  Octave 7 and will be removed from Octave 9.
+
 - Operators
 
   Operator | Replacement | Description
@@ -362,11 +366,6 @@
   and a warning is now emitted if it is used, but it will continue to
   work.
 
-- Using numbers to select line colors in short hand formats was an
-  un-documented feature that is deprecated in Octave 7 and will be
-  removed from Octave 9.
-
-
 ### Removed functions, properties, and features
 
 The following functions and properties were deprecated in Octave 5
--- a/scripts/help/warning_ids.m	Fri May 27 15:57:08 2022 +0200
+++ b/scripts/help/warning_ids.m	Fri May 27 07:55:01 2022 -0700
@@ -190,6 +190,11 @@
 ## scheduled for removal from Octave.
 ## By default, the @code{Octave:deprecated-keyword} warning is enabled.
 ##
+## @item Octave:deprecated-option
+## If the @code{Octave:deprecated-option} warning is enabled, a
+## warning is issued when an obsolete option or input to a function is used.
+## By default, the @code{Octave:deprecated-option} warning is enabled.
+##
 ## @item Octave:deprecated-property
 ## If the @code{Octave:deprecated-property} warning is enabled, a
 ## warning is issued when Octave encounters a graphics property that