source: docs/Working/re/etoolbox.def @ 3889

Last change on this file since 3889 was 3624, checked in by cameron, 5 years ago

Formats for PACT

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