gbranden pushed a commit to branch master
in repository groff.

commit 80a92046990d2d4a10a293f7a2d5dda8de223f75
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 23 01:05:56 2026 -0600

    [doc,man]: Document new `pev` request syntax.
    
    * doc/groff.texi.in (Debugging):
    * man/groff.7.man.in (Request short reference):
    * man/groff_diff.7.man (New requests): Document it.
    
    Fixes <https://savannah.gnu.org/bugs/?68905>.
    
    NEWS: Add item.
---
 ChangeLog            |  6 ++++++
 NEWS                 |  3 +++
 doc/groff.texi.in    | 15 ++++++++++++---
 man/groff.7.man.in   | 13 +++++++++++--
 man/groff_diff.7.man | 16 +++++++++++++---
 5 files changed, 45 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index cf503e6da..ec92c63dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,12 @@
 
        * src/roff/groff/groff.am: Update `groff_TESTS` to run tests.
 
+       * doc/groff.texi.in (Debugging):
+       * man/groff.7.man.in (Request short reference):
+       * man/groff_diff.7.man (New requests): Document it.
+
+       Fixes <https://savannah.gnu.org/bugs/?68905>.
+
 2026-11-22  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (struct grostream): Declare new
diff --git a/NEWS b/NEWS
index 7958a76a5..060ab56b7 100644
--- a/NEWS
+++ b/NEWS
@@ -34,6 +34,9 @@ troff
    saved by the most recent `sv` request, if it has not yet been output
    with the `os` request.
 
+*  The `pev` request now accepts arguments.  Each is interpreted as an
+   environment identifier, whose properties are reported if it exists.
+
 *  The `pev` request now reports the environment's modified glyph height
    and slant, as applicable; and its selected control and no-break
    control characters.
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 4dbc278ac..83f79c990 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -23343,11 +23343,20 @@ The ``from'' code point is listed first,
 followed by its ``to'' mapping.
 @endDefreq
 
-@Defreq {pev, }
+@Defreq {pev, [@Var{env-id @r{@dots{}}]}}
 @cindex dumping environments (@code{pev})
 @cindex environments, dumping (@code{pev})
-Report the state of the current environment followed by that of all
-other environments to the standard error stream.
+Report,
+to the standard error stream,
+@c We do not say "the" properties; not all are reported because some
+@c exist but don't have meaningful values while a control line is being
+@c interpreted to make the report.
+properties of each environment
+@var{env-id},
+or,
+without arguments,
+those of the current environment,
+followed by those of all other environments.
 @endDefreq
 
 @Defreq {pfp, [@Var{pos @r{@dots{}}]}}
diff --git a/man/groff.7.man.in b/man/groff.7.man.in
index 77882d644..140b7ece0 100644
--- a/man/groff.7.man.in
+++ b/man/groff.7.man.in
@@ -4885,8 +4885,17 @@ followed by its \[lq]to\[rq] mapping.
 .
 .TPx
 .REQ .pev
-Report the state of the current environment followed by that of all
-other environments to the standard error stream.
+Report,
+to the standard error stream,
+properties of the current environment,
+followed by those of all other environments.
+.
+.TPx
+.REQ .pev "env-id \fR\&.\|.\|.\&\fP"
+Report,
+to the standard error stream,
+properties of each environment
+.I env-id.
 .
 .TPx
 .REQ .pfp
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index b12a4edfe..fb30486e8 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -4033,9 +4033,19 @@ followed by its \[lq]to\[rq] mapping.
 .
 .
 .TP
-.B .pev
-Report the state of the current environment followed by that of all
-other environments to the standard error stream.
+.BR .pev \~[\c
+.IR env-id \~\&.\|.\|.]
+Report,
+to the standard error stream,
+.\" We do not say "the" properties; not all are reported because some
+.\" exist but don't have meaningful values while a control line is being
+.\" interpreted to make the report.
+properties of each environment
+.I env-id,
+or,
+without arguments,
+those of the current environment,
+followed by those of all other environments.
 .
 .
 .TP

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to