. . . "circumstances such as the following: (a) in a legal proceeding" .