From the Office of Readings for the Memoria of St Ignatius of Loyola, priest:
…divine mercy was at hand and, in place of these thoughts, it used to substitute others from what he had recently read. For when he had read the lives of Christ our Lord and the saints he would think to himself and ponder: ‘What, if I were to do what blessed Francis did or what blessed Dominic did?’ And he used to meditate a good deal in this manner. This way of thinking lasted for some time, but then other things intervened, and he resumed his idle and worldly thoughts, and these persisted for a long time. He was involved in that succession of changes of mind for a considerable time.
From the Acts of St Ignatius taken down by Luis Gonzalez.