gbranden pushed a commit to branch master
in repository groff.

commit dfb3aad9cff9c9cd9613faffa411bc114ef89f12
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 22 22:35:59 2026 -0600

    [doc,man]: Document new `pstream` 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/?68952>.
    
    NEWS: Add item.
---
 ChangeLog            | 6 ++++++
 NEWS                 | 3 +++
 doc/groff.texi.in    | 7 +++++--
 man/groff.7.man.in   | 5 +++++
 man/groff_diff.7.man | 9 +++++++--
 5 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d2b7c6af2..7278a89c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,12 @@
        it.
        * 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/?68952>.
+
 2026-11-22  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp (struct grostream): Fix code style
diff --git a/NEWS b/NEWS
index 81e304cb2..7958a76a5 100644
--- a/NEWS
+++ b/NEWS
@@ -46,6 +46,9 @@ troff
    position), which is then looked up in the set of font translations
    and reported if any translation exists.
 
+*  The `pstream` request now accepts arguments.  Each is interpreted as
+   a groff file stream, whose properties are reported if open.
+
 *  The formatter now emits a warning in category "style" if the escape
    character precedes itself or a dot ('.') when the formatter is in
    interpretation mode; in other words, when not in copy mode.
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index c6ef68eb5..4dbc278ac 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -23494,7 +23494,7 @@ If arguments are omitted,
 report the foregoing properties of all defined registers.
 @endDefreq
 
-@Defreq {pstream, }
+@Defreq {pstream, [@Var{stream} @r{@dots{}}]}
 @cindex dumping open streams (@code{pstream})
 @cindex open streams, dumping (@code{pstream})
 @cindex streams, open, dumping (@code{pstream})
@@ -23502,7 +23502,10 @@ Report,
 in
 @acronym{JSON}
 syntax to the standard error stream,
-the properties of
+the properties of each named open
+@var{stream}
+or,
+without arguments,
 all open streams.
 These properties comprise
 the name of each open stream,
diff --git a/man/groff.7.man.in b/man/groff.7.man.in
index 4438cd34e..77882d644 100644
--- a/man/groff.7.man.in
+++ b/man/groff.7.man.in
@@ -5132,6 +5132,11 @@ a pair of empty brackets
 represents an empty list.
 .
 .TPx
+.REQ .pstream "stream \fR\&.\|.\|.\&\fP"
+Report the properties of each named open
+.I stream.
+.
+.TPx
 .REQ .pwh
 If the top-level diversion is the current diversion,
 report the names and positions of all page location traps
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index daea8c985..b12a4edfe 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -4202,12 +4202,17 @@ which is passed to
 .
 .
 .TP
-.B .pstream
+.BR .pstream \~[\c
+.IR stream \~.\|.\|.]
 Report,
 in
 JSON
 syntax to the standard error stream,
-the properties of all open streams.
+the properties of each named open
+.I stream
+or,
+without arguments,
+all open streams.
 These properties comprise
 the name of each open stream,
 the name of the file backing it,

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

Reply via email to