he felt a surge of gratitude for the courteous impulse that had moved him that moment they had stood together outside the university , and that had led her to come to him precisely when she could be most useful .