[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Lthooks2 (#375) (75108758)

GitHub noreply at github.com
Tue Aug 25 12:22:47 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/75108758a9a1336676d99a97ea2ac5406be8dec8

>---------------------------------------------------------------

commit 75108758a9a1336676d99a97ea2ac5406be8dec8
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Aug 25 12:22:47 2020 +0200

    Lthooks2 (#375)
    
    * start of lthooks2 integration
    
    * test file fixes and fix for already loaded packages
    
    * fix to tmp lthooks.sty
    more tests
    
    * remove the test that needs filehook
    
    * another broken one (why?)
    
    * one more attempt with search-true
    
    * try the correct file perhaps
    
    * sigh
    
    * sigh^2
    
    * Add some tests (will fail on purpose)
    
    * Test adding tools dependency
    
    * Add .tex support file
    
    * Add .tex support file
    
    * Integrate test files
    
    * Avoid backend stuff in test file
    
    * Let Travis finish its job this once
    
    * Really?
    
    * Undo temporary test changes
    
    * Restore Travis config
    
    * looks like tlb-muticol-004 was incorrectly certified last time
    basically we need a checkruns of 3 to keep the tests independent
    ltshipout:  do not generate temporary page if the hooks are empty
    
    * test no longer generates a temp page
    
    * force a temp page in shipout-002
    
    * \DebugHookOn -> \DebugHooksOn
    \DebugShipoutOn -> \DebugShipoutsOn
    
    * test for traling or leading spaces inside \input
    
    * test fix
    
    * integrate \begin \end \AtBeginDocument updates
    
    * try again
    
    * fix rollback to 2014 (I hope)
    
    * \document and \enddocument  integrated
    
    * rollback ...
    
    * start integrating ltshipout
    
    * crude way to typeset source2e for now
    fix bug in ltclass
    disable some code in ltdirchk (needs correcting)
    
    * more ltshipout and doc
    
    * travis behavior debugging
    
    * grouping in the dark
    
    * sigh
    
    * sigh^2
    
    * sigh^3 no clue what's wrong with travis
    
    * don't typeset source2edoc.cls
    
    * try with batchmode -- less verbose
    
    * Try again with Ulrike's help
    
    * integrating/emulating everyshi and atenddvi
    
    * add \reenable at package@load as rhe counterpart to \disable at package@load
    
    * some docu updates
    
    * integrate lthooks into format.ins early on
    integrate ltexpl directly in format.ins not internally in ltdefns
    that makes "documentclasshook" become a non-hook (which is ok I would say)
    nfss font hooks rmfamily etc need looking at though
    
    * previus update didn't include all relevant changes
    
    * start integrating ltfilehook
    temp move ltclass earlier
    provide atbegshi substitution
    
    * typo in csname
    
    * make emulation packages "2e" and don't expose internals
    fix macro env
    
    * don't use internals elsewhere
    
    * fix reenable at package@load
    integrate \include and \includeonly changes
    move leftover from ealier implementation to ltdoc.cls and source2edoc.cls (needs update)
    
    * better put the docstrip guards inside macrcode
    
    * set at curr@file at trim@spaces still used in some places (tools, ltxdoc.cls and source2edoc.cls), this needs correcting
    
    * batchmode for the docu on travis
    
    * start integrating filehook
    
    * \set at curr@file trims spaces internally
    
    * Track changes to \include
    
    * Check \CurrentFile in \DocInclude
    
    * Remove unused definitions
    
    * fix github-0218 for luatex
    doc corrections lthooks
    
    * oops, space at the beginning of a line vanish (and ^M is not a space in expl3)
    
    * start integrating individual hooks
    
    * move \NewHook out of 2020/02 includeinrelease
    added ltexpl.dtx to latexrelease (that was never included!)
    updated overlooked tests for lthooks
    
    * changed the legacy support
    other hooks moved from legacy to new system
    
    * added docu and tests for \AtBeginEnvironment etc
    
    * Don't add .tex in \@curr at file
    
    * Use internal (with lookup) file name parse for \CurrentFile
    
    And don't lose path separator when dropping extension
    
    * Add test files for bd4055e
    
    * Update test files for bd4055e
    
    * Doc improvements
    
    * fixed typo in csnames
    moved some more code
    
    * atveryend and further cleanup
    
    * another typo
    
    * move emulation packages
    make shipout-006 actually test something (was missing a \START)
    
    * part of acc118
    
    * renamed some internal interfaces used in other modules
    dropped a command no longer used in ltexpl.dtx
    
    * sorting out more of the rollback, hopefully without introducing many new errors
    
    * update the rollback tests
    
    * sorting out rollback for ltfilehook (unfinished)
    
    * More documentation
    further rolloback and integration
    Added \PreviousTotalPages for use in documents
    Drop \@kernel at before@shipout at foreground and added \@kernel at before@shipout at background in the right place
    
    * stick a frozen version of source2e.ist into the local texmf tree so that it is available for typesetting.
    
    It was cumbersome and time concuming always to typeset source2e when all you want is to check the typesetting of some short module.
    
    * fix internals
    
    * Updated changes.txt
    changed version numbers
    fixed missing spaces in typesetting source2e (bug in l3doc)
    
    * testfiles
    
    * documented NFSS hooks
    
    * fix for acc156
    
    * test for #360
    
    * updated test for #360 --- result is currently wrong: needs etoolbox change
    
    * fix errors spotted by Phelype and Ulrike
    
    * provide def for \pkg :-(
    
    * docu update
    
    * don't use \str_use:n on a tl :-)
    
    * Clear the next_code token list once and before the code
    
    * \AddToHookNext needs to update the hook code sometimes
    
    * docu
    
    * Avoid clash when '<hook>' and '<hook>_next' are defined
    
    * Update test files (next_code -> code_next)
    
    * drop obsolete footnote
    
    * release guard fix
    
    * renamed a few internals and turned some of them to expl3 syntax;
    fixed rollack in several places (hope it is ok now);
    changed "normalise" to  "normalize" as that is what is used elsewhere
    
    * fix in etoolbox fixes github-0360
    
    * doc cleanup
    
    Co-authored-by: PhelypeOleinik <tex.phelype at gmail.com>
    Co-authored-by: Ulrike Fischer <fischer at troubleshooting-tex.de>


>---------------------------------------------------------------

75108758a9a1336676d99a97ea2ac5406be8dec8
 .travis.yml                                        |    2 +-
 base/build.lua                                     |    2 +-
 base/changes.txt                                   |   57 +
 base/doc/ltfilehook-code.tex                       |    5 -
 base/doc/ltfilehook-doc.tex                        |    5 -
 base/doc/lthooks-code.tex                          |    5 -
 base/doc/lthooks-doc.tex                           |    5 -
 base/doc/ltshipout-code.tex                        |    5 -
 base/doc/ltshipout-doc.tex                         |    5 -
 base/doc/source2e.tex                              |   16 +-
 base/format.ins                                    |   23 +-
 base/latex209.dtx                                  |    8 +-
 base/latexrelease.ins                              |    4 +
 base/ltclass.dtx                                   |  317 +++-
 base/ltdefns.dtx                                   |   34 +-
 base/ltdirchk.dtx                                  |    6 +-
 base/ltexpl.dtx                                    |   40 +-
 base/ltfilehook.dtx                                | 1519 +++++++++++------
 base/ltfiles.dtx                                   |  418 +++--
 base/ltfinal.dtx                                   |  225 +--
 base/ltfssaxes.dtx                                 |   31 +-
 base/ltfssini.dtx                                  |  925 ++++++-----
 base/lthooks.dtx                                   | 1718 ++++++++++----------
 base/lthooks.ins                                   |   76 -
 base/ltmiscen.dtx                                  |  353 +++-
 base/ltoutput.dtx                                  |   15 +-
 base/ltshipout.dtx                                 |  778 ++++++---
 base/ltxdoc.dtx                                    |    9 +-
 base/manifest.txt                                  |    7 +
 base/source2edoc.cls                               |  228 +++
 base/testfiles-lthooks/filehook-001.lvt            |   21 +-
 base/testfiles-lthooks/filehook-001.tlg            |   27 +
 base/testfiles-lthooks/filehook-002.lvt            |    2 +-
 base/testfiles-lthooks/filehook-002.tlg            |    6 +-
 base/testfiles-lthooks/filehook-005.lvt            |   35 +-
 base/testfiles-lthooks/filehook-005.tlg            |    2 +-
 base/testfiles-lthooks/filehook-006.tlg            |    2 +-
 base/testfiles-lthooks/filehook-007.lvt            |   16 +
 base/testfiles-lthooks/filehook-007.tlg            |    6 +
 base/testfiles-lthooks/filehook-008.lvt            |  119 ++
 base/testfiles-lthooks/filehook-008.tlg            |  189 +++
 base/testfiles-lthooks/filehook-009.lvt            |   34 +
 base/testfiles-lthooks/filehook-009.tlg            |   16 +
 base/testfiles-lthooks/filehook-010.lvt            |   58 +
 base/testfiles-lthooks/filehook-010.tlg            |   47 +
 base/testfiles-lthooks/filehook-011.lvt            |   26 +
 .../filehook-011.tlg}                              |    9 +-
 base/testfiles-lthooks/filehook-012.lvt            |   20 +
 base/testfiles-lthooks/filehook-012.tlg            |   38 +
 base/testfiles-lthooks/filehook-bug-140.lvt        |   35 +
 .../filehook-bug-140.tlg}                          |    0
 base/testfiles-lthooks/lthooks-000.lvt             |    8 +-
 base/testfiles-lthooks/lthooks-000.tlg             |   23 +-
 base/testfiles-lthooks/lthooks-001.lvt             |    6 +-
 base/testfiles-lthooks/lthooks-001.tlg             |   70 +-
 base/testfiles-lthooks/lthooks-002.lvt             |    5 +-
 base/testfiles-lthooks/lthooks-002.tlg             |   70 +-
 base/testfiles-lthooks/lthooks-003.lvt             |    5 +-
 base/testfiles-lthooks/lthooks-003.tlg             |   60 +-
 base/testfiles-lthooks/lthooks-004.lvt             |    5 +-
 base/testfiles-lthooks/lthooks-004.tlg             |   49 +-
 base/testfiles-lthooks/lthooks-005.lvt             |    9 +-
 base/testfiles-lthooks/lthooks-005.tlg             |   69 +-
 base/testfiles-lthooks/lthooks-006.lvt             |    5 +-
 base/testfiles-lthooks/lthooks-006.tlg             |   48 +-
 base/testfiles-lthooks/lthooks-007.lvt             |    7 +-
 base/testfiles-lthooks/lthooks-007.tlg             |   74 +-
 base/testfiles-lthooks/lthooks-008.lvt             |    5 +-
 base/testfiles-lthooks/lthooks-008.tlg             |   53 +-
 base/testfiles-lthooks/lthooks-009.lvt             |   21 +-
 base/testfiles-lthooks/lthooks-009.tlg             |   61 +-
 base/testfiles-lthooks/lthooks-010.lvt             |   11 +-
 base/testfiles-lthooks/lthooks-010.tlg             |   41 +-
 base/testfiles-lthooks/lthooks-011.lvt             |   13 +-
 base/testfiles-lthooks/lthooks-011.tlg             |  112 +-
 base/testfiles-lthooks/lthooks-013.lvt             |    2 +-
 base/testfiles-lthooks/lthooks-013.tlg             |   62 +-
 base/testfiles-lthooks/lthooks-016.lvt             |    2 +-
 base/testfiles-lthooks/lthooks-016.tlg             |    2 +-
 base/testfiles-lthooks/lthooks-017.lvt             |    2 +-
 base/testfiles-lthooks/lthooks-018.lvt             |    2 +-
 base/testfiles-lthooks/lthooks-019.lvt             |    6 +-
 base/testfiles-lthooks/lthooks-019.tlg             |  156 +-
 base/testfiles-lthooks/lthooks-020.lvt             |    4 +-
 base/testfiles-lthooks/lthooks-020.tlg             |   12 +-
 base/testfiles-lthooks/lthooks-021.lvt             |    5 +-
 base/testfiles-lthooks/lthooks-021.tlg             |  104 ++
 base/testfiles-lthooks/lthooks-022.lvt             |    2 +-
 base/testfiles-lthooks/lthooks-022.tlg             |   14 +-
 base/testfiles-lthooks/lthooks-023.lvt             |    2 +-
 base/testfiles-lthooks/lthooks-023.tlg             |   22 +-
 base/testfiles-lthooks/lthooks-025.lvt             |   45 +
 base/testfiles-lthooks/lthooks-025.tlg             |   14 +
 base/testfiles-lthooks/lthooks-026.lvt             |   32 +
 .../{filehook-003.tlg => lthooks-026.tlg}          |   76 +-
 base/testfiles-lthooks/lthooks-errors.lvt          |   36 +
 base/testfiles-lthooks/lthooks-errors.tlg          |   51 +
 base/testfiles-lthooks/lthooks-etoolbox.lvt        |   30 +
 .../lthooks-etoolbox.tlg}                          |    0
 base/testfiles-lthooks/lthooks-legacy.lvt          |   34 +
 .../{lthooks-009.tlg => lthooks-legacy.tlg}        |   79 +-
 base/testfiles-lthooks/shipout-000.lvt             |    1 -
 base/testfiles-lthooks/shipout-000.tlg             |    4 +
 base/testfiles-lthooks/shipout-002.lvt             |    8 +-
 base/testfiles-lthooks/shipout-002.tlg             |    2 +
 base/testfiles-lthooks/shipout-004.lvt             |    2 +-
 base/testfiles-lthooks/shipout-006.lvt             |   22 +
 .../{shipout-000.tlg => shipout-006.tlg}           |    1 +
 base/testfiles-lthooks2/github-0360.lvt            |   30 +
 .../testfiles-lthooks2/github-0360.tlg             |   22 +-
 base/testfiles-lthooks2/lthooks2-002.lvt           |    2 +-
 base/testfiles-lthooks2/lthooks2-002.tlg           |   36 +-
 base/testfiles-lthooks2/lthooks2-004.lvt           |    2 +-
 base/testfiles-lthooks2/lthooks2-005.lvt           |    2 +-
 base/testfiles-lthooks2/lthooks2-005.tlg           |   44 +-
 base/testfiles-lthooks2/lthooks2-006.tlg           |   38 +-
 base/testfiles-lthooks2/shipout2-004.lvt           |   11 +-
 base/testfiles-lthooks2/shipout2-004.tlg           |    3 +
 base/testfiles-lthooks2/shipout2-007.lvt           |   28 +
 base/testfiles-lthooks2/shipout2-007.tlg           |   15 +
 base/testfiles-lthooks2/shipout2-emulations.lvt    |   47 +
 .../testfiles-lthooks2/shipout2-emulations.tlg     |   30 +-
 base/testfiles/github-0218.luatex.tlg              |    2 +-
 base/testfiles/github-0218.lvt                     |    2 +-
 base/testfiles/github-0218.tlg                     |    2 +-
 base/testfiles/github-0356.lvt                     |   19 +
 base/testfiles/{tlb3473.tlg => github-0356.tlg}    |    7 +-
 base/testfiles/github-robust-0123.luatex.tlg       |    2 +-
 base/testfiles/github-robust-0123.tlg              |    2 +-
 base/testfiles/github-robust-0123.xetex.tlg        |    2 +-
 base/testfiles/tlb-input.luatex.tlg                |   21 +
 base/testfiles/tlb-input.lvt                       |   43 +
 base/testfiles/tlb-input.tlg                       |   21 +
 .../tlb-latexrelease-rollback-003-often.luatex.tlg |  126 +-
 .../tlb-latexrelease-rollback-003-often.tlg        |  126 +-
 .../tlb-latexrelease-rollback-003-often.xetex.tlg  |  126 +-
 base/testfiles/tlb-rollback-004-often.luatex.tlg   |   72 +-
 base/testfiles/tlb-rollback-004-often.tlg          |   72 +-
 base/testfiles/tlb-rollback-004-often.xetex.tlg    |   72 +-
 base/testfiles/tlb2140.luatex.tlg                  |  521 +-----
 base/testfiles/tlb2140.tlg                         |  480 +-----
 base/unpack.ins                                    |    2 -
 .../graphics/testfiles/filehook-013-apdf155.lvt    |   34 +
 .../graphics/testfiles/filehook-013-apdf155.tlg    |   26 +
 required/graphics/testfiles/support/miau           |  143 ++
 required/graphics/testfiles/support/miau.eps.ps    |  143 ++
 required/graphics/testfiles/support/miau.ps        |  143 ++
 required/graphics/testfiles/support/miau.tex       |    1 +
 required/tools/build.lua                           |    2 +
 .../tools/testfiles/tlb-multicol-004.luatex.tlg    |    1 +
 required/tools/testfiles/tlb-multicol-004.lvt      |    8 +
 required/tools/testfiles/tlb-multicol-004.tlg      | 1128 ++++++++++++-
 .../tools/testfiles/tlb-multicol-004.xetex.tlg     |  447 +----
 required/tools/xr.dtx                              |    2 +-
 texmf/makeindex/source2e.ist                       |   29 +
 155 files changed, 8471 insertions(+), 4881 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --textconv --cc 75108758a9a1336676d99a97ea2ac5406be8dec8




More information about the latex3-commits mailing list.