In A Practical English Grammar A J Thomson and A V Martinet say that the past perfect is used after when when we wish to emphasize that the first action was completed before the second one started When he had shut the window we opened the door of the cage Is it preferred to When he shut the...