gbranden pushed a commit to branch master
in repository groff.
commit 3f38152d06946bf3aa5d68c647bbb74807de36e5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 23 12:12:34 2026 -0600
[doc,man]: Document changed pev request behavior.
* doc/groff.texi.in (Debugging):
* man/groff.7.man.in (Request short reference):
* man/groff_diff.7.man (New requests): Do it.
Fixes <https://savannah.gnu.org/bugs/?68907>.
NEWS: Add item.
---
ChangeLog | 6 ++++++
NEWS | 6 ++++++
doc/groff.texi.in | 11 ++++++-----
man/groff.7.man.in | 8 ++++----
man/groff_diff.7.man | 13 ++++++++-----
5 files changed, 30 insertions(+), 14 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 15181667b..b335b9dd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,12 @@
* src/roff/groff/tests/pev-request-works.sh: Test new `pev`
request behavior.
+ * 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/?68907>.
+
2026-11-23 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp: Refactor. Migrate representation of
diff --git a/NEWS b/NEWS
index 060ab56b7..32658d710 100644
--- a/NEWS
+++ b/NEWS
@@ -37,6 +37,12 @@ troff
* The `pev` request now accepts arguments. Each is interpreted as an
environment identifier, whose properties are reported if it exists.
+* The `pev` request now issues a different report when invoked without
+ arguments. It reports the names of environments in the stack,
+ marking the current environment with a tab and asterisk, and if
+ unstacked environments exist, lists them subsequently under a
+ separate heading.
+
* 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 83f79c990..aa5425d88 100644
--- a/doc/groff.texi.in
+++ b/doc/groff.texi.in
@@ -23352,11 +23352,12 @@ to the standard error stream,
@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.
+@var{env-id}.
+Omit arguments to obtain a summary of available environments.
+The request reports the names of environments in the stack,
+marking the current environment with a tab and asterisk,
+and if unstacked environments exist,
+lists them subsequently under a separate heading.
@endDefreq
@Defreq {pfp, [@Var{pos @r{@dots{}}]}}
diff --git a/man/groff.7.man.in b/man/groff.7.man.in
index 140b7ece0..5a5a32a98 100644
--- a/man/groff.7.man.in
+++ b/man/groff.7.man.in
@@ -4885,10 +4885,10 @@ followed by its \[lq]to\[rq] mapping.
.
.TPx
.REQ .pev
-Report,
-to the standard error stream,
-properties of the current environment,
-followed by those of all other environments.
+Report the names of environments in the stack,
+marking the current environment with a tab and asterisk,
+and if unstacked environments exist,
+list them subsequently under a separate heading.
.
.TPx
.REQ .pev "env-id \fR\&.\|.\|.\&\fP"
diff --git a/man/groff_diff.7.man b/man/groff_diff.7.man
index fb30486e8..16c438a8b 100644
--- a/man/groff_diff.7.man
+++ b/man/groff_diff.7.man
@@ -4041,11 +4041,14 @@ to the standard error stream,
.\" 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.
+.I env-id.
+.
+Omit arguments to obtain a summary of available environments.
+.
+The request reports the names of environments in the stack,
+marking the current environment with a tab and asterisk,
+and if unstacked environments exist,
+lists them subsequently under a separate heading.
.
.
.TP
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit