On Jan 29, 5:40 pm, "Edward K. Ream" <[email protected]> wrote:

> > it suggests an important new invariant: namely that canonicalizing an 
> > already-canonicalized shortcut should be a no-op.
>
> Nice try, Edward. This would be a nice invariant, but it's not going
> to happen any time soon.  Canonicalized settings were not designed
> with this invariant in mind.  For example, shortcutFromSetting
> translates Shift-a to A, and A to a.  Oops.

On second thought, this should actually be fairly easy to do safely.

- A global constant will switch between the old and new versions of
the code.

- A unit test will ensure the invariant.

- It will probably become immediately obvious if the new convention
causes problems.

I'll probably do this in the next day or so, while the issues are
fresh in my mind.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to