groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 13/51: [pic]: Emit deprecation diag for "plot" command.


From: G. Branden Robinson
Subject: [groff] 13/51: [pic]: Emit deprecation diag for "plot" command.
Date: Sun, 11 Sep 2022 08:15:50 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit ec4a2a29db97ca35808b7568dea79e6c2d63b1a9
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
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 <g.branden.robinson@gmail.com>
+
+       * 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 <g.branden.robinson@gmail.com>
 
        * 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);
                }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]