didn't Holmes take cocaine? not opium?

Oops! You're quite right. I stand corrected.

Fortunately, Doyle's stories are sufficiently voluminous as to permit me a feeble face-saving comeback: Holmes _did_ flirt with opium too, in The Man with the Twisted Lip.

(But it was definitely cocaine that I _should_ have been thinking of.)