summaryrefslogtreecommitdiff
path: root/tex/context/base/core-snc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/core-snc.tex')
-rw-r--r--tex/context/base/core-snc.tex27
1 files changed, 15 insertions, 12 deletions
diff --git a/tex/context/base/core-snc.tex b/tex/context/base/core-snc.tex
index 55c6e15df..ac6960f4d 100644
--- a/tex/context/base/core-snc.tex
+++ b/tex/context/base/core-snc.tex
@@ -116,8 +116,21 @@
\def\dopresyncposition[#1][#2]{\setxvalue{\s!preset:\s!syncpos:#1}{\noexpand\dodopresyncposition{#1}{#2}}}
\def\flushsyncpositions % this order !
- {\the\presetsyncpositions
- \the\resetsyncpositions}
+ {\begingroup
+ \the\presetsyncpositions
+ \the\resetsyncpositions
+ \endgroup}
+
+\def\flushsyncxxsets#1%
+ {\setbox\scratchbox\hbox{\the#1}%
+ \ifvoid\scratchbox\else
+ \prewordbreak \let\prewordbreak\relax % only once
+ \smashbox\scratchbox
+ \box\scratchbox
+ \fi}
+
+\def\flushsyncresets {\flushsyncxxsets\resetsyncpositions }
+\def\flushsyncpresets{\flushsyncxxsets\presetsyncpositions}
% \appendtoks \flushsyncpositions \to \everypar
% \appendtoks \flushsyncpositions \to \everyheadstart
@@ -126,16 +139,6 @@
%
% \appendtoks \flushsyncpositions \to \neverypar
-\def\flushsyncxxsets#1#2%
- {\setbox\scratchbox\hbox{\the#1}%
- \ifvoid\scratchbox\else
- \smashbox\scratchbox
- #2\box\scratchbox
- \fi}
-
-\def\flushsyncresets {\flushsyncxxsets\resetsyncpositions \relax}
-\def\flushsyncpresets{\flushsyncxxsets\presetsyncpositions\prewordbreak} % check prewordbreak
-
\protect \endinput
\starttext