In my game currently the emperor of the HRE is the king of Portugal.
But...Portugal isn't a even a MEMBER of the HRE.
Furthermore I AM a member, I have 200 relations with one of the electors, and they're voting for Portugal (with whom their relations are like 65.)
I don't think I understand this.