Debian Codegraph @

texmf-dist/source/latex/l3kernel/l3deprecation.dtx

raw
1 % \iffalse meta-comment
2 %
3 %% File: l3deprecation.dtx
4 %
5 % Copyright (C) 2017-2026 The LaTeX Project
6 %
7 % It may be distributed and/or modified under the conditions of the
8 % LaTeX Project Public License (LPPL), either version 1.3c of this
9 % license or (at your option) any later version. The latest version
10 % of this license is in the file
11 %
12 % https://www.latex-project.org/lppl.txt
13 %
14 % This file is part of the "l3kernel bundle" (The Work in LPPL)
15 % and all files in that bundle must be distributed together.
16 %
17 % -----------------------------------------------------------------------
18 %
19 % The development version of the bundle can be found at
20 %
21 % https://github.com/latex3/latex3
22 %
23 % for those people who are interested.
24 %
25 %<*driver>
26 \documentclass[full,kernel]{l3doc}
27 \begin{document}
28 \DocInput{\jobname.dtx}
29 \end{document}
30 %</driver>
31 % \fi
32 %
33 % \title{^^A
34 % The \pkg{l3deprecation} module\\ Deprecation errors^^A
35 % }
36 %
37 % \author{^^A
38 % The \LaTeX{} Project\thanks
39 % {^^A
40 % E-mail:
41 % \href{mailto:[email protected]}
42 % {[email protected]}^^A
43 % }^^A
44 % }
45 %
46 % \date{Released 2026-05-15}
47 %
48 % \maketitle
49 %
50 % \begin{documentation}
51 %
52 % \section{\pkg{l3deprecation} documentation}
53 %
54 % A few commands have had to be deprecated over the years.
55 % All commands deprecated before release 2022-01-12 were already
56 % removed; commands deprecated since then will no longer be removed.
57 % Instead, this module defines them to produce errors.
58 %
59 % \end{documentation}
60 %
61 % \begin{implementation}
62 %
63 % \section{\pkg{l3deprecation} implementation}
64 %
65 % \begin{macrocode}
66 %<*code>
67 % \end{macrocode}
68 %
69 % \begin{macrocode}
70 %<@@=deprecation>
71 % \end{macrocode}
72 %
73 % \subsection{Patching definitions to deprecate}
74 %
75 % \begin{quote}
76 % \cs{__kernel_patch_deprecation:nnNNpn} \Arg{date} \Arg{replacement}
77 % \meta{definition} \meta{function} \meta{parameters} \Arg{code}
78 % \end{quote}
79 % defines the \meta{function} to produce an error and run its
80 % \meta{code}.
81 %
82 % We make \cs{debug_on:n} |{deprecation}| turn the \meta{function} into
83 % an \tn{outer} error, and \cs{debug_off:n} |{deprecation}| restore
84 % whatever the behavior was without \cs{debug_on:n} |{deprecation}|.
85 %
86 % In the explanations below, \meta{definition} \meta{function}
87 % \meta{parameters} \Arg{code} or assignments that only differ in the
88 % scope of the \meta{definition} will be called \enquote{the standard
89 % definition}.
90 %
91 % \begin{macro}
92 % {
93 % \__kernel_patch_deprecation:nnNNpn, \@@_patch_aux:nnNNnn,
94 % \@@_warn_once:nnNnn,
95 % \@@_patch_aux:Nn,
96 % \@@_just_error:nnNN
97 % }
98 % (The parameter text is grabbed using |#5#|.) The arguments of
99 % \cs{__kernel_deprecation_code:nn} are run upon \cs{debug_on:n}
100 % |{deprecation}| and \cs{debug_off:n} |{deprecation}|, respectively.
101 % In both scenarios we the \meta{function} may be \tn{outer} so we
102 % undefine it with \cs{tex_let:D} before redefining it, with
103 % \cs{__kernel_deprecation_error:Nnn} or with some code added shortly.
104 % \begin{macrocode}
105 \cs_new_protected:Npn \__kernel_patch_deprecation:nnNNpn #1#2#3#4#5#
106 { \@@_patch_aux:nnNNnn {#1} {#2} #3 #4 {#5} }
107 \cs_new_protected:Npn \@@_patch_aux:nnNNnn #1#2#3#4#5#6
108 {
109 \__kernel_deprecation_code:nn
110 {
111 \tex_let:D #4 \scan_stop:
112 \__kernel_deprecation_error:Nnn #4 {#2} {#1}
113 }
114 { \tex_let:D #4 \scan_stop: }
115 \cs_if_eq:NNTF #3 \cs_gset_protected:Npn
116 { \@@_warn_once:nnNnn {#1} {#2} #4 {#5} {#6} }
117 { \@@_patch_aux:Nn #3 { #4 #5 {#6} } }
118 }
119 % \end{macrocode}
120 % In case we want a warning, the \meta{function} is defined to produce
121 % such a warning without grabbing any argument, then redefine itself
122 % to the standard definition that the \meta{function} should have,
123 % with arguments, and call that definition. The \texttt{e}-type
124 % expansion and \cs{exp_not:n} avoid needing to double the~|#|, which
125 % we could not do anyways. We then deal with the code for
126 % \cs{debug_off:n} |{deprecation}|: presumably someone doing that does
127 % not need the warning so we simply do the standard definition.
128 % \begin{macrocode}
129 \cs_new_protected:Npn \@@_warn_once:nnNnn #1#2#3#4#5
130 {
131 \cs_gset_protected:Npe #3
132 {
133 \__kernel_if_debug:TF
134 {
135 \exp_not:N \msg_warning:nneee
136 { deprecation } { deprecated-command }
137 {#1}
138 { \token_to_str:N #3 }
139 { \tl_to_str:n {#2} }
140 }
141 { }
142 \exp_not:n { \cs_gset_protected:Npn #3 #4 {#5} }
143 \exp_not:N #3
144 }
145 \__kernel_deprecation_code:nn { }
146 { \cs_set_protected:Npn #3 #4 {#5} }
147 }
148 % \end{macrocode}
149 % In case we want neither warning nor error, the \meta{function} is
150 % given its standard definition. Here |#1| is \cs{cs_new:Npn} or
151 % \cs{cs_new_protected:Npn}) and |#2| is \meta{function}
152 % \meta{parameters} \Arg{code}, so |#1#2| performs the assignment.
153 % For \cs{debug_off:n} |{deprecation}| we want to use the same
154 % assignment but with a different scope, hence the \cs{cs_if_eq:NNTF}
155 % test.
156 % \begin{macrocode}
157 \cs_new_protected:Npn \@@_patch_aux:Nn #1#2
158 {
159 #1 #2
160 \cs_if_eq:NNTF #1 \cs_gset_protected:Npn
161 { \__kernel_deprecation_code:nn { } { \cs_set_protected:Npn #2 } }
162 { \__kernel_deprecation_code:nn { } { \cs_set:Npn #2 } }
163 }
164 % \end{macrocode}
165 % \end{macro}
166 %
167 % \begin{macro}{\__kernel_deprecation_error:Nnn}
168 % The \tn{outer} definition here ensures the command cannot appear
169 % in an argument.
170 % \begin{macrocode}
171 \cs_new_protected:Npn \__kernel_deprecation_error:Nnn #1#2#3
172 {
173 \tex_protected:D \tex_outer:D \tex_edef:D #1
174 {
175 \exp_not:N \msg_expandable_error:nnnnn
176 { deprecation } { deprecated-command }
177 { \tl_to_str:n {#3} } { \token_to_str:N #1 } { \tl_to_str:n {#2} }
178 \exp_not:N \msg_error:nneee
179 { deprecation } { deprecated-command }
180 { \tl_to_str:n {#3} } { \token_to_str:N #1 } { \tl_to_str:n {#2} }
181 }
182 }
183 % \end{macrocode}
184 % \end{macro}
185 %
186 % \begin{macrocode}
187 \msg_new:nnn { deprecation } { deprecated-command }
188 {
189 \tl_if_blank:nF {#3} { Use~ \tl_trim_spaces:n {#3} ~not~ }
190 #2~deprecated~on~#1.
191 }
192 % \end{macrocode}
193 %
194 % \subsection{Deprecated \pkg{l3basics} functions}
195 %
196 % \begin{macrocode}
197 %<@@=cs>
198 % \end{macrocode}
199 %
200 % \begin{macro}[EXP, deprecated]{\cs_argument_spec:N}
201 % For the present, do not deprecate fully as \LaTeXe{} will need to catch
202 % up: one for Fall 2022.
203 % \begin{macrocode}
204 %\__kernel_patch_deprecation:nnNNpn { 2022-06-24 } { \cs_parameter_spec:N }
205 \cs_new:Npn \cs_argument_spec:N { \cs_parameter_spec:N }
206 % \end{macrocode}
207 % \end{macro}
208 %
209 % \subsection{Deprecated \pkg{l3file} functions}
210 %
211 % \begin{macrocode}
212 %<@@=file>
213 % \end{macrocode}
214 %
215 % \begin{macro}[deprecated]
216 % {
217 % \iow_shipout_x:Nn, \iow_shipout_x:Nx,
218 % \iow_shipout_x:cn, \iow_shipout_x:cx
219 % }
220 % Previously described as \texttt{x}-type, but the hash behavior is really
221 % \texttt{e}-type. Currently not \enquote{live} as we need to have a transition.
222 % \begin{macrocode}
223 % \__kernel_patch_deprecation:nnNNpn { 2023-10-10 } { \iow_shipout_e:Nn }
224 \cs_new_protected:Npn \iow_shipout_x:Nn { \iow_shipout_e:Nn }
225 \cs_generate_variant:Nn \iow_shipout_x:Nn { Nx , c, cx }
226 % \end{macrocode}
227 % \end{macro}
228 %
229 % \subsection{Deprecated \pkg{l3keys} functions}
230 %
231 % \begin{macrocode}
232 %<@@=keys>
233 % \end{macrocode}
234 %
235 % \begin{macro}[deprecated]{.str_set_x:N, .str_set_x:c}
236 % \begin{macro}[deprecated]{.str_gset_x:N, .str_gset_x:c}
237 % \begin{macrocode}
238 \cs_new_protected:cpn { \c_@@_props_root_str .str_set_x:N } #1
239 { \@@_variable_set:NnnN #1 { str } { } x }
240 \cs_new_protected:cpn { \c_@@_props_root_str .str_set_x:c } #1
241 { \@@_variable_set:cnnN {#1} { str } { } x }
242 \cs_new_protected:cpn { \c_@@_props_root_str .str_gset_x:N } #1
243 { \@@_variable_set:NnnN #1 { str } { g } x }
244 \cs_new_protected:cpn { \c_@@_props_root_str .str_gset_x:c } #1
245 { \@@_variable_set:cnnN {#1} { str } { g } x }
246 % \end{macrocode}
247 % \end{macro}
248 % \end{macro}
249 %
250 % \begin{macro}[deprecated]{.tl_set_x:N, .tl_set_x:c}
251 % \begin{macro}[deprecated]{.tl_gset_x:N, .tl_gset_x:c}
252 % \begin{macrocode}
253 \cs_new_protected:cpn { \c_@@_props_root_str .tl_set_x:N } #1
254 { \@@_variable_set:NnnN #1 { tl } { } x }
255 \cs_new_protected:cpn { \c_@@_props_root_str .tl_set_x:c } #1
256 { \@@_variable_set:cnnN {#1} { tl } { } x }
257 \cs_new_protected:cpn { \c_@@_props_root_str .tl_gset_x:N } #1
258 { \@@_variable_set:NnnN #1 { tl } { g } x }
259 \cs_new_protected:cpn { \c_@@_props_root_str .tl_gset_x:c } #1
260 { \@@_variable_set:cnnN {#1} { tl } { g } x }
261 % \end{macrocode}
262 % \end{macro}
263 % \end{macro}
264 %
265 % \begin{macro}[deprecated]
266 % {
267 % \keys_set_filter:nnnN, \keys_set_filter:nnVN,
268 % \keys_set_filter:nnvN, \keys_set_filter:nnoN
269 % }
270 % \begin{macro}[deprecated]
271 % {
272 % \keys_set_filter:nnnnN, \keys_set_filter:nnVnN,
273 % \keys_set_filter:nnvnN, \keys_set_filter:nnonN
274 % }
275 % \begin{macro}[deprecated]
276 % {
277 % \keys_set_filter:nnn, \keys_set_filter:nnV,
278 % \keys_set_filter:nnv, \keys_set_filter:nno
279 % }
280 % We need a transition here so for the present this is commented out:
281 % only needed for \texttt{latex-lab} code so this should not last for
282 % too long.
283 % \begin{macrocode}
284 %\__kernel_patch_deprecation:nnNNpn { 2024-01-10 } { \keys_set_exclude_groups:nnn }
285 \cs_new_protected:Npn \keys_set_filter:nnn { \keys_set_exclude_groups:nnn }
286 \cs_generate_variant:Nn \keys_set_filter:nnn { nnV , nnv , nno }
287 %\__kernel_patch_deprecation:nnNNpn { 2024-01-10 } { \keys_set_exclude_groups:nnnN }
288 \cs_new_protected:Npn \keys_set_filter:nnnN { \keys_set_exclude_groups:nnnN }
289 \cs_generate_variant:Nn \keys_set_filter:nnnN { nnV , nnv , nno }
290 %\__kernel_patch_deprecation:nnNNpn { 2024-01-10 } { \keys_set_exclude_groups:nnnnN }
291 \cs_new_protected:Npn \keys_set_filter:nnnnN { \keys_set_exclude_groups:nnnnN }
292 \cs_generate_variant:Nn \keys_set_filter:nnnnN { nnV , nnv , nno }
293 % \end{macrocode}
294 % \end{macro}
295 % \end{macro}
296 % \end{macro}
297 %
298 % \subsection{Deprecated \pkg{l3msg} functions}
299 %
300 % \begin{macrocode}
301 %<@@=msg>
302 % \end{macrocode}
303 %
304 % \begin{macro}[deprecated]{\msg_gset:nnnn, \msg_gset:nnn}
305 % \begin{macrocode}
306 \__kernel_patch_deprecation:nnNNpn { 2024-02-13 } { \msg_set:nnnn }
307 \cs_new_protected:Npn \msg_gset:nnnn { \msg_set:nnnn }
308 \__kernel_patch_deprecation:nnNNpn { 2024-02-13 } { \msg_set:nnn }
309 \cs_new_protected:Npn \msg_gset:nnn { \msg_set:nnn }
310 % \end{macrocode}
311 % \end{macro}
312 %
313 % \subsection{Deprecated \pkg{l3pdf} functions}
314 %
315 % \begin{macrocode}
316 %<@@=pdf>
317 % \end{macrocode}
318 %
319 % \begin{variable}[deprecated]{\g_@@_object_prop}
320 % For tracking objects.
321 % \begin{macrocode}
322 \prop_new:N \g_@@_object_prop
323 % \end{macrocode}
324 % \end{variable}
325 %
326 % \begin{macro}[deprecated]
327 % {\pdf_object_new:nn, \pdf_object_write:nn, \pdf_object_write:nx}
328 % \begin{macrocode}
329 \__kernel_patch_deprecation:nnNNpn { 2022-08-30 } { [\pdf_object_new:n] }
330 \cs_new_protected:Npn \pdf_object_new:nn #1#2
331 {
332 \prop_gput:Nnn \g_@@_object_prop {#1} {#2}
333 \pdf_object_new:n {#1}
334 }
335 \__kernel_patch_deprecation:nnNNpn { 2022-08-30 } { [\pdf_object_write:n] }
336 \cs_new_protected:Npn \pdf_object_write:nn #1#2
337 {
338 \exp_args:Nee \@@_backend_object_write:nnn
339 { \@@_object_retrieve:n {#1} }
340 { \prop_item:Nn \g_@@_object_prop {#1} } {#2}
341 \bool_gset_true:N \g_@@_init_bool
342 }
343 \cs_generate_variant:Nn \pdf_object_write:nn { nx }
344 % \end{macrocode}
345 % \end{macro}
346 %
347 % \subsection{Deprecated \pkg{l3prg} functions}
348 %
349 % \begin{macrocode}
350 %<@@=cs>
351 % \end{macrocode}
352 %
353 % \begin{macro}[EXP, noTF, deprecated]{\bool_case_true:n}
354 % \begin{macrocode}
355 \__kernel_patch_deprecation:nnNNpn { 2023-05-03 } { \bool_case:n }
356 \cs_new:Npn \bool_case_true:n { \bool_case:n }
357 \__kernel_patch_deprecation:nnNNpn { 2023-05-03 } { \bool_case:nT }
358 \cs_new:Npn \bool_case_true:nT { \bool_case:nT }
359 \__kernel_patch_deprecation:nnNNpn { 2023-05-03 } { \bool_case:nF }
360 \cs_new:Npn \bool_case_true:nF { \bool_case:nF }
361 \__kernel_patch_deprecation:nnNNpn { 2023-05-03 } { \bool_case:nTF }
362 \cs_new:Npn \bool_case_true:nTF { \bool_case:nTF }
363 % \end{macrocode}
364 % \end{macro}
365 %
366 % \subsection{Deprecated \pkg{l3regex} functions}
367 %
368 % \begin{macrocode}
369 %<@@=regex>
370 % \end{macrocode}
371 %
372 % \begin{macro}[TF, deprecated]{\regex_match:nn, \regex_match:nV}
373 % \begin{macro}[TF, deprecated]{\regex_match:Nn, \regex_match:NV}
374 % \begin{macrocode}
375 %\__kernel_patch_deprecation:nnNNpn { 2025-05-14 } { \regex_if_match:nnT }
376 \cs_new_protected:Npn \regex_match:nnT { \regex_if_match:nnT }
377 %\__kernel_patch_deprecation:nnNNpn { 2025-05-14 } { \regex_if_match:nnF }
378 \cs_new_protected:Npn \regex_match:nnF { \regex_if_match:nnF }
379 %\__kernel_patch_deprecation:nnNNpn { 2025-05-14 } { \regex_if_match:nnTF }
380 \cs_new_protected:Npn \regex_match:nnTF { \regex_if_match:nnTF }
381 %\__kernel_patch_deprecation:nnNNpn { 2025-05-14 } { \regex_if_match:NnT }
382 \cs_new_protected:Npn \regex_match:NnT { \regex_if_match:NnT }
383 %\__kernel_patch_deprecation:nnNNpn { 2025-05-14 } { \regex_if_match:NnF }
384 \cs_new_protected:Npn \regex_match:NnF { \regex_if_match:NnF }
385 %\__kernel_patch_deprecation:nnNNpn { 2025-05-14 } { \regex_if_match:NnTF }
386 \cs_new_protected:Npn \regex_match:NnTF { \regex_if_match:NnTF }
387 \prg_generate_conditional_variant:Nnn \regex_match:nn
388 { nV } { T , F , TF }
389 \prg_generate_conditional_variant:Nnn \regex_match:Nn
390 { NV } { T , F , TF }
391 % \end{macrocode}
392 % \end{macro}
393 % \end{macro}
394 %
395 % \subsection{Deprecated \pkg{l3str} functions}
396 %
397 % \begin{macrocode}
398 %<@@=str>
399 % \end{macrocode}
400 %
401 % \begin{macro}[EXP, deprecated]
402 % {
403 % \str_lower_case:n, \str_lower_case:f,
404 % \str_upper_case:n, \str_upper_case:f,
405 % \str_fold_case:n, \str_fold_case:V
406 % }
407 % \begin{macrocode}
408 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_lowercase:n }
409 \cs_new:Npn \str_lower_case:n { \str_lowercase:n }
410 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_lowercase:f }
411 \cs_new:Npn \str_lower_case:f { \str_lowercase:f }
412 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_uppercase:n }
413 \cs_new:Npn \str_upper_case:n { \str_uppercase:n }
414 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_uppercase:f }
415 \cs_new:Npn \str_upper_case:f { \str_uppercase:f }
416 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_casefold:n }
417 \cs_new:Npn \str_fold_case:n { \str_casefold:n }
418 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_casefold:V }
419 \cs_new:Npn \str_fold_case:V { \str_casefold:V }
420 % \end{macrocode}
421 % \end{macro}
422 %
423 % \begin{macro}[EXP, deprecated]
424 % {\str_foldcase:n, \str_foldcase:V}
425 % \begin{macrocode}
426 \__kernel_patch_deprecation:nnNNpn { 2020-10-17 } { \str_casefold:n }
427 \cs_new:Npn \str_foldcase:n { \str_casefold:n }
428 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 } { \str_casefold:V }
429 \cs_new:Npn \str_foldcase:V { \str_casefold:V }
430 % \end{macrocode}
431 % \end{macro}
432 %
433 % \begin{macro}[EXP, deprecated]
434 % {\str_declare_eight_bit_encoding:nnn}
435 % This command was made internal, with one more argument. There is no
436 % easy way to compute a reasonable value for that extra argument so we
437 % take a value that is big enough to accommodate all of Unicode.
438 % \begin{macrocode}
439 \__kernel_patch_deprecation:nnNNpn { 2020-08-20 } { }
440 \cs_new_protected:Npn \str_declare_eight_bit_encoding:nnn #1
441 { \@@_declare_eight_bit_encoding:nnnn {#1} { 1114112 } }
442 % \end{macrocode}
443 % \end{macro}
444 %
445 % \subsection{Deprecated \pkg{l3seq} functions}
446 %
447 % \begin{macrocode}
448 %<@@=seq>
449 % \end{macrocode}
450 %
451 % \begin{macro}[deprecated]{\seq_indexed_map_inline:Nn}
452 % \begin{macro}[EXP, deprecated]{ \seq_indexed_map_function:NN}
453 % \begin{macrocode}
454 \__kernel_patch_deprecation:nnNNpn { 2020-06-18 } { \seq_map_indexed_inline:Nn }
455 \cs_new_protected:Npn \seq_indexed_map_inline:Nn { \seq_map_indexed_inline:Nn }
456 \__kernel_patch_deprecation:nnNNpn { 2020-06-18 } { \seq_map_indexed_function:NN }
457 \cs_new:Npn \seq_indexed_map_function:NN { \seq_map_indexed_function:NN }
458 % \end{macrocode}
459 % \end{macro}
460 % \end{macro}
461 %
462 % \begin{macro}[deprecated]{\seq_mapthread_function:NNN}
463 % \begin{macrocode}
464 \__kernel_patch_deprecation:nnNNpn { 2023-05-10 } { \seq_map_pairwise_function:NNN }
465 \cs_new:Npn \seq_mapthread_function:NNN { \seq_map_pairwise_function:NNN }
466 % \end{macrocode}
467 % \end{macro}
468 %
469 % \begin{macro}[deprecated]{\seq_set_map_x:NNn, \seq_gset_map_x:NNn}
470 % \begin{macrocode}
471 \__kernel_patch_deprecation:nnNNpn { 2023-10-26 } { \seq_set_map_e:NNn }
472 \cs_new_protected:Npn \seq_set_map_x:NNn { \seq_set_map_e:NNn }
473 \__kernel_patch_deprecation:nnNNpn { 2023-10-26 } { \seq_gset_map_e:NNn }
474 \cs_new_protected:Npn \seq_gset_map_x:NNn { \seq_gset_map_e:NNn }
475 % \end{macrocode}
476 % \end{macro}
477 %
478 % \subsection{Deprecated \pkg{l3sys} functions}
479 %
480 % \begin{macrocode}
481 %<@@=sys>
482 % \end{macrocode}
483 %
484 % \begin{macro}[deprecated]{\sys_finalise:}
485 % \begin{macrocode}
486 \__kernel_patch_deprecation:nnNNpn { 2025-05-25 } { \sys_finalize: }
487 \cs_new_protected:Npn \sys_finalise: { \sys_finalize: }
488 % \end{macrocode}
489 % \end{macro}
490 %
491 % \begin{macro}[deprecated]{\sys_load_deprecation:}
492 % \begin{macrocode}
493 \__kernel_patch_deprecation:nnNNpn { 2021-01-11 } { (no~longer~required) }
494 \cs_new_protected:Npn \sys_load_deprecation: { }
495 % \end{macrocode}
496 % \end{macro}
497 %
498 % \begin{macro}[deprecated, EXP, pTF]{\sys_if_timer_exist:}
499 % \begin{macrocode}
500 \__kernel_patch_deprecation:nnNNpn { 2025-03-26 } { (no~longer~required) }
501 \cs_new:Npn \sys_if_timer_exist:T #1 {#1}
502 \__kernel_patch_deprecation:nnNNpn { 2025-03-26 } { (no~longer~required) }
503 \cs_new:Npn \sys_if_timer_exist:F #1 { }
504 \__kernel_patch_deprecation:nnNNpn { 2025-03-26 } { (no~longer~required) }
505 \cs_new:Npn \sys_if_timer_exist:TF #1#2 {#1}
506 \__kernel_patch_deprecation:nnNNpn { 2025-03-26 } { (no~longer~required) }
507 \cs_new:Npn \sys_if_timer_exist_p: { \c_true_bool }
508 % \end{macrocode}
509 % \end{macro}
510 %
511 % \subsection{Deprecated \pkg{l3text} functions}
512 %
513 % \begin{macrocode}
514 %<@@=text>
515 % \end{macrocode}
516 %
517 % \begin{macro}[EXP, deprecated]{\text_titlecase:n}
518 % \begin{macro}[EXP, deprecated]{\text_titlecase:nn}
519 % \begin{macrocode}
520 \__kernel_patch_deprecation:nnNNpn { 2023-07-08 } { \text_titlecase_first:n }
521 \cs_new:Npn \text_titlecase:n #1
522 { \text_titlecase_first:n { \text_lowercase:n {#1} } }
523 \__kernel_patch_deprecation:nnNNpn { 2023-07-08 } { \text_titlecase_first:nn }
524 \cs_new:Npn \text_titlecase:nn #1#2
525 { \text_titlecase_first:nn {#1} { \text_lowercase:n {#2} } }
526 % \end{macrocode}
527 % \end{macro}
528 % \end{macro}
529 %
530 % \subsection{Deprecated \pkg{l3tl} functions}
531 %
532 % \begin{macrocode}
533 %<@@=tl>
534 % \end{macrocode}
535 %
536 % \begin{macro}[deprecated]
537 % {
538 % \tl_lower_case:n, \tl_lower_case:nn,
539 % \tl_upper_case:n, \tl_upper_case:nn,
540 % \tl_mixed_case:n, \tl_mixed_case:nn,
541 % }
542 % \begin{macrocode}
543 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_lowercase:n }
544 \cs_new:Npn \tl_lower_case:n #1
545 { \text_lowercase:n {#1} }
546 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_lowercase:nn }
547 \cs_new:Npn \tl_lower_case:nn #1#2
548 { \text_lowercase:nn {#1} {#2} }
549 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_uppercase:n }
550 \cs_new:Npn \tl_upper_case:n #1
551 { \text_uppercase:n {#1} }
552 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_uppercase:nn }
553 \cs_new:Npn \tl_upper_case:nn #1#2
554 { \text_uppercase:nn {#1} {#2} }
555 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_titlecase_first:n }
556 \cs_new:Npn \tl_mixed_case:n #1
557 { \text_titlecase_first:n { \text_lowercase:n {#1} } }
558 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_titlecase_first:nn }
559 \cs_new:Npn \tl_mixed_case:nn #1#2
560 { \text_titlecase_first:nn {#1} { \text_lowercase:n {#2} } }
561 % \end{macrocode}
562 % \end{macro}
563 %
564 % \begin{macro}[noTF, deprecated]{\tl_case:Nn, \tl_case:cn}
565 % \begin{macrocode}
566 \__kernel_patch_deprecation:nnNNpn { 2022-05-23 } { \token_case_meaning:Nn }
567 \cs_new:Npn \tl_case:Nn { \token_case_meaning:Nn }
568 \__kernel_patch_deprecation:nnNNpn { 2022-05-23 } { \token_case_meaning:NnT }
569 \cs_new:Npn \tl_case:NnT { \token_case_meaning:NnT }
570 \__kernel_patch_deprecation:nnNNpn { 2022-05-23 } { \token_case_meaning:NnF }
571 \cs_new:Npn \tl_case:NnF { \token_case_meaning:NnF }
572 \__kernel_patch_deprecation:nnNNpn { 2022-05-23 } { \token_case_meaning:NnTF }
573 \cs_new:Npn \tl_case:NnTF { \token_case_meaning:NnTF }
574 \cs_generate_variant:Nn \tl_case:Nn { c }
575 \prg_generate_conditional_variant:Nnn \tl_case:Nn
576 { c } { T , F , TF }
577 % \end{macrocode}
578 % \end{macro}
579 %
580 % \begin{macro}[deprecated]{\tl_build_clear:N, \tl_build_gclear:N}
581 % \begin{macrocode}
582 \__kernel_patch_deprecation:nnNNpn { 2023-10-18 } { \tl_build_begin:N }
583 \cs_new_protected:Npn \tl_build_clear:N { \tl_build_begin:N }
584 \__kernel_patch_deprecation:nnNNpn { 2023-10-18 } { \tl_build_gbegin:N }
585 \cs_new_protected:Npn \tl_build_gclear:N { \tl_build_gbegin:N }
586 % \end{macrocode}
587 % \end{macro}
588 %
589 % \begin{macro}[deprecated]{\tl_build_get:NN}
590 % \begin{macrocode}
591 \__kernel_patch_deprecation:nnNNpn { 2023-10-25 } { \tl_build_get_intermediate:NN }
592 \cs_new_protected:Npn \tl_build_get:NN { \tl_build_get_intermediate:NN }
593 % \end{macrocode}
594 % \end{macro}
595 %
596 % \subsection{Deprecated \pkg{l3token} functions}
597 %
598 % \begin{macrocode}
599 %<@@=char>
600 % \end{macrocode}
601 %
602 % \begin{macro}[EXP, deprecated]{\char_to_utfviii_bytes:n}
603 % \begin{macrocode}
604 \__kernel_patch_deprecation:nnNNpn { 2022-10-09 } { [ \codepoint_generate:nn ] }
605 \cs_new:Npn \char_to_utfviii_bytes:n { \__kernel_codepoint_to_bytes:n }
606 % \end{macrocode}
607 % \end{macro}
608 %
609 % \begin{macro}[EXP, deprecated]{\char_to_nfd:N, \char_to_nfd:n}
610 % \begin{macrocode}
611 \__kernel_patch_deprecation:nnNNpn { 2022-10-09 } { \codepoint_to_nfd:n }
612 \cs_new:Npn \char_to_nfd:N #1 { \codepoint_to_nfd:n {`#1} }
613 \__kernel_patch_deprecation:nnNNpn { 2022-10-09 } { \codepoint_to_nfd:n }
614 \cs_new:Npn \char_to_nfd:n { \codepoint_to_nfd:n }
615 % \end{macrocode}
616 % \end{macro}
617 %
618 % \begin{macro}[EXP, deprecated]
619 % {
620 % \char_lower_case:N, \char_upper_case:N,
621 % \char_mixed_case:Nn, \char_fold_case:N,
622 % \char_str_lower_case:N, \char_str_upper_case:N,
623 % \char_str_mixed_case:N, \char_str_fold_case:N,
624 % }
625 % \begin{macrocode}
626 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_lowercase:n }
627 \cs_new:Npn \char_lower_case:N { \text_lowercase:n }
628 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_uppercase:n }
629 \cs_new:Npn \char_upper_case:N { \text_uppercase:n }
630 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \text_titlecase_first:n }
631 \cs_new:Npn \char_mixed_case:N { \text_titlecase_first:n }
632 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_casefold:n }
633 \cs_new:Npn \char_fold_case:N { \str_casefold:n }
634 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_lowercase:n }
635 \cs_new:Npn \char_str_lower_case:N { \str_lowercase:n }
636 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_uppercase:n }
637 \cs_new:Npn \char_str_upper_case:N { \str_uppercase:n }
638 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_titlecase:n }
639 \cs_new:Npn \char_str_mixed_case:N { \str_titlecase:n }
640 \__kernel_patch_deprecation:nnNNpn { 2020-01-03 } { \str_casefold:n }
641 \cs_new:Npn \char_str_fold_case:N { \str_casefold:n }
642 % \end{macrocode}
643 % \end{macro}
644 %
645 % \begin{macro}[EXP, deprecated]
646 % {
647 % \char_lowercase:N, \char_titlecase:N, \char_uppercase:N,
648 % \char_foldcase:N,
649 % \char_str_lowercase:N, \char_str_titlecase:N, \char_str_uppercase:N,
650 % \char_str_foldcase:N,
651 % }
652 % \begin{macrocode}
653 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 } { \text_lowercase:n }
654 \cs_new:Npn \char_lowercase:N { \text_lowercase:n }
655 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 } { \text_uppercase:n }
656 \cs_new:Npn \char_uppercase:N { \text_uppercase:n }
657 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 } { \text_titlecase_first:n }
658 \cs_new:Npn \char_titlecase:N { \text_titlecase_first:n }
659 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 } { \str_casefold:n }
660 \cs_new:Npn \char_foldcase:N { \str_casefold:n }
661 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 } { \str_lowercase:n }
662 \cs_new:Npn \char_str_lowercase:N { \str_lowercase:n }
663 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 }
664 { \tl_to_str:e { \text_titlecase_first:n } }
665 \cs_new:Npn \char_str_titlecase:N #1
666 { \tl_to_str:e { \text_titlecase_first:n {#1} } }
667 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 } { \str_uppercase:n }
668 \cs_new:Npn \char_str_uppercase:N { \str_uppercase:n }
669 \__kernel_patch_deprecation:nnNNpn { 2022-10-17 } { \str_casefold:n }
670 \cs_new:Npn \char_str_foldcase:N { \str_casefold:n }
671 % \end{macrocode}
672 % \end{macro}
673 %
674 % \begin{macro}[TF, deprecated]
675 % {
676 % \peek_catcode_ignore_spaces:N, \peek_catcode_remove_ignore_spaces:N,
677 % \peek_charcode_ignore_spaces:N, \peek_charcode_remove_ignore_spaces:N,
678 % \peek_meaning_ignore_spaces:N, \peek_meaning_remove_ignore_spaces:N
679 % }
680 % A little extra fun here to deal with the expansion.
681 % \begin{macrocode}
682 \tl_map_inline:nn
683 {
684 { catcode } { catcode_remove }
685 { charcode } { charcode_remove }
686 { meaning } { meaning_remove }
687 }
688 {
689 \use:e
690 {
691 \__kernel_patch_deprecation:nnNNpn { 2022-01-11 } { \peek_remove_spaces:n }
692 \cs_gset_protected:Npn \exp_not:c { peek_ #1 _ignore_spaces:NTF } ##1##2##3
693 {
694 \peek_remove_spaces:n
695 { \exp_not:c { peek_ #1 :NTF } ##1 {##2} {##3} }
696 }
697 \__kernel_patch_deprecation:nnNNpn { 2022-01-11 } { \peek_remove_spaces:n }
698 \cs_gset_protected:Npn \exp_not:c { peek_ #1 _ignore_spaces:NT } ##1##2
699 {
700 \peek_remove_spaces:n
701 { \exp_not:c { peek_ #1 :NT } ##1 {##2} }
702 }
703 \__kernel_patch_deprecation:nnNNpn { 2022-01-11 } { \peek_remove_spaces:n }
704 \cs_gset_protected:Npn \exp_not:c { peek_ #1 _ignore_spaces:NF } ##1##2
705 {
706 \peek_remove_spaces:n
707 { \exp_not:c { peek_ #1 :NF } ##1 {##2} }
708 }
709 }
710 }
711 % \end{macrocode}
712 % \end{macro}
713 %
714 % \subsection{Deprecated \pkg{l3prop} functions}
715 %
716 % \begin{macro}[deprecated]
717 % {
718 % \prop_put_if_new:Nnn, \prop_put_if_new:NVn, \prop_put_if_new:NnV,
719 % \prop_put_if_new:cnn, \prop_put_if_new:cVn, \prop_put_if_new:cnV,
720 % \prop_gput_if_new:Nnn, \prop_gput_if_new:NVn, \prop_gput_if_new:NnV,
721 % \prop_gput_if_new:cnn, \prop_gput_if_new:cVn, \prop_gput_if_new:cnV
722 % }
723 % \begin{macrocode}
724 %\__kernel_patch_deprecation:nnNNpn { 2024-03-30 } { \prop_put_if_not_in:Nnn }
725 \cs_new_protected:Npn \prop_put_if_new:Nnn { \prop_put_if_not_in:Nnn }
726 %\__kernel_patch_deprecation:nnNNpn { 2024-03-30 } { \prop_gput_if_not_in:Nnn }
727 \cs_new_protected:Npn \prop_gput_if_new:Nnn { \prop_gput_if_not_in:Nnn }
728 \cs_generate_variant:Nn \prop_put_if_new:Nnn
729 { NnV , NV , c , cnV , cV }
730 \cs_generate_variant:Nn \prop_gput_if_new:Nnn
731 { NnV , NV , c , cnV , cV }
732 % \end{macrocode}
733 % \end{macro}
734 %
735 % \begin{macrocode}
736 %</code>
737 % \end{macrocode}
738 %
739 % \end{implementation}
740 %
741 % \PrintIndex