With his haunted blue eyes and an empathy born of his own psychic distress, Mr. Wilder aspired to touch audiences much as Charlie Chaplin had.

which he starred. (He directed, he once said, ‘‘in order to protect what I wrote, which I wrote in order to act.’’) But he was best known for playing roles on the big screen that might have been ripped from the pages of the Diagnostic and Statistical...