diff options
Diffstat (limited to 'tex/context/base/core-fil.tex')
-rw-r--r-- | tex/context/base/core-fil.tex | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tex/context/base/core-fil.tex b/tex/context/base/core-fil.tex index 4bfdff2c0..07adb3c3a 100644 --- a/tex/context/base/core-fil.tex +++ b/tex/context/base/core-fil.tex @@ -83,14 +83,6 @@ \def\definefilesynonym {\dodoubleempty\dodefinefilesynonym} -% \def\dodefinefilesynonym[#1][#2]% -% {\doifdefined{\??fs#1} -% {\doifnotvalue{\??fs#1}{#2} -% {\showmessage\m!files1{#1 (#2),\getvalue{\??fs#1}}}}% -% \doifelse{#1}{#2} -% {\letbeundefined{\??fs#1}{#2}} -% {\setevalue{\??fs#1}{#2}}} - \def\dodefinefilesynonym[#1][#2]% {\ifundefined{\??fs#1}\else \doifnotvalue{\??fs#1}{#2}{\showmessage\m!files1{#1 (#2),\getvalue{\??fs#1}}}% @@ -98,6 +90,17 @@ \doifelse{#1}{#2}{\letbeundefined{\??fs#1}{#2}}{\setevalue{\??fs#1}{#2}}} %D \macros +%D {definefilefallback} + +\def\definefilefallback + {\dodoubleargument\dodefinefilefallback} + +\def\dodefinefilefallback[#1][#2]% + {\doifnotfile{#1} + {\def\docommand##1{\doiffile{##1}{\definefilesynonym[#1][##1]\quitcommalist}}% + \processcommalist[#2]\docommand}} + +%D \macros %D {truefilename} %D %D At the system level such a filename can be called upon by |