readline should not know about completion algorithm details