Charles IV of Luxembourg elected emperor of the Holy Roman Empire.