while he was thinking of all these things and trying in vain to bring his memory down to his arriving in rivendell , there was a long silence , broken only by the soft puffs of gandalf 's pipe , as he blew white smoke-rings out of the window .