To a historian libraries are food, shelter, and even muse.