After returning , Longfellow published a play in 1836 , The Spanish Student , reflecting his memories from his time in Spain in the 1820s . After returning , Longfellow published a play in 1842 , The Spanish Student , reflecting his memories from his time in Spain in the 1820s .