Follow-up Comment #13, bug #66392 (group groff): At 2025-02-01T10:53:15-0500, Dave wrote: > Follow-up Comment #12, bug #66392 (group groff): > [comment #9 comment #9:] >> I had no way to know if an environment had already been created. >> That makes it harder for a package (or, less likely, document) >> author to manage environment initialization. I'm pondering a new >> `E` conditional operator for this. > > I ran into a more specific instance of this roadblock. Trying to > conditionally invoke .hla is complicated by the fact that if the > hyphenation language is currently undefined, the built-in register > \n[.hla] is still defined, even though its value is the empty string. > So ".if r .hla" doesn't do what one would hope. > > One can, of course, string-compare \n[.hla] to the empty string, but > the purist in me prefers a clearer distinction between the concepts > "empty" and "undefined" (though that's possibly a distinction the > software itself doesn't make).
I see what you're saying, but meeting your expectations would make `.hla` the only predefined register, I think, that would automatically come and go from existence as one changed environments. What other predefined registers do you perform existence checks on, and under what circumstances? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66392> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature