Skip to main content

files_lock_holds

Function files_lock_holds 

Source
pub fn files_lock_holds(
    cs: &str,
    copies_interface: impl FnOnce() -> bool,
) -> bool
Expand description

Whether a lock against the class and package files on cs holds against this redefinition. Most such locks hold against every one. One that holds only against a COPY of the binding’s interface ("{cs}:locked@copies": amsthm’s proof, amsthm_sty.rs) holds against a redefinition taking an optional argument with a default first (takes_optional_first) — amsthm.sty:431’s own {proof}[1][\proofname], which smfart.cls:1194, ijmart.cls:336 or thuthesis.cls:4052 re-implement over a \trivlist — and lets one with a head of its own through (fascicules.sty:142 {\textbf{D\'emonstration:} \par}, NotesTeX.sty:124, a paper’s own \renewenvironment{proof}{…Beweisskizze:…}{…$\blacksquare$}), whose head text and end mark the binding would replace. The environment’s end half (\end<name> of a qualified \<name>) follows its begin half: locked while that is still the binding’s (not cleared, and LaTeXML’s own, DefinitionOrigin::is_latexml_owned). OXIDIZED_DESIGN_DIVERGENCES #596.