He will remain prime minister until elections next October .