Re: buffer question
Hans Hagen via ntg-context <[email protected]> Fri, 17 Apr 2026 23:15:21 +0200
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
On 4/17/2026 9:45 PM, Jim wrote:
> On Fri, Apr 17, 2026 at 19:47 (+0200), Hans Hagen via ntg-context wrote:
>
>> On 4/17/2026 7:24 PM, Jim via ntg-context wrote:
>
>>> Supposing, for the moment, that in a certain "paragraphs" situation I will
>>> never ever want to use
>>> \\
>>> to start a new paragraph; do you foresee me having problems down the line
>>> if I insert
>>> \let\\=\crlf
>>> as follows:
>
>> For a low-level hacker like you who can't resist going into 'redefine mode'
>
> To tell you the truth, I try to resist.
>
> But then I run into a problem where I don't know The One True ConTeXt Way
> and expediency gets me going. You might be pleased to know that I even
> tried an
> \expandafter\expandafter\expandafter
> yesterday.
ok, when is that needed ...
\ifdim\scratchdimen=10pt
\expandafter \expandafter \expandafter \afterwards
\else\ifdim\scratchdimen=20pt
\expandafter \expandafter \expandafter \afterwards
\else\ifdim\scratchdimen=30pt
\expandafter \expandafter \expandafter \afterwards
\else
\expandafter \afterwards
\fi
can be:
\ifdim\scratchdimen=10pt
\expandafter \afterwards
\orelse\ifdim\scratchdimen=20pt
\expandafter \afterwards
\orelse\ifdim\scratchdimen=30pt
\expandafter \afterwards
\else
\expandafter \afterwards
\fi
which of course will not the 3 or 6 expandafter folk who like to impress
us so that can go to the top of your growing todo
>> i think it makes sense to use
>
>> \enabledirectives[overloadmode=error] % warning
>
> I added that to the beginning of my sample file, but I see neither error
> messages nor warning messages. Maybe someone has put up a blockade
> somewhere.
well, it's a good sign ... so you can put it in a cont-loc.mkxl
somewhere in texmf-local/tex/context/user (run mtxrun --generate
afterwards) and be protected for life
you can test this with
\permanent \def \jim {okay}
\def \jim {oeps}
here i have it enabled by default
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________