The French president called a snap election after an unexpectedly poor showing in voting for the European Parliament.