Skip to main content

hoist_top_frame_package_load

Function hoist_top_frame_package_load 

Source
pub fn hoist_top_frame_package_load(pre: TopFrameKeys)
Expand description

Hoist what an autoloaded package installed at the topmost frame since pre was taken — its meanings and its values — to GLOBAL scope. The trigger (def_autoload, OmniBus’s \lx@late@usepackage, the LaTeX-pool autoload) is cleared and the package’s loaded-flag set globally, so what the package defines must live as long. Fired inside a group, natbib’s locked \citep was otherwise popped while its lock survived, every later \citep undefined (arXiv 2605.08349, 2605.10423, 2605.14513, 2605.04028: Fatal:TooManyErrors), and its citation style reverted after the group. A meaning the group had bound before the load and the load re-bound there goes too (the frame’s count stays 1, a local assignment replacing its binding: State.pm:169-174): natbib’s \let\bibitem\lx@nat@bibitem, loaded by OmniBus’s hook in a thebibliography that had armed \bibitem, was popped at the list’s end, and the next list’s \bibitem ran the hook forever (arXiv 2006.04387, KNOWN_PERL_ERRORS #1367). A value the group had bound stays the group’s: those are its own machinery (the mode, the font, the list’s registers).