blob: e400dfaa05bc490f35b690319d94736c64f84fc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
%D \module
%D [ file=cont-new,
%D version=2006.10.04,
%D title=\CONTEXT\ Miscellaneous Macros,
%D subtitle=New Macros,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
% potential new defaults:
%
% \setbreakpoints[compound]
\unprotect
% \ctxlua{logs.report = commands.writereport} % this will become default
\def\immediatemessage#1{\ctxlua{logs.status("message","#1")}}
% we need to figure this out (to be discussed)
\unexpanded\def\textminus
{\char \iffontchar\font"2012 "2012 % figuredash
\else\iffontchar\font"2013 "2013 % endash
\else\iffontchar\font"2212 "2212 % math minus
"002D % hyphen
\fi\fi\fi}
\unexpanded\def\textplus
{\char"002B } % plus
% till we fixed all styles
\let\\=\crlf
% for a while as these can be used in user modules
\startluacode
jobregisters = logs.obsolete("jobregisters", "structures.registers")
buffers.finish_state = logs.obsolete("buffers.finish_state","buffers.finishstate")
buffers.change_state = logs.obsolete("buffers.change_state","buffers.finishstate")
\stopluacode
\protect \endinput
|