Thanks again, MM. Am I right in assuming that whenever when comes in the middle of the sentence, the first clause automatically becomes past perfect? Are there exceptions?
Not as simple as that, I think. It is when the order of events is obscured by 'when', since 'when' can mean 'at the same time as an event' and also 'at the conclusion of an event'.