[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #59973] [PATCH] implement .soquiet and .msoquiet requests
From: |
G. Branden Robinson |
Subject: |
[bug #59973] [PATCH] implement .soquiet and .msoquiet requests |
Date: |
Thu, 8 Apr 2021 23:59:32 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Update of bug #59973 (project groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.23.0
_______________________________________________________
Follow-up Comment #6:
commit 955323df9ebfb8e0889f8eac77edd3477333fe66
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Fri Apr 9 13:09:31 2021 +1000
Implement new .soquiet and .msoquiet requests.
Needed for two planned developments: (1) the i18n patch in Savannah
bug #59814 can use this to quietly attempt to open a localization file.
groff only supports a few locales, so people with LANG=es_ES, for
instance, would ordinarily see warning diagnostics on every groff
startup if file warnings were enabled; and (2) system- or
site-configurable support of per-user {.,}troffrc or man.local files,
gracefully failing if they don't exist.
* src/roff/troff/input.cpp:
(do_source): Add new function, taking boolean "quietly" parameter and
absorbing function of source(), with added conditional.
(source): Convert into a wrapper to call do_source() unquietly.
(source_quietly): Wrap do_source(), quietly.
(do_macro_source, macro_source, macro_source_quietly): Analogous to
the foregoing.
(init_requests): Hook "msoquiet" to macro_source_quietly() and
"soquiet" to "source_quietly().
* doc/groff.texi (I/O):
* man/groff.7.man (Requests/Request short reference):
* man/groff_diff.7.man (Language/New requests): Document them.
* src/roff/groff/tests/msoquiet_works.sh:
* src/roff/groff/tests/soquiet_works.sh: Test them.
* src/roff/groff/groff.am (groff_TESTS): Add tests.
Fixes <https://savannah.gnu.org/bugs/?59973>.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59973>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/