Skip to content
  • Marius Gerbershagen's avatar
    cl_parse_key: correctly handle literal allow-other-keys keyword arguments · a7e1bf6c
    Marius Gerbershagen authored
    When parsing keyword arguments of functions like
    
    (defun f (&key allow-other-keys) allow-other-keys)
    
    (note that `&key allow-other-keys` is not `&allow-other-keys`!), we
    were incorrectly handling the case in which this function was called
    like
    
    (f :some-unknown-keyword x :allow-other-keys non-nil-value)
    
    In this case, the spec (CLHS 3.4.1.4) says that the function has to
    ignore the unknown keyword and return the non-nil-value, while we were
    signaling an "unknown keyword" error.
    a7e1bf6c