@Nameless yes, that is what I think, and that is why I questioned the statement that S1するときS2する always means "I do S2 right before S1"... If this is the case, then it means that "A dictionary of basic Japanese" text book is wrong...
Anyway, I will try to formulate a proper question about it and hopefully someone native (@Chocolate ) can answer...