You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem seems to be key=, which will always check "or code-match value-match", and because the default for value is "", it will always match when supplying only the code.
(key= (make-key :code0) (make-key :code1)) ;; t
(key= (make-key :code1) (make-key :code0)) ;; t
(key= (make-key :code1) (make-key :code2)) ;; t
The problem seems to be
key=
, which will always check "or code-match value-match", and because the default for value is "", it will always match when supplying only the code.The following works:
But this also pose a problem with
define-key
. Here I'm binding two different keys, but the size is still 1.Adding a dummy value when defining the key, and the lookup-key returns the correct value.
The above also let's us query based on :code
The text was updated successfully, but these errors were encountered: