Another less technical explanation (and thanks for all the very informed advice) is when you can't make up your mind whether a tune's in a standard major or minor key - it's probably modal. Also when you expect a sharp and you get a natural (as in Old Joe Clark).