[self-follow-up]

At 2026-05-19T17:06:20-0500, G. Branden Robinson wrote:
> I have a hunch that this feature change is sufficiently useful,
> harmless, and esoteric that I've gone ahead and implemented it, but
> not yet pushed it.

Having received no feedback, this proposed change will likely be in my
next push, which I expect to do today or tomorrow.

I thought I'd clarify a detail.

> The proposed behavior change is to make `pwh` report the properties of
> a diversion trap if one is present, instead of reporting nothing.
> 
> Another possible solution would be to implement a new request called
> "pdt" to report this information, but, to me, the mutual exclusivity of
> page location and diversion traps, and the desirability of not further
> growing the request repertoire unnecessarily argued against it.  It's
> won't be difficult to change the code to hook this feature up to a new
> "pdt" request instead of "pwh" if people would prefer that.  (In a
> sense, that would be the more "orthogonal" solution.)
> 
> I do have a moderately strong feeling that the report should be
> available via _some_ means.

One might reasonably point out the following AT&T troff feature.

groff(7):
     \n[.t]         Distance to next vertical position trap; see wh and
                    ch.  If no such traps exist between the drawing
                    position and the bottom of the page, troff
                    interpolates the distance to the page bottom.
                    Within a diversion, in the absence of a diversion
                    trap, this distance is the maximum possible vertical
                    position supported by the output device.

That's true as far as it goes, which is "ahead of the current drawing
position in the diversion (top-level or otherwise)".

The `pwh` feature remains useful, as it exists today and with this
proposed enhancement, because it informs you of the presence of vertical
position traps _regardless_ of the drawing position, and describes not
just where the traps are but what macro is associated with each.

(I see that I need to clarify the quoted language above--"in the absence
of a diversion trap" isn't quite correct, as noted in the foregoing
paragraph.)

Regards,
Branden

Attachment: signature.asc
Description: PGP signature

Reply via email to