Comments (5)
There are some similar (docstripped-out) lines in l3regex
(search trace
) that are completely unused now. Perhaps to keep code readable it would make sense to keep the tracing code outside the definitions: make it patch the definition when debug is turned on. Taking an excessively low-level function \int_set:Nn
to show what I mean:
\debug_patch:nnw
{
\debug_term:n { Start~of~\tl_to_str:n { \int_set:Nn #1 { #2 } } }
}
{
\debug_term:n { Done~setting~\token_to_str:N #1~to~\int_use:N #1 }
}
\cs_new_protected:Npn \int_set:Nn #1#2
{ #1 = \__int_eval:w #2 \__int_eval_end: }
The first and second arguments of \debug_patch:nnw
would be added before and after the definition of \int_set:Nn
when debug is turned on. Of course, \debug_patch:nnw
would have to look ahead at what \cs_new
-like function follows.
from l3build.
from l3build.
See recent commits (I forgot to point here from them). For practice, I'll try to use in l3regex
the \__debug_patch:nnNw
function I've now added.
from l3build.
Is this still relevant at the l3build
end?
from l3build.
I think so, yes — my original intention was to bring this up as part of the l3build lua code, and Bruno started discussing more broadly.
I’ll try to prototype something and see how you like the look of it...
from l3build.
Related Issues (20)
- Are variables `os_cmpexe` and `os_cmpext` still in use? HOT 1
- Normalize `luaotfload | db : Font names database loaded from <path>` lines? HOT 1
- LaTeX kernel date shows in certain type of test files HOT 9
- Refine error mesasage "attempt to index a nil value" HOT 4
- Ideas about splitting slow `l3build check/doc` into smaller even runs HOT 4
- small improvements for -S switch HOT 13
- Remove shebang in build.lua HOT 3
- Documentation typo HOT 4
- Could `l3build check` only test if the compilation is successful HOT 11
- Copyright: update manually or automatically by `update_tag()`? HOT 2
- Recent change seems to have rendered documented way to call `biber` not working HOT 16
- l3build fails for unknown reasons HOT 3
- How to copy `docfiles` with directory structure respected? HOT 1
- Non-zero exit code caused by lots of `\showbox`
- Updating `man l3build` HOT 7
- Output on failure does not help
- Check with `stdengine` only HOT 2
- Sync up documented log normalization rules HOT 3
- Output normalization hook
- global typesetopts is ignored HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from l3build.