[bug #68358] [troff] make `pwh` request report existence and location of diversion trap

"G. Branden Robinson" <[email protected]>
Newsgroups gmane.comp.printing.groff.bugs
Message-ID <[email protected]>
Update of bug #68358 (group groff):

                  Status:                    None => In Progress
             Assigned to:                    None => gbranden
         Planned Release:                    None => 1.25.0

    _______________________________________________________

Follow-up Comment #1:

[https://lists.gnu.org/archive/html/groff/2026-05/msg00033.html Feedback on
this feature change sought on the _groff_ list.]

Illustration:


$ cat ATTIC/pwh-report-diversion-trap-demo.mm
.de DT
.tm BOING
..
.pwh
.di D
.tm inside diversion; reporting traps
.pwh
.tm setting diversion trap
.dt 2v DT
.pwh
.nf
foo
bar
.tm diversion trap should have sprung; reporting traps
.pwh
.tm clearing diversion trap and reporting again
.dt
.pwh
.di
.tm outside diversion; reporting traps
.pwh
$ ./build/test-groff -mm ATTIC/pwh-report-diversion-trap-demo.mm
pg@header       0
pg@footer       708000
inside diversion; reporting traps
setting diversion trap
DT      24000
BOING
diversion trap should have sprung; reporting traps
DT      24000
clearing diversion trap and reporting again
outside diversion; reporting traps
pg@header       0
pg@footer       708000




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68358>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCagzkDQAKCRCqLAuaBUf3
Tjr7AP9q9HueUHrGj2rjz0Tv5nhuQDfN5euUVq7s7MuKAFQyUAEArJDofbDOxdQS
/PXx/TskZXD+DCkkg08naEyGdiCdcgs=
=F5qQ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.