gbranden pushed a commit to branch master
in repository groff.

commit b549a4533fe55d04d28dc3c4313d7988f196089a
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 22 21:03:45 2026 -0600

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

diff --git a/ChangeLog b/ChangeLog
index d024eb1ed..ae742452e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,12 @@
        * src/roff/groff/tests/pfp-request-works.sh: New files; test 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/?68904>.
+
 2026-11-22  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/node.cpp: Trivially refactor.  Rename
diff --git a/NEWS b/NEWS
index c0ef016c1..81e304cb2 100644
--- a/NEWS
+++ b/NEWS
@@ -38,6 +38,9 @@ troff
    and slant, as applicable; and its selected control and no-break
    control characters.
 
+*  The `pfp` request now accepts arguments.  Each is interpreted as a
+   font mounting position, which is reported if occupied.
+
 *  The `pftr` request now accepts arguments.  Each is interpreted as a
    font identifier (which can be an abstract style but not a mounting
    position), which is then looked up in the set of font translations
diff --git a/doc/groff.texi.in b/doc/groff.texi.in
index 5632fe5b9..855aac391 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -23350,7 +23350,7 @@ Report the state of the current environment followed by 
that of all
 other environments to the standard error stream.
 @endDefreq
 
-@Defreq {pfp, }
+@Defreq {pfp, [@Var{pos @r{@dots{}}]}}
 @cindex dumping occupied font mounting positions (@code{pfp})
 @cindex occupied font mounting positions, dumping (@code{pfp})
 @cindex font mounting positions, occupied, dumping (@code{pfp})
@@ -23358,6 +23358,10 @@ other environments to the standard error stream.
 @cindex positions, font mounting, occupied, dumping (@code{pfp})
 Report,
 to the standard error stream,
+information about each occupied font mounting position
+@var{pos},
+or,
+without arguments,
 the list of occupied font mounting positions.
 Recall the
 @code{fp}
diff --git a/man/groff.7.man.in b/man/groff.7.man.in
index 02ee29342..d314ff1cd 100644
--- a/man/groff.7.man.in
+++ b/man/groff.7.man.in
@@ -4909,6 +4909,13 @@ the meaning of which varies by output device,
 follow.
 .
 .TPx
+.REQ .pfp "pos \fR\&.\|.\|.\&\fP"
+Report,
+to the standard error stream,
+information about each occupied font mounting position
+.I pos.
+.
+.TPx
 .REQ .pftr
 Report,
 to the standard error stream,
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index f23338c84..1e00ff93a 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -4039,9 +4039,14 @@ other environments to the standard error stream.
 .
 .
 .TP
-.B .pfp
+.BR .pfp \~[\c
+.IR pos \~\&.\|.\|.]
 Report,
 to the standard error stream,
+information about each occupied font mounting position
+.I pos,
+or,
+without arguments,
 the list of occupied font mounting positions.
 .\" Recall the @code{fp} request description in @ref{Selecting Fonts}.
 .

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

Reply via email to