Hi Hans,
On Tue, 2026-09-15 at 08:55 +0200, Hans Hagen wrote:
> On 9/15/2026 6:25 AM, Max Chernoff wrote:
> > Perhaps you should define these characters as "\frozen" (or no
> > protection at all) instead of "\permanent". I think that it's good that
> > macros like "\setuplayout", "\processcommalist", and
> > "\gobbleoneargument" are defined as "\permanent": those are core macros,
> > other core ConTeXt macros use them internally, redefining them will lead
> > to lots of issues, and it's easy enough for users to pick another name.
>
> they used to be frozen till someone thought that it was a good idea to
> redefine \prime so that tipped us over the decision making edge (with
> likely more to follow)
Isn't that exactly why the macros _shouldn't_ be "\permanent" though?
This way, you and Mikael can have "\prime" work the way that you want,
and the people who prefer the classic behaviour can redefine "\prime" to
behave like it used to in MkII and MkIV. I guess I don't really see the
benefit to not allowing people to choose whatever they want. Yes, users
could break something with a bad definition, but users will always be
able to break stuff anyways with code like
\define\MyMacro{\MyMacro}\MyMacro
> > But I think that users should be allowed to redefine the math characters
> > if they want: none of the other ConTeXt macros use them internally (and
> > if they do, users will want the redefined version to be used), it's not
> > easy for users to pick another name (a combination of muscle memory for
> > the old names plus the fact that "\not" or "\Delta" really are the only
> > sensible names for those characters), and redefining these shouldn't
> > ever break anything.
>
> Users can define xDelta is they like
How can users know which names they're allowed to choose though? I
thought that the rule was that users were free to (re)define anything
with a capital letter in it (except for the table \NC commands), but do
people now need to remember the 82 csnames with a capital letter defined
in "char-def.lua"?
> ... we spent a lot or time and
> energy on updating the math machinery wrt spacing, penalties, carrying
> meaning, no space tweaks, whatever and are not going to sloppify the lot
I don't see how letting users redefine math characters will "sloppify"
the ConTeXt core, since everything will be isolated to the users' own
documents. And yes, users' documents are often sloppy, but they'll still
be sloppy regardless of whether they can redefine macros or not.
Thanks,
-- Max
___________________________________________________________________________________
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
___________________________________________________________________________________