summaryrefslogtreecommitdiff
path: root/tex/context/base/core-job.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/core-job.tex')
-rw-r--r--tex/context/base/core-job.tex8
1 files changed, 7 insertions, 1 deletions
diff --git a/tex/context/base/core-job.tex b/tex/context/base/core-job.tex
index b7e203240..0a398f462 100644
--- a/tex/context/base/core-job.tex
+++ b/tex/context/base/core-job.tex
@@ -290,14 +290,20 @@
\def\verwerkfile#1 %
{\doexecutefile{#1}}
+\def\useenvironment[#1]% maybe commalist
+ {\environment #1 }
+
\def\environment #1 % at outermost level only
{\def\startenvironment ##1 {}%
\let\stopenvironment\relax
+ % why not \doexecutefile ?
+ \registerfileinfo[begin]{#1}%
\dostarttextfile{#1}%
\startreadingfile
\processfile{#1}% was : \readlocfile{#1}{}{}
\stopreadingfile
- \dostoptextfile}
+ \dostoptextfile
+ \registerfileinfo[end]{#1}}
\def\component #1 % at outermost level only
{\dostarttextfile{#1}%