| 1 |
\ProvidesFile{etoolbox.def} |
| 2 |
[2025/10/02 v2.5m etoolbox debug messages (JAW)] |
| 3 |
|
| 4 |
\begingroup |
| 5 |
\makeatletter |
| 6 |
\@makeother\+ |
| 7 |
\@makeother\- |
| 8 |
\@makeother\= |
| 9 |
\@makeother\> |
| 10 |
|
| 11 |
\long\gdef\etb@dbg@trce#1{\typeout{% |
| 12 |
[debug] tracing \string#1\on@line}}% |
| 13 |
\long\gdef\etb@dbg@init#1{\typeout{% |
| 14 |
[debug] analyzing '\detokenize\expandafter{\string#1}'}}% |
| 15 |
\gdef\etb@dbg@info#1{\typeout{% |
| 16 |
[debug] ++ \csuse{etb@msg@i@#1}}}% |
| 17 |
\gdef\etb@dbg@succ#1{\typeout{% |
| 18 |
[debug] == \csuse{etb@msg@s@#1}}}% |
| 19 |
\gdef\etb@dbg@fail#1{\typeout{% |
| 20 |
[debug] -- \csuse{etb@msg@f@#1}}}% |
| 21 |
|
| 22 |
\gdef\etb@msg@ex{^^J[debug] -> }% |
| 23 |
\gdef\etb@msg@br{^^J[debug]\@spaces} |
| 24 |
|
| 25 |
\gdef\etb@msg@i@def{% |
| 26 |
control sequence is defined} |
| 27 |
\gdef\etb@msg@i@mac{% |
| 28 |
control sequence is a macro} |
| 29 |
\gdef\etb@msg@i@prm{% |
| 30 |
control sequence is a macro with parameters} |
| 31 |
\gdef\etb@msg@i@prl{% |
| 32 |
control sequence is a macro without parameters} |
| 33 |
\xdef\etb@msg@i@pro{% |
| 34 |
control sequence is a \string\protected\space macro} |
| 35 |
\gdef\etb@msg@i@tok{% |
| 36 |
macro can be retokenized cleanly} |
| 37 |
\gdef\etb@msg@i@pat{% |
| 38 |
search pattern found in replacement text} |
| 39 |
\gdef\etb@msg@i@pos{% |
| 40 |
patching possible} |
| 41 |
\gdef\etb@msg@s@red{% |
| 42 |
redefining macro now} |
| 43 |
\gdef\etb@msg@s@ret{% |
| 44 |
retokenizing macro now} |
| 45 |
\xdef\etb@msg@f@def{% |
| 46 |
control sequence is undefined or \string\relax} |
| 47 |
\gdef\etb@msg@f@mac{% |
| 48 |
control sequence is not a macro} |
| 49 |
\xdef\etb@msg@f@tok{% |
| 50 |
macro cannot be retokenized cleanly\noexpand\etb@msg@ex |
| 51 |
the macro may have been defined under a category\noexpand\etb@msg@br |
| 52 |
code regime different from the current one\noexpand\etb@msg@ex |
| 53 |
the replacement text may contain special control\noexpand\etb@msg@br |
| 54 |
sequence tokens formed with |
| 55 |
\string\csname...\string\endcsname;\noexpand\etb@msg@ex |
| 56 |
the replacement text may contain carriage return,\noexpand\etb@msg@br |
| 57 |
newline, or similar characters} |
| 58 |
\xdef\etb@msg@f@hsh{% |
| 59 |
nested patching command and parameters in patch\noexpand\etb@msg@ex |
| 60 |
the patching command seems to be nested in the\noexpand\etb@msg@br |
| 61 |
argument to some other command\noexpand\etb@msg@ex |
| 62 |
the patch text seems to contain \string# characters\noexpand\etb@msg@ex |
| 63 |
either avoid nesting or use \string# characters with\noexpand\etb@msg@br |
| 64 |
category code 12 in the patch text\noexpand\etb@msg@ex |
| 65 |
simply doubling the \string# characters will not work} |
| 66 |
\gdef\etb@msg@f@pat{% |
| 67 |
search pattern not found in replacement text} |
| 68 |
|
| 69 |
\endgroup |
| 70 |
\endinput |