bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #64592] [troff] registers .m and .M contain no initial value


From: Deri James
Subject: [bug #64592] [troff] registers .m and .M contain no initial value
Date: Fri, 17 Nov 2023 10:13:11 -0500 (EST)

Follow-up Comment #8, bug #64592 (project groff):

Sorry, my fault, I was not clear. My reference to the registers in comment #3
was intended to show that your statement "registers .m and .M don't behave
like other registers (containing the default values)" was the problem. I'm not
sure (2) can be successfully implemented for all devices, groff does not
"know" for certain the default colour. Groff outputs the command "DFd"
initially since it is up to the output device to decide the default colour and
groff does not know. This is why the fix for this anomalous behaviour is to
delegate the default colour decision to each output driver.

It is quite common for macros or string to change a text state and restore it
afterwards. One way is to note the current value using the documented state
variables and restore them afterwards, but because \n[.m] does not contain the
actual colour, this is not possible for colours.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]