gbranden pushed a commit to branch master
in repository groff.
commit ec4a2a29db97ca35808b7568dea79e6c2d63b1a9
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Sep 3 22:20:23 2022 -0500
[pic]: Emit deprecation diag for "plot" command.
* src/preproc/pic/pic.ypp (object_spec): Emit deprecation diagnostic for
"plot" command. The man page has declared it thus for over 30 years,
at least since groff 1.02 (June 1991).
---
ChangeLog | 6 ++++++
src/preproc/pic/pic.ypp | 2 ++
2 files changed, 8 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9dc518f3a..97d20a978 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-09-03 G. Branden Robinson <[email protected]>
+
+ * src/preproc/pic/pic.ypp (object_spec): Emit deprecation
+ diagnostic for "plot" command. The man page has declared it
+ thus for over 30 years, at least since groff 1.02 (June 1991).
+
2022-09-03 G. Branden Robinson <[email protected]>
* src/preproc/pic/pic.ypp (placeless_element): Explicitly say
diff --git a/src/preproc/pic/pic.ypp b/src/preproc/pic/pic.ypp
index c30283477..0fd4cfceb 100644
--- a/src/preproc/pic/pic.ypp
+++ b/src/preproc/pic/pic.ypp
@@ -686,6 +686,8 @@ object_spec:
}
| PLOT expr
{
+ lex_warning("'plot' is deprecated; use 'sprintf'"
+ " instead");
$$ = new object_spec(TEXT_OBJECT);
$$->text = new text_item(format_number(0, $2), 0, -1);
}
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit