Skip to main content

keep_binding_aside_before_class

Function keep_binding_aside_before_class 

Source
pub fn keep_binding_aside_before_class(
    token: &Token,
    definition: Option<&Stored>,
    scope: Option<&Scope>,
) -> bool
Expand description

lock_waits_for_class for definition of token at scope (None for an environment’s end half, which follows its begin half), which the lock would refuse. The binding it displaces is read once, for the value test and for the aside: the one kept aside already, else the one a clearing \let set aside ("{cs}:locked@cleared") when the name is cleared, else the meaning (outside every group, for a global definition). A value for a binding that owns its calls does not wait: the binding is back in place for OXIDIZED_DESIGN #500’s call owner, and the value stands past the class (\let\title\undefined or \def\title#1{…}, then \def\title{On Widgets}). A definition local to a group keeps nothing aside, since the group’s end undoes it (\begingroup\let\LaTeX\mylogo \def\LaTeX{X}\endgroup). Otherwise the binding is kept aside (once per name) for locks_take_hold to put back, with one Info:lock.