Am Tue, 19 Jul 2022 10:10:04 +0200
schrieb Jean-Marc Lasgouttes <lasgout...@lyx.org>:

> Le 18/07/2022 à 14:44, Kornel Benko a écrit :
> >history. I think it is a design error. Looks good (if used manually). I 
> >never unbound
> >a key in tests. Have to prepare the
> > scripts.
> > Also I have to know the binding, like
> > \unbind "Tab"        "command-alternatives
> > completion-accept;cell-forward;tab-insert;outline-in;depth-increment"
> > 
> > which makes the 'unbind' inflexible if used in keytest.py  
> 
> I have no idea why unbind can request to give the value. There is no 
> reason in git hostory; this looks like a design mistake.
> 
> It is trivial to remove the test for the value that is passed. The best 
> would be to transform syntax from
> \unbind "sequence" "func"
> to
> \unbind "sequence"
> 
> However, I am not sure how to implement the prefs2prefs part, firstly 
> because one have to handle quotes (or absence thereof) and spaces and 
> secondly because I am bad at python.
> 
> So do we want to do this for 2.4? I can do all the non-python part.
> 
> JMarc
> 

Why not simply ignore the second part, so that
        \unbind "xyzzy" "some (non) emty string"
would still work.

        Kornel

Attachment: pgpzHvX2YU5n7.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to